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

C#

 
GeneralRe: Console-Like Text Output Control Or.... Pin
Alex Korchemniy16-Oct-04 8:52
Alex Korchemniy16-Oct-04 8:52 
GeneralGDI+ - line chart Pin
xiaowenjie16-Oct-04 4:56
xiaowenjie16-Oct-04 4:56 
GeneralRe: GDI+ - line chart Pin
Kiran Satish16-Oct-04 6:11
Kiran Satish16-Oct-04 6:11 
GeneralRe: GDI+ - line chart Pin
xiaowenjie16-Oct-04 9:40
xiaowenjie16-Oct-04 9:40 
GeneralRe: GDI+ - line chart Pin
Kiran Satish16-Oct-04 18:21
Kiran Satish16-Oct-04 18:21 
GeneralRe: GDI+ - line chart Pin
Alex Korchemniy16-Oct-04 9:22
Alex Korchemniy16-Oct-04 9:22 
QuestionHow can i close my Form Pin
Zapss16-Oct-04 1:31
Zapss16-Oct-04 1:31 
AnswerRe: How can i close my Form Pin
sreejith ss nair16-Oct-04 4:45
sreejith ss nair16-Oct-04 4:45 
You can override the form close event. and can give your own event handler. So what you can do is ,set e.Cancel=false inside the overrided handler.
eg:
<br />
protected override void OnClosing(CancelEventArgs e)<br />
		{<br />
			try<br />
			{<br />
				if(MessageBox.Show("This Will Close Your Form . Do You Want To Continue ?","Conformation",MessageBoxButtons.YesNo,MessageBoxIcon.Information)  ==  DialogResult.No)<br />
				{<br />
					e.Cancel = true;<br />
					base.OnClosing (e);<br />
				}<br />
				else<br />
				{<br />
					this.Dispose();<br />
					<br />
				}<br />
			}<br />
			catch(Exception Ex)<br />
			{<br />
				MessageBox.Show("Ex.Message.ToString(),"Information",MessageBoxButtons.OK,MessageBoxIcon.Information);<br />
<br />
			}<br />
		}<br />


Sreejith Nair
[ My Articles ]
GeneralRe: How can i close my Form Pin
Zapss16-Oct-04 20:40
Zapss16-Oct-04 20:40 
GeneralSubclass control over main class Pin
Nekosan16-Oct-04 1:00
Nekosan16-Oct-04 1:00 
GeneralRe: Subclass control over main class Pin
J4amieC16-Oct-04 2:36
J4amieC16-Oct-04 2:36 
GeneralRe: Subclass control over main class Pin
Nekosan16-Oct-04 2:47
Nekosan16-Oct-04 2:47 
GeneralRe: Subclass control over main class Pin
Alex Korchemniy16-Oct-04 9:40
Alex Korchemniy16-Oct-04 9:40 
GeneralRe: Subclass control over main class Pin
Nekosan16-Oct-04 10:01
Nekosan16-Oct-04 10:01 
GeneralRe: Subclass control over main class Pin
Alex Korchemniy16-Oct-04 10:25
Alex Korchemniy16-Oct-04 10:25 
QuestionHow to draw a custom graph/2D plot? Pin
Kiran Satish15-Oct-04 19:24
Kiran Satish15-Oct-04 19:24 
AnswerRe: How to draw a custom graph/2D plot? Pin
Alex Korchemniy16-Oct-04 8:42
Alex Korchemniy16-Oct-04 8:42 
GeneralRe: How to draw a custom graph/2D plot? Pin
Kiran Satish16-Oct-04 18:23
Kiran Satish16-Oct-04 18:23 
GeneralResource Globalization Pin
codes/w15-Oct-04 19:07
codes/w15-Oct-04 19:07 
GeneralRe: Resource Globalization Pin
Alex Korchemniy16-Oct-04 10:00
Alex Korchemniy16-Oct-04 10:00 
QuestionHow to use the play list function of the Pin
skywen15-Oct-04 17:47
skywen15-Oct-04 17:47 
GeneralDatabase access error Pin
StephenMcAllister15-Oct-04 16:11
StephenMcAllister15-Oct-04 16:11 
GeneralRe: Database access error Pin
Carl Mercier15-Oct-04 17:14
Carl Mercier15-Oct-04 17:14 
GeneralRe: Database access error Pin
Alex Korchemniy16-Oct-04 10:13
Alex Korchemniy16-Oct-04 10:13 
QuestionC# interop with type System.__ComObject? Pin
vista2715-Oct-04 15:01
vista2715-Oct-04 15:01 

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.