|
-
Sep 12th, 2002, 06:56 AM
#1
Thread Starter
Hyperactive Member
very new to vb.net , how do you pass variables from form 1 to form 2
Hi
I am very new to vb.net , it def seems the wat to go though ! I will stick at it even though I am having problems with the most basic of things just now.
My first problem is passing a variable that has been declared on form1 to form 2 , even though I have decleared the variable as public on form1 form 2 will not let me use it.
How do I do this ?
Also my second problem is this
I wanted to loop through all the controls that are text boxes on a form and set them to enabled = false
I used to do this
dim mycontrol as control
for each mycontrol in me
If TypeOf mycontrol Is TextBox Then mycontrol.Locked = True
if TypeOf mycontrol Is ComboBox Then mycontrol.Locked = True
next
but .net objects to this and highlights the me word
how can I do this in vb.net without locking all controls one by one
many thx for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|