Click here to Skip to main content
15,888,129 members
Home / Discussions / C#
   

C#

 
GeneralRe: setting large amount of text in textbox Pin
V.26-Apr-07 4:44
professionalV.26-Apr-07 4:44 
GeneralRe: setting large amount of text in textbox Pin
althamda26-Apr-07 4:46
althamda26-Apr-07 4:46 
GeneralRe: setting large amount of text in textbox Pin
V.26-Apr-07 4:51
professionalV.26-Apr-07 4:51 
GeneralRe: setting large amount of text in textbox [modified] Pin
althamda26-Apr-07 4:59
althamda26-Apr-07 4:59 
GeneralRe: setting large amount of text in textbox Pin
V.26-Apr-07 7:37
professionalV.26-Apr-07 7:37 
QuestionPrinting PDF document from C# Pin
PatrickMeinguet26-Apr-07 2:20
PatrickMeinguet26-Apr-07 2:20 
AnswerRe: Printing PDF document from C# Pin
kubben26-Apr-07 2:28
kubben26-Apr-07 2:28 
QuestionUnregistering Event Pin
Rome'26-Apr-07 2:09
Rome'26-Apr-07 2:09 
Hi All

I am a new to C# and to programming . My first job. I want to get some things right. The coding that i am doing will go in for a code review and it will be my first one.

The problem is that i am creating a control at run time and registering an event to take care of click event

like belwo

GridVoucher.Click += new GridClickEventHandler(GridVoucher_Click);

i may want to dispose off the control also !!

Do I unregister this event before I dispose of the code (I think i should)

If so how ? I know I am suppose dto use the -= operator but how?

I am confused
Confused | :confused:
Can somebody help ?

Thanks

Romi

AnswerRe: Unregistering Event Pin
stancrm26-Apr-07 2:54
stancrm26-Apr-07 2:54 
AnswerRe: Unregistering Event Pin
Nouman Bhatti26-Apr-07 3:07
Nouman Bhatti26-Apr-07 3:07 
GeneralRe: Unregistering Event Pin
Rome'26-Apr-07 3:47
Rome'26-Apr-07 3:47 
GeneralRe: Unregistering Event Pin
Scott Dorman26-Apr-07 4:02
professionalScott Dorman26-Apr-07 4:02 
AnswerRe: Unregistering Event Pin
Scott Dorman26-Apr-07 4:12
professionalScott Dorman26-Apr-07 4:12 
GeneralRe: Unregistering Event Pin
Rome'26-Apr-07 4:43
Rome'26-Apr-07 4:43 
GeneralRe: Unregistering Event Pin
Scott Dorman26-Apr-07 5:16
professionalScott Dorman26-Apr-07 5:16 
GeneralRe: Unregistering Event Pin
Dan Neely26-Apr-07 8:50
Dan Neely26-Apr-07 8:50 
GeneralRe: Unregistering Event Pin
Martin#6-May-07 20:31
Martin#6-May-07 20:31 
GeneralRe: Unregistering Event Pin
Scott Dorman7-May-07 4:21
professionalScott Dorman7-May-07 4:21 
GeneralRe: Unregistering Event Pin
Martin#7-May-07 4:38
Martin#7-May-07 4:38 
GeneralRe: Unregistering Event Pin
Scott Dorman7-May-07 4:42
professionalScott Dorman7-May-07 4:42 
GeneralRe: Unregistering Event Pin
Martin#7-May-07 4:48
Martin#7-May-07 4:48 
GeneralRe: Unregistering Event Pin
Scott Dorman7-May-07 4:51
professionalScott Dorman7-May-07 4:51 
GeneralRe: Unregistering Event Pin
Martin#7-May-07 4:54
Martin#7-May-07 4:54 
Questiondatarelation in dataset Pin
shanthivasan26-Apr-07 2:02
shanthivasan26-Apr-07 2:02 
AnswerRe: datarelation in dataset Pin
stancrm26-Apr-07 2:56
stancrm26-Apr-07 2:56 

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.