Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i detect DataGridView.SelectedRows pass in 2 for
Message
De
26/08/2011 11:36:35
 
 
À
26/08/2011 03:15:58
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
Divers
Thread ID:
01521317
Message ID:
01521906
Vues:
23
>
>                     '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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform