VB .NET
codingmasters
08 Apr 2004, 08:15Can anyone help?
I've just got VB .NET (horray!) and I'm having some trouble coding
1. how do you open a form and close the current one
2. what is the randomization code?
3. How do I load a form without showing it
I'm used to VB6 and so this is very new to me. I would appreciate some help
Thanks, Matthew G.
I've just got VB .NET (horray!) and I'm having some trouble coding
1. how do you open a form and close the current one
2. what is the randomization code?
3. How do I load a form without showing it
I'm used to VB6 and so this is very new to me. I would appreciate some help
Thanks, Matthew G.
miito
08 Apr 2004, 08:48I've never used VB .net, but I'd guess the reandomisation code is:
If number is [x] Rnd generates [y]
x y
Less than zero The same number every time, using number as the seed.
Greater than zero The next random number in the sequence.
Equal to zero The most recently generated number.
Not supplied The next random number in the sequence.
Well, that's it in VB but I can't garuntee that in .net version.
Remember to use the Randomize statement before using the rnd function.
Randomize
rnd([number])
If number is [x] Rnd generates [y]
x y
Less than zero The same number every time, using number as the seed.
Greater than zero The next random number in the sequence.
Equal to zero The most recently generated number.
Not supplied The next random number in the sequence.
Well, that's it in VB but I can't garuntee that in .net version.
Remember to use the Randomize statement before using the rnd function.
codingmasters
09 Apr 2004, 22:15If you aren't sure if it'll work in VB .NET then why post? I already know the random number code in VB6
Matthew G.
Matthew G.
GameBoy
10 Apr 2004, 00:24stfu newb, he tried to help and you have a go at him. fucking moron. you cant code either way.
paul_one
10 Apr 2004, 18:03Surely rnd(x) is ALWAYS the same if x is always the same....
even if you randomize first, x brings it back to that position in the formulae...
even if you randomize first, x brings it back to that position in the formulae...
codingmasters
12 Apr 2004, 02:56typical of Ste...take the other person's side
Matthew G.
Matthew G.
GameBoy
13 Apr 2004, 07:25Typical of me to take the right side. If ITID starts whining at you like a baby obviously i'll take your side, providing you didn't provoke him. You had a go at that guy for trying to HELP you, now that's just stupid and really disrespectful. psh