Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
AnswerRe: Adding Items to combo box from a table field Pin
Christian Graus20-Feb-07 23:09
protectorChristian Graus20-Feb-07 23:09 
AnswerRe: Adding Items to combo box from a table field Pin
Niiiissssshhhhhuuuuu20-Feb-07 23:12
Niiiissssshhhhhuuuuu20-Feb-07 23:12 
Questionhow can i send just one byte with serial port? Pin
Mir_As20-Feb-07 22:15
Mir_As20-Feb-07 22:15 
AnswerRe: how can i send just one byte with serial port? Pin
stancrm20-Feb-07 22:36
stancrm20-Feb-07 22:36 
QuestionLoading Report (Crystal Report) from my Application, after deployment. Pin
Banjo Ayorinde20-Feb-07 22:11
Banjo Ayorinde20-Feb-07 22:11 
QuestionProblem in loading form Urgent please Pin
NK720-Feb-07 20:47
NK720-Feb-07 20:47 
AnswerRe: Problem in loading form Urgent please Pin
NK720-Feb-07 20:48
NK720-Feb-07 20:48 
AnswerRe: Problem in loading form Urgent please Pin
PandemoniumPasha20-Feb-07 22:11
PandemoniumPasha20-Feb-07 22:11 
i'm not quite sure what exactly is you problem, is it not being to close the application or not being able to show the forms.
but i did have a look at your code. the code below is in c# (which is similar to your code) and worked fine for me.

form1:
------
<br />
		private void btncancel_Click(object sender, System.EventArgs e)<br />
		{<br />
			if(MessageBox.Show("Do you want to exit","Exiting",MessageBoxButtons.OKCancel,MessageBoxIcon.Question)==DialogResult.OK)<br />
				Application.Exit();<br />
		}<br />
<br />
		private void btnnext_Click(object sender, System.EventArgs e)<br />
		{<br />
			Form2 objform2=new Form2(this);<br />
			objform2.ShowDialog();<br />
		}


form2:
------
<br />
		private Form1 frmForm1;<br />
		public Form2(Form1 objForm)<br />
		{<br />
			frmForm1=objForm;<br />
		}<br />
		private void btncancel_Click(object sender, System.EventArgs e)<br />
		{<br />
			if(MessageBox.Show("Do you want to exit","Exiting", MessageBoxButtons.OKCancel,MessageBoxIcon.Question) ==DialogResult.OK)<br />
				Application.Exit();<br />
		}<br />
<br />
		private void butback_Click(object sender, System.EventArgs e)<br />
		{<br />
			frmForm1.Visible=true;<br />
			this.Close();<br />
		}<br />
<br />
		private void Form2_Load(object sender, System.EventArgs e)<br />
		{<br />
			frmForm1.Visible=false;<br />
		}<br />

GeneralRe: Problem in loading form Urgent please Pin
NK720-Feb-07 22:25
NK720-Feb-07 22:25 
GeneralRe: Problem in loading form Urgent please Pin
NK720-Feb-07 22:41
NK720-Feb-07 22:41 
QuestionHow to retrieve list of users from particular Active Directory Group Pin
prabhakaranns20-Feb-07 20:40
prabhakaranns20-Feb-07 20:40 
Questionproblem in web form loading Pin
EEmaan20-Feb-07 20:32
EEmaan20-Feb-07 20:32 
AnswerRe: problem in web form loading Pin
il_masacratore20-Feb-07 21:34
il_masacratore20-Feb-07 21:34 
AnswerRe: problem in web form loading Pin
K.P.Kannan20-Feb-07 22:11
K.P.Kannan20-Feb-07 22:11 
QuestionWindows File System Refresh in C# Application Pin
Sunil Jampa20-Feb-07 19:23
Sunil Jampa20-Feb-07 19:23 
AnswerRe: Windows File System Refresh in C# Application Pin
Niiiissssshhhhhuuuuu20-Feb-07 19:52
Niiiissssshhhhhuuuuu20-Feb-07 19:52 
GeneralRe: Windows File System Refresh in C# Application Pin
Niiiissssshhhhhuuuuu20-Feb-07 19:55
Niiiissssshhhhhuuuuu20-Feb-07 19:55 
GeneralRe: Windows File System Refresh in C# Application Pin
Sunil Jampa20-Feb-07 20:17
Sunil Jampa20-Feb-07 20:17 
GeneralRe: Windows File System Refresh in C# Application Pin
Niiiissssshhhhhuuuuu20-Feb-07 20:31
Niiiissssshhhhhuuuuu20-Feb-07 20:31 
QuestionPop Up Menu Pin
hiremath7120-Feb-07 19:21
hiremath7120-Feb-07 19:21 
AnswerRe: Pop Up Menu Pin
Niiiissssshhhhhuuuuu20-Feb-07 20:12
Niiiissssshhhhhuuuuu20-Feb-07 20:12 
GeneralRe: Pop Up Menu Pin
hiremath7120-Feb-07 21:52
hiremath7120-Feb-07 21:52 
GeneralRe: Pop Up Menu Pin
Niiiissssshhhhhuuuuu20-Feb-07 22:57
Niiiissssshhhhhuuuuu20-Feb-07 22:57 
GeneralRe: Pop Up Menu Pin
hiremath7120-Feb-07 23:05
hiremath7120-Feb-07 23:05 
QuestionWindows Locatin Pin
hiremath7120-Feb-07 19:14
hiremath7120-Feb-07 19:14 

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.