I have a problem as every newbie :)
I'm using vvb express 2013 and opening my windows with below code (credit goes to the owner, thanks to him btw) to prevent the form from opening twice:
If Me.yenifaturaekle Is Nothing OrElse _ Me.yenifaturaekle.IsDisposed Then Me.yenifaturaekle = New Yeni_Alış_Faturası yenifaturaekle.MdiParent = Giriş yenifaturaekle.Dock = DockStyle.Fill yenifaturaekle.Show() Else 'A Tool window is currently open. Me.yenifaturaekle.Activate() End If
The problem is :
I know the code to pass a dgv cell data to a textbox or label which is on another form :
form2.Label2.Text = Me.dgv.CurrentRow.Cells(0).Value form2.IdTextBox.Text = Me.dgv.CurrentRow.Cells(0).Value
but that code doesn't work with this code.
it works with standart form2.show() command but not with above one.
Maybe i placed it somewhere wrong.
Thanks for your help in advance.