Using the system clock for the generation.
When using " Rnd "
Label1.Text = CStr(Int(Rnd() * 10))
add the following under Form1_Load
Randomize()
Example___________________________________________
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub...
Here you go. It uses the system clock for the generation.
When using " Rnd "
Label1.Text = CStr(Int(Rnd() * 10))
add the following under Form1_Load
Randomize()
Example___________________________________________
Public Class Form1
Inherits System.Windows.Forms.Form
Private...
Hello expert,
I have a DataGrid Mouse Scroll Problem:
I can scroll from Start to End using the vertical scrollbars but when scrolling with the mouse and the selected row is scrolled past the top or bottom of viewing area the DataGrid looses focus (stops scrolling).
Only found similar...
How many STARS can I give?
Works like a champ!
Extreme test on 1,900 lines and 12 columns = 22,800 values…..
22 sec. - Looping through each column.add, row.add, w/ delimiter (old code).
vs.
1 sec. – (Now)
The reason why I wanted a code like that was SPEED.
Fewer loops equal faster program...
Sweep, thanks for bringing up the issue of datatype.
I have stored the data (in a text file) as 1 record per row and each data (Column) being separated by commas like most people would do. I StreamRead this file into a TextBox and use the Split method looping through for each row and column...
I am trying to create a DataTable with Columns and Rows from existing "Comma delimited Text/String" in either a TextBox or ListBox, which ever is faster.
Like passing the information from an Array or Collection, not looping through all Columns and Lines.
Thanks,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.