Click here to Skip to main content
15,911,141 members
Home / Discussions / C#
   

C#

 
QuestionC# Class question Pin
joshp121730-Jun-06 9:17
joshp121730-Jun-06 9:17 
AnswerRe: C# Class question Pin
Ravi Bhavnani30-Jun-06 9:33
professionalRavi Bhavnani30-Jun-06 9:33 
QuestionImage transparency when resizing [modified] Pin
Palooka30-Jun-06 8:46
Palooka30-Jun-06 8:46 
QuestionClose current form and then open new form Pin
Saamir30-Jun-06 8:18
Saamir30-Jun-06 8:18 
AnswerRe: Close current form and then open new form Pin
stancrm30-Jun-06 8:31
stancrm30-Jun-06 8:31 
AnswerRe: Close current form and then open new form Pin
wasife30-Jun-06 20:10
wasife30-Jun-06 20:10 
QuestionRe: Close current form and then open new form Pin
Saamir1-Jul-06 17:24
Saamir1-Jul-06 17:24 
AnswerRe: Close current form and then open new form Pin
Andrew Lygin2-Jul-06 5:44
Andrew Lygin2-Jul-06 5:44 
If Form1 is the main form of your application then on closing it terminates the main thread. So Form2 are closed too. You should hide Form1 and close it only after Form2 is closed. Try this in your Form1:

<br />
private void ShowForm2()<br />
{<br />
    Form2 form2 = new Form2();<br />
    form2.Closed += new EventHandler(form2_Closed);<br />
    form2.Show();<br />
    Hide();<br />
}<br />
<br />
private void form2_Closed(object sender, System.EventArgs e)<br />
{<br />
    Close();<br />
}<br />

GeneralRe: Close current form and then open new form Pin
Saamir5-Jul-06 2:46
Saamir5-Jul-06 2:46 
QuestionData Transfer Suggestion Pin
wasife30-Jun-06 7:07
wasife30-Jun-06 7:07 
AnswerRe: Data Transfer Suggestion Pin
Le centriste30-Jun-06 7:18
Le centriste30-Jun-06 7:18 
AnswerRe: Data Transfer Suggestion Pin
Ravi Bhavnani30-Jun-06 7:19
professionalRavi Bhavnani30-Jun-06 7:19 
GeneralRe: Data Transfer Suggestion Pin
wasife30-Jun-06 7:25
wasife30-Jun-06 7:25 
AnswerRe: Data Transfer Suggestion Pin
Ravi Bhavnani30-Jun-06 7:33
professionalRavi Bhavnani30-Jun-06 7:33 
AnswerRe: Data Transfer Suggestion Pin
Jun Du30-Jun-06 7:42
Jun Du30-Jun-06 7:42 
Questionread only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 6:25
SomeGuyThatIsMe30-Jun-06 6:25 
AnswerRe: read only array, not read only in property grid Pin
Dustin Metzgar30-Jun-06 6:34
Dustin Metzgar30-Jun-06 6:34 
GeneralRe: read only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 7:41
SomeGuyThatIsMe30-Jun-06 7:41 
GeneralRe: read only array, not read only in property grid Pin
Dustin Metzgar30-Jun-06 8:12
Dustin Metzgar30-Jun-06 8:12 
GeneralRe: read only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 8:32
SomeGuyThatIsMe30-Jun-06 8:32 
GeneralRe: read only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 8:42
SomeGuyThatIsMe30-Jun-06 8:42 
GeneralRe: read only array, not read only in property grid Pin
Dustin Metzgar30-Jun-06 9:10
Dustin Metzgar30-Jun-06 9:10 
GeneralRe: read only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 9:42
SomeGuyThatIsMe30-Jun-06 9:42 
GeneralRe: read only array, not read only in property grid Pin
Dustin Metzgar30-Jun-06 9:57
Dustin Metzgar30-Jun-06 9:57 
GeneralRe: read only array, not read only in property grid Pin
SomeGuyThatIsMe5-Jul-06 7:59
SomeGuyThatIsMe5-Jul-06 7:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.