Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# close 1 form open another form

		this.Hide();//Hide the 'current' form, i.e frm_form1 
        //show another form ( frm_form2 )   
        frm_form2 frm = new frm_form2();
        frm.ShowDialog();
        //Close the form.(frm_form1)
        this.Close();
Comment

c# open a new form and close current

{
    this.Hide();
    Form1 f1 = new Form1();
    f1.ShowDialog();
    this.Close();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity instantiate 
Csharp :: c# serviceCollection AddLogging 
Csharp :: iterate through xpdictionary devexpress 
Csharp :: how to know what object player touches unity 2D 
Csharp :: how to make a for loop in c# 
Csharp :: c# ascii to char 
Csharp :: c# string newline 
Csharp :: unity get textmesh pro component 
Csharp :: how to center text in console application 
Csharp :: how to make int to text unity 
Csharp :: cinemachine namespace not working 
Csharp :: c# separate string by comma 
Csharp :: ldap check user exists 
Csharp :: how to check if string can be converted to int c# 
Csharp :: unity remove parent 
Csharp :: how to convert int to char in c# 
Csharp :: dictionary to string c# 
Csharp :: c# connect to mongodb 
Csharp :: change vignette intensity unity 
Csharp :: unity change tmp text from script 
Csharp :: c# start file 
Csharp :: c# hex to console color 
Csharp :: c# console background color 
Csharp :: new color unity 
Csharp :: how to add item to listbox in c# 
Csharp :: print array in c# 
Csharp :: c# list of strings 
Csharp :: deserialize object to dictionary c# 
Csharp :: c# list grouping 
Csharp :: reverse a string in c# 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =