i have two Forms : Form1 and Form2 from Form1 i show Form2: Form2 form2 = new Form2(); form2.Show(); i want from Form2 to Close Form1 by using the same code: Form1 form1 = new Form1(); form2.Show(); but doesn't close Form1
m m _2007
Posts
-
Forms -
searchingi want to search for specific row in database: first: stored procedure create procedure search @name varchar (50) as select * from members where name = @name second:C# -create connection and open it -create command and set it to stored procedure -create parameter and pass value i want to search for to that parameter i want to know the index of that row sotred procedure returned to pass it to : DataRow dataRow = dataTable.Rows[index] to fill textboxs of other fields "phone,hire_date,email,..." textbox.text = dataRow["phone"];
-
pass variablesi want to pass variable from one calss "form1" to another class "form2"
-
refreshhow can i refresh SQLserver tables from C# using ado.net classes
-
exit event handlerhow can i exit event handler..and dont execute code in this event handler when some condition occurs
-
navigation bari want to make navigation bar in my appliction i want to know the methods in ADO.NET using C# to navigate records in database
-
control in another formthx but still cant access enabled property
-
control in another formhow can i access control (like button) in one form(form 1) from another from(form 2).. i want to set the enabled property of this control rom form 2