Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i detect DataGridView.SelectedRows pass in 2 for
Message
From
26/08/2011 11:36:35
 
 
To
26/08/2011 03:15:58
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
Miscellaneous
Thread ID:
01521317
Message ID:
01521906
Views:
22
>
>                     'MainForm Button event is no problem, variable a store "1"
>    Private Sub BtnBatch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBatch.Click
>
>      Dim a as string =""
>        a = ComboBoxUsername.text              
>        OptionForm.Show()
>
>
>    End Sub
>
>-----------------------------------------------------------------------------------------------------------------------------------------------
>    Private Sub OptionForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
>
>        Dim b As String = ""
>        b = MainForm.ComboBoxUsername.Text           'My problem in this , b  store " " ,no data
>
>end sub


And you passed MainForm to OptionForm? IOW, like this: new OptionForm(MainForm). Could you please post the new code you're now using?

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform