Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: have a child while parent is not accesible Pin
Vikram A Punathambekar13-Apr-09 0:10
Vikram A Punathambekar13-Apr-09 0:10 
GeneralRe: have a child while parent is not accesible Pin
Fired.Fish.Gmail13-Apr-09 6:01
Fired.Fish.Gmail13-Apr-09 6:01 
GeneralRe: have a child while parent is not accesible Pin
cppwxwidgetsss13-Apr-09 18:25
cppwxwidgetsss13-Apr-09 18:25 
GeneralRe: have a child while parent is not accesible Pin
Fired.Fish.Gmail14-Apr-09 0:03
Fired.Fish.Gmail14-Apr-09 0:03 
GeneralRe: have a child while parent is not accesible Pin
cppwxwidgetsss14-Apr-09 1:12
cppwxwidgetsss14-Apr-09 1:12 
GeneralRe: have a child while parent is not accesible Pin
Vikram A Punathambekar14-Apr-09 7:27
Vikram A Punathambekar14-Apr-09 7:27 
Questionresolving lag connection to remote server? Pin
[c]amilo12-Apr-09 22:28
[c]amilo12-Apr-09 22:28 
QuestionClosing a form Pin
Deepali Khalkar12-Apr-09 22:27
Deepali Khalkar12-Apr-09 22:27 
I wanted to close a previous form after calling the next form. How do i do that?
I have many form in my application. When i exit the application using the following code all the forms are closed one by one. Instead i want to close the previous form after calling the next form in order to avoid the closing of all the forms after exit. Please help.

DialogResult result = MessageBox.Show("Do you want to exit?", "Exit-Window", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
if (result == DialogResult.OK)
Application.Exit();


I have tried with the following code but the application exits automatically.
The code is written on the command button on Form1. Smile | :)
private void button1_Click(object sender, EventArgs e)
{

Form2 frm2 = new Form2();
frm2.Show();
this.Close();


}

Smile | :)
AnswerRe: Closing a form Pin
Juan1R12-Apr-09 22:58
Juan1R12-Apr-09 22:58 
AnswerRe: Closing a form Pin
#realJSOP13-Apr-09 0:19
mve#realJSOP13-Apr-09 0:19 
Questionhow to read the specific tag [modified] Pin
YiXiang_8912-Apr-09 21:28
YiXiang_8912-Apr-09 21:28 
AnswerRe: how to read the specific tag Pin
Jimmanuel13-Apr-09 0:55
Jimmanuel13-Apr-09 0:55 
QuestionComponent to compare codes Pin
Surya Ayyagari12-Apr-09 21:00
Surya Ayyagari12-Apr-09 21:00 
Questionhow to call a webmethod in a Webservice using windows scheduler in windows application? Pin
ravi.vellanky12-Apr-09 20:55
ravi.vellanky12-Apr-09 20:55 
AnswerRe: how to call a webmethod in a Webservice using windows scheduler in windows application? Pin
Vikram A Punathambekar12-Apr-09 21:59
Vikram A Punathambekar12-Apr-09 21:59 
QuestionHTML Help Executable file Pin
Sajjad Leo12-Apr-09 20:52
Sajjad Leo12-Apr-09 20:52 
AnswerRe: HTML Help Executable file Pin
Fired.Fish.Gmail13-Apr-09 5:09
Fired.Fish.Gmail13-Apr-09 5:09 
GeneralRe: HTML Help Executable file Pin
Sajjad Leo13-Apr-09 20:42
Sajjad Leo13-Apr-09 20:42 
QuestionA question about how to fill data into DataSet Pin
harry~12-Apr-09 20:50
harry~12-Apr-09 20:50 
AnswerRe: A question about how to fill data into DataSet Pin
harry~12-Apr-09 21:11
harry~12-Apr-09 21:11 
QuestionCapturing F5 Keypress Pin
ramzg12-Apr-09 20:41
ramzg12-Apr-09 20:41 
AnswerRe: Capturing F5 Keypress Pin
S a n d y12-Apr-09 20:49
S a n d y12-Apr-09 20:49 
GeneralRe: Capturing F5 Keypress Pin
ramzg12-Apr-09 20:57
ramzg12-Apr-09 20:57 
AnswerRe: Capturing F5 Keypress Pin
12Code12-Apr-09 21:03
12Code12-Apr-09 21:03 
GeneralRe: Capturing F5 Keypress Pin
ramzg12-Apr-09 21:09
ramzg12-Apr-09 21:09 

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.