logo
down
shadow

VB.NET QUESTIONS

Multithreading on multiple datatables
Multithreading on multiple datatables
will be helpful for those in need Pushing work like this to threads is useful when you are performing CPU-bound operations, but when you're doing IO then you create resource conflicts causing the whole thing to slow down. Your hard drive is simultane
TAG : vb.net
Date : November 28 2020, 09:01 AM , By : Ofer Brown
How can get array random from another array string?
How can get array random from another array string?
seems to work fine I was actually playing with this method a little bit. Not saying it is most efficient because of GUID... (read comments)
TAG : vb.net
Date : November 26 2020, 09:01 AM , By : VJMalik
Is there a way to do something similar to IIF(condition, trueValue, falseValue) within a linq statement?
Is there a way to do something similar to IIF(condition, trueValue, falseValue) within a linq statement?
help you fix your problem I am trying to return a string if a property is null in my linq entity framework query when pulling from the database. , For a general case you can have:
TAG : vb.net
Date : November 26 2020, 09:01 AM , By : Donald Genes
Simple VB.Net text base communication server
Simple VB.Net text base communication server
Any of those help Finally I think I found something interesting !Based on the post Writing a Simple HTTP Server in VB.Net from Patrick Santry, I have a functional class :
TAG : vb.net
Date : November 24 2020, 09:00 AM , By : Ngatcha Sandrine
Visual Basic add to timestamp date
Visual Basic add to timestamp date
I wish this helpful for you All you have to do is add 10 days to the existing date and use that date for your file name. You can also don't need to split the formatting into three different strings.
TAG : vb.net
Date : November 23 2020, 09:01 AM , By : Yash Parekh
Catch event from Main Form
Catch event from Main Form
may help you . If you need to dispose of unmanaged resources in your user control before closing, just have the user control implement the IDisposable pattern (and properly dispose of them within it...).Proper use of the IDisposable interface
TAG : vb.net
Date : November 23 2020, 09:01 AM , By : Brian Debrah
Change UI from another class created in a thread in vb.net
Change UI from another class created in a thread in vb.net
I wish this help you This is the most common problem for people who are just starting to understand multi threading. Think about how WinForm controls interact with calling elements. They use events to signal to the outside world that something happen
TAG : vb.net
Date : November 22 2020, 02:59 PM , By : Havilah Communicatio
Hangman Game: How To Make The Program Know I Wrote The Correct Word?
Hangman Game: How To Make The Program Know I Wrote The Correct Word?
like below fixes the issue If Korrekt_Gissat = antal ThenThis is comparing a Boolean (Korret_Gissat) with an Integer (antal). This is usually a bad idea. Instead, check for a win in the code that checks for a correct guess. (No one could ever win on
TAG : vb.net
Date : November 22 2020, 02:42 PM , By : Barry
[UWP]Resize, compress and get base64 string from BitmapImage
[UWP]Resize, compress and get base64 string from BitmapImage
wish helps you In UWP, you can use BitmapDecoder and BitmapTransform to crop image. Following is a simple sample about cropping selected image to 100x100.
TAG : vb.net
Date : November 21 2020, 09:01 AM , By : Seth
Vb.net Get the text from Textbox inserted line by line in other Textboxes
Vb.net Get the text from Textbox inserted line by line in other Textboxes
To fix the issue you can do Main PageI made a program that gives the user the possibility to insert text into text boxes and then it gets saved as a Text-file. Now I want to give the user a possibility to read the values from file back to the Text bo
TAG : vb.net
Date : November 19 2020, 12:35 AM , By : user4575522
VB Adding an item to listbox on a different form giving null reference exception
VB Adding an item to listbox on a different form giving null reference exception
I hope this helps you . All i had to to was write the form name instead of ininalised variable.FormMain.lstListbox.Items.Add("item")
TAG : vb.net
Date : November 16 2020, 09:01 AM , By : pranay kumar
Retaining the selected radio button in Visual Basic
Retaining the selected radio button in Visual Basic
With these it helps Rather than closing the forms and disposing them as you move back and forth through the forms, just hide them and don't dispose them.Dont forget to do this for both the Next and Back buttons.Only close and dispose them all when al
TAG : vb.net
Date : November 16 2020, 09:01 AM , By : Panand
How to display which file is playing by Media Player from Playlist in vb.net ?
How to display which file is playing by Media Player from Playlist in vb.net ?
I wish did fix the issue. this code should do it .. add it to the PlayStateChange event. The reason I have an empty try..catch statement in there is because while the media player is changing items, the playstatechange event fires several times, but
TAG : vb.net
Date : November 14 2020, 07:01 AM , By : ovoke peter
Dragging controls during runtime - how to lock controls
Dragging controls during runtime - how to lock controls
it should still fix some issue Found the solution. Below is the code that will allow the user to move around controls (only the ones they wish to be movable) in a windows form. Just add the handlers for each control behind the subs.
TAG : vb.net
Date : November 13 2020, 09:01 AM , By : Teio
Error : Table Insertion returns error in vb.net and msacess
Error : Table Insertion returns error in vb.net and msacess
This might help you I am new to vb.net and I am trying to insert a values from vb.net to msacess. I know alredy have a answer for this question here but those answers were not solving my problems so I post again , Your SQL string must list the field
TAG : vb.net
Date : November 12 2020, 09:01 AM , By : Hammad Allauddin
Debugging error: "Object reference not set to an instance of an object"
Debugging error: "Object reference not set to an instance of an object"
Hope that helps Move the initialization of path inside the Form1_Load after setting the initial value in TextBox1
TAG : vb.net
Date : November 07 2020, 01:43 PM , By : bookworm
is there a cleaner method of handling textbox validating events
is there a cleaner method of handling textbox validating events
wish help you to fix your issue When you are using the same validation rule for all (or most of) your text boxes (as stated in comments) you can assign a single handler to Validating event of those text boxes and validate them in that handler. For ex
TAG : vb.net
Date : November 07 2020, 01:33 PM , By : Piash Malek
How to Subtract/Add 3 or more Date Time variables
How to Subtract/Add 3 or more Date Time variables
Does that help First, you need to use Option Strict On. This will tell you what the problem is: you cannot subtract a datetime from a timespan. Subtracting one datetime from another gives a timespan.Note that a DateTimePicker has both a date and a ti
TAG : vb.net
Date : November 06 2020, 09:01 AM , By : Gaurang Mathur
Moveable PictureBox transparent over PictureBox
Moveable PictureBox transparent over PictureBox
wish of those help The best way to create games like this is to use something like OpenGL, DirectX, XNA etc, but you can also use GDI+ and Graphics.DrawImage.But one thing you should know is that pretty much nothing's impossible when it comes to prog
TAG : vb.net
Date : November 06 2020, 03:59 AM , By : 杨小小
Button outputs infinite times
Button outputs infinite times
Any of those help Alright so I posted a question here a few months ago and all the help got it all working except from one feature. I want it so that when the button is pressed it pastes a first name and last name and if you press the button again, i
TAG : vb.net
Date : November 05 2020, 07:07 PM , By : Matthew Quintana
me.control.remove is removing every second control in a loop for some reason
me.control.remove is removing every second control in a loop for some reason
To fix this issue Change AsQueryable() to ToList()The reason it fails is that you are not supposed to modify a iterator while you are still looping over it. AsQueryable() is just using a state machine internally to know your current position in the M
TAG : vb.net
Date : November 05 2020, 06:58 PM , By : Matthew Stewart
Is there a time when Exception can be nothing?
Is there a time when Exception can be nothing?
this will help while trying to maintain someone else's code I found this little gem: , If you try this:
TAG : vb.net
Date : November 05 2020, 06:58 PM , By : Redtattoo
How do I store persistent user preferences in VB.net
How do I store persistent user preferences in VB.net
will be helpful for those in need Use the Project Settings and set the scope to "User"
TAG : vb.net
Date : November 04 2020, 04:00 PM , By : Ravindra Singh
Adding NETWORK SERVICE as new user to AD LDS instance administrator member
Adding NETWORK SERVICE as new user to AD LDS instance administrator member
Any of those help The foreign security principal is getting created when you add it with ADSI Edit in the background. Try adding "NT AUTHORITY\NETWORK SERVICE" in your code in lieu of the DN of the FSP as you're doing now.
TAG : vb.net
Date : November 04 2020, 04:00 PM , By : Md Mofijur Rahman
More efficient error catching?
More efficient error catching?
To fix this issue Since each test is doing something different a loop would be clumsy. Even if you only enable B once A is validated, you might need to allow for them to UnDo a previous selection. The code can be condensed though:
TAG : vb.net
Date : November 04 2020, 04:00 PM , By : Gizem Çetin
Add thread loop timer
Add thread loop timer
this one helps. You should make your life much easier by using a library that will help make your timer code very easy to work with. I would suggest using Microsoft's Reactive Framework (NuGet "Rx-WinForms").Here's your code:
TAG : vb.net
Date : November 04 2020, 08:15 AM , By : Dan Tosto
VB textbox.enter gives null value (accumulator)
VB textbox.enter gives null value (accumulator)
help you fix your problem Couldn't you just right a method that does the below? It appears that all your looking is to check to make sure it is an integer that was entered into the textbox and if it is calculate it, otherwise display a messagebox to
TAG : vb.net
Date : November 03 2020, 09:01 AM , By : ProjectProgramAMark
FedEx WSDL help on ASP.NET (VB) Web App
FedEx WSDL help on ASP.NET (VB) Web App
it should still fix some issue Switching from test to production If you haven't created your production credentials yet, go to the FedEx Web Services page, click "Move to Production" and follow the instructions. Your organization will need a FedEx cu
TAG : vb.net
Date : November 01 2020, 03:09 PM , By : Calu
Snakes and ladders Vb.net
Snakes and ladders Vb.net
I wish did fix the issue. Form 2 is to enter ladder base and its off set value and for snakes where the snake head is and skakes off set value. Not able to figure out why its not working . When the values are entered to show simulation it show's up e
TAG : vb.net
Date : November 01 2020, 01:03 PM , By : Yanbo
How to get hidden files and folders name and show it in a listbox control
How to get hidden files and folders name and show it in a listbox control
With these it helps Iterate through each file in the given path. If it has the attribute of hidden then add it to the list. At the end assign it to the datasource of your ListBox
TAG : vb.net
Date : October 31 2020, 05:43 PM , By : Erkki Nõmme
SQLite in vb 2010
SQLite in vb 2010
I think the issue was by ths following , I have, for over a month, tried in vain to resolve this. I am using SQLite and trying to write a simple check to see if i can connect to the database. I found some code here that was supposed to do just that.
TAG : vb.net
Date : October 31 2020, 05:43 PM , By : jcrevi
How to find total size of files in ReadOnlyCollection(Of String)
How to find total size of files in ReadOnlyCollection(Of String)
it should still fix some issue Iterate through each file and call the GetFileInfo function and retrieve the Length property which is the size in bytes:
TAG : vb.net
Date : October 31 2020, 05:43 PM , By : SANTOSH KUMAR
Bind a detail report to a class model with properties stored in a Dictionary (VB.NET, Devexpress)
Bind a detail report to a class model with properties stored in a Dictionary (VB.NET, Devexpress)
I hope this helps you . It seems that there are no way to bind to some method. I suggest you to take a look at ExpandoObject dynamic class. The members of this class can be added at runtime. This class implements IDictionary(Of String, Object) interf
TAG : vb.net
Date : October 31 2020, 05:41 PM , By : Mohamed Arbi Zoghla
SQL queries to Excel sheets - can't pass the first query
SQL queries to Excel sheets - can't pass the first query
wish helps you I am using below code to get data from multiple queries and pass the results to Excel sheets. The problem is it will keep populating the first sheet repeating infinitely the data from the first query: , This line:
TAG : vb.net
Date : October 31 2020, 01:52 PM , By : Paolo Vicanolo
Dataview filtering vb.net
Dataview filtering vb.net
Does that help To filter something on a DataVIew you need to specify the column on which the filter should be applied, the operator for the comparison and the value that you want to use for the filtering. It seems that you have given only the value "
TAG : vb.net
Date : October 31 2020, 01:49 PM , By : mionstar
Scrollable with the mouse
Scrollable with the mouse
wish helps you I have a panning on my usercontrol that for some reason if only the X or only the Y changes it will set the them back to 0. I have it where if x = 0 or y = 0 based on the change equals zero the AutoScrollPosition automatically sets it
TAG : vb.net
Date : October 31 2020, 01:47 PM , By : Priya
Nested If - ElseIf - Select Case
Nested If - ElseIf - Select Case
will be helpful for those in need In this case, your Select and If examples are most likely going to compile to the same machine code, with the exact same performance.In any case: Do not worry about micro-optimizing like this unless you have shown th
TAG : vb.net
Date : October 31 2020, 01:47 PM , By : Elvis Magagula
Getting what comes after a certain string - Visual Basic
Getting what comes after a certain string - Visual Basic
hope this fix your issue I'm trying to make a config, but I need to know what to replace, so I have a line looking like this: , You can use String-methods like IndexOf and Substring:
TAG : vb.net
Date : October 29 2020, 11:32 PM , By : Caio Carvalho
Mvvm. Textbox never change with System.Threading.Thread.Sleep
Mvvm. Textbox never change with System.Threading.Thread.Sleep
wish help you to fix your issue When you use Thread.Sleep on UI Thread you block the UI thread, So nothing can happen in UI. If you want to show a 1 second wait after each message you have two choices.1 - Using the Delay command in an Async method. h
TAG : vb.net
Date : October 29 2020, 11:32 PM , By : Scott Parris
How to add items from a MenuStrip event to a ListBox using a For Next Loop
How to add items from a MenuStrip event to a ListBox using a For Next Loop
should help you out That might have sounded weird so let me explain. , Sounds like you're trying to do this:
TAG : vb.net
Date : October 29 2020, 11:32 PM , By : Hunter Gibson
unlinking comboboxes from each other
unlinking comboboxes from each other
wish of those help My project has 3 comboboxes which all are collect similar data (identical options but they will result in different user selections) I have a datatable which is populated by mysql data - this datatable is linked to each of these co
TAG : vb.net
Date : October 29 2020, 06:12 AM , By : Tania Kamiel
Calling a DLL from Visual Studio VB 2015
Calling a DLL from Visual Studio VB 2015
will help you You do not declare the library itself in VB, you only declare individual functions from the library. The library name only appears in the Lib clause.If ExportMe is your only function, you should simply write
TAG : vb.net
Date : October 28 2020, 10:01 AM , By : Eric Brodeur
Finding a specific value in a file
Finding a specific value in a file
it helps some times I am trying to make a simple program to find some values in a file. These files are .arkprofile files and belong to the game ARK. , This sounds like a job for a regular expression:
TAG : vb.net
Date : October 27 2020, 04:13 PM , By : Gemma Stars
Mouse Events in vb.net
Mouse Events in vb.net
Does that help Something must be wrong on your side because the following code does work:
TAG : vb.net
Date : October 23 2020, 05:39 PM , By : Mark Ryan
How do you programmatically check a checkbox column in a datagridview? vb.net
How do you programmatically check a checkbox column in a datagridview? vb.net
I hope this helps you . I am looping through rows in a datagridview and need to check checkboxes in the checkbox column in certain records, but I don't know how?? , I was able to do this by using the following code:
TAG : vb.net
Date : October 23 2020, 05:39 PM , By : grozhnev
shadow
Privacy Policy - Terms - Contact Us © animezone.co