I have two forms as form1 and form2 in my project.in form1 it has textbox as txtid. I take n=txtid.text in from1.then how can I use the same value of n (got at form1) applicable at from2.
mahela
0
Light Poster
Recommended Answers
Jump to PostDeclare your "n" value in a module -
''In a module... Dim n As String ''In Form1... n = Text1.Text ''In Form2... Text1.Text = n
Jump to PostClick on Project-->Add module
Then add the code I gave you above for module, form 1 form 2 etc...
All 7 Replies
AndreRet
526
Senior Poster
mahela
0
Light Poster
AndreRet
526
Senior Poster
mahela
0
Light Poster
AndreRet
526
Senior Poster
mahela
0
Light Poster
AndreRet
526
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.