| Author: Jay Dubal 22 May 2007 | Member Level: Bronze | Rating: Points: 2 |
hello, what you can do is create a public property, or a public variable.... then say there are two Form1 and Form2 and you want to pass value to Form2 from Form1, then create object of form2 where the public member is .... then do this objForm2.Member = "your value"
then do objForm2.Show.... or you can create a new constructor, apart from the default one, and then pass this value in the constructor....
Also you can download some useful books regarding winforms from here: http://www.free-ebooks-download.org
Thanks Jay Dubal http://www.free-ebooks-download.org
|
| Author: Cema Indumathy V 22 May 2007 | Member Level: Diamond | Rating: Points: 2 |
In form1:
Dim obj as new Form2()
obj.Method1("values","that u want to pass")
obj.Show()
In Form2:
Dim str1 as string
Dim str2 as string
Public Sub Method1(v1 as string, v2 as string)
str1 = v1
str2 = v2
End sub
|
| Author: Jay Dubal 22 May 2007 | Member Level: Bronze | Rating: Points: 2 |
NEVER SPOON FEED, LET THEM LEARN :) :)
anyways... thanks!
|