Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: OutLook and WebService Pin
Esmo200020-Jan-05 5:22
Esmo200020-Jan-05 5:22 
GeneralDrawing Curves in C# !! Pin
ElJerry19-Jan-05 21:06
ElJerry19-Jan-05 21:06 
GeneralRe: Drawing Curves in C# !! Pin
Heath Stewart20-Jan-05 6:48
protectorHeath Stewart20-Jan-05 6:48 
General[C# / SQL] cmd.ExecuteNonQuery() problem Pin
Rafferty Uy19-Jan-05 19:13
Rafferty Uy19-Jan-05 19:13 
GeneralRe: [C# / SQL] cmd.ExecuteNonQuery() problem Pin
leppie19-Jan-05 19:56
leppie19-Jan-05 19:56 
Generalpls correct the error in this part of the program Pin
dhol19-Jan-05 17:07
dhol19-Jan-05 17:07 
GeneralRe: pls correct the error in this part of the program Pin
David Levitt (Myrddin)21-Jan-05 13:18
David Levitt (Myrddin)21-Jan-05 13:18 
Questionhow to remove an EventHandler? Pin
zecodela19-Jan-05 15:53
zecodela19-Jan-05 15:53 
hi,
i found a form can't be destroyed after registered for the Main form's timer event. below are 2 methods used to create the form. one register with timer event, one without. i can see that the destructor of the one without timer event registered will be called after i open and close the form several times. but, the one with timer event registered. destructor will be called only when the main app exit.

so, any method to help?
<br />
// inside main form<br />
private Form2 frmbulk;<br />
		private int counter;<br />
		private void button1_Click(object sender, System.EventArgs e)<br />
		{<br />
			Cursor currentCursor = Cursor.Current;<br />
			Cursor.Current = Cursors.WaitCursor;<br />
<br />
			frmbulk = null;<br />
			frmbulk  = new Form2("Form2_"+System.Convert.ToString(counter++)); <br />
	                <br />
			this.timer1.Tick += new EventHandler(frmbulk.TimerEventHandler);<br />
			frmbulk.Show();<br />
<br />
			Cursor.Current = currentCursor;<br />
		}<br />
<br />
		private void button2_Click(object sender, System.EventArgs e)<br />
		{<br />
			Cursor currentCursor = Cursor.Current;<br />
			Cursor.Current = Cursors.WaitCursor;<br />
			frmbulk = null;			<br />
			frmbulk  = new Form2("Form2_"+System.Convert.ToString(counter++)); <br />
	                <br />
			frmbulk.Show();<br />
			Cursor.Current = currentCursor;<br />
		}

AnswerRe: how to remove an EventHandler? Pin
Robert Rohde19-Jan-05 19:32
Robert Rohde19-Jan-05 19:32 
GeneralFew menu extension (WinForms) Pin
TheDen19-Jan-05 15:20
TheDen19-Jan-05 15:20 
GeneralRe: Few menu extension (WinForms) Pin
Dave Kreskowiak20-Jan-05 3:53
mveDave Kreskowiak20-Jan-05 3:53 
GeneralRe: Few menu extension (WinForms) Pin
Charlie Williams20-Jan-05 5:54
Charlie Williams20-Jan-05 5:54 
GeneralExposing data to WMI Pin
ilkovm19-Jan-05 13:41
ilkovm19-Jan-05 13:41 
GeneralRe: Exposing data to WMI Pin
Heath Stewart20-Jan-05 6:25
protectorHeath Stewart20-Jan-05 6:25 
GeneralRe: Exposing data to WMI Pin
ilkovm20-Jan-05 12:44
ilkovm20-Jan-05 12:44 
QuestionHow can i handle my project in windows event Pin
m.rastgar19-Jan-05 11:36
m.rastgar19-Jan-05 11:36 
AnswerRe: How can i handle my project in windows event Pin
Heath Stewart20-Jan-05 6:09
protectorHeath Stewart20-Jan-05 6:09 
GeneralControl development Pin
PaleyX19-Jan-05 11:30
PaleyX19-Jan-05 11:30 
GeneralRe: Control development Pin
Robert Rohde19-Jan-05 19:36
Robert Rohde19-Jan-05 19:36 
GeneralRe: Control development Pin
PaleyX19-Jan-05 22:02
PaleyX19-Jan-05 22:02 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 6:03
protectorHeath Stewart20-Jan-05 6:03 
GeneralRe: Control development Pin
PaleyX20-Jan-05 6:28
PaleyX20-Jan-05 6:28 
GeneralRe: Control development Pin
Dave Kreskowiak20-Jan-05 8:06
mveDave Kreskowiak20-Jan-05 8:06 
GeneralRe: Control development Pin
PaleyX20-Jan-05 8:27
PaleyX20-Jan-05 8:27 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 9:21
protectorHeath Stewart20-Jan-05 9:21 

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.