Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: expose delegate in property grid Pin
Roger Alsing2-Mar-03 4:07
Roger Alsing2-Mar-03 4:07 
GeneralRe: expose delegate in property grid Pin
leppie2-Mar-03 11:37
leppie2-Mar-03 11:37 
GeneralRe: expose delegate in property grid Pin
leppie2-Mar-03 1:54
leppie2-Mar-03 1:54 
GeneralIPAddress range Pin
Mr BallyDaHob1-Mar-03 4:42
Mr BallyDaHob1-Mar-03 4:42 
GeneralRe: IPAddress range Pin
leppie1-Mar-03 6:27
leppie1-Mar-03 6:27 
Generalputting an img... Pin
sacoskun1-Mar-03 1:47
sacoskun1-Mar-03 1:47 
GeneralRe: putting an img... Pin
leppie1-Mar-03 6:17
leppie1-Mar-03 6:17 
GeneralButton events gets deleted! Pin
mirano1-Mar-03 1:35
mirano1-Mar-03 1:35 
Hi guys,

I was just wondering if this is only with me, or maybe somebody else out there experienced the same thing. When I put a button on my web form and connect a code to the click event of it (I use C#, but it shouldn't be language specific), then in the InitializeComponent() I got the code, something like:
this.btnSomething.Click += new System.EventHandler(this.btnSomething_Click);

and that is fine. Now after a while and after adding some more events and controls and deleteing some controls, it happens sometimes that the some lines gets deleted, and there will be no response to a click event!? The button is there, but it does not respond for it can not find its procedure. I suppose as I add controls on the form, this portion of code gets rewritten, but it is not supposed to lose any lines.
This is something similiar to binding controls to member variables in C++ 6 when programming database applications, when sometimes the wizard rewrites the code of DDX routines and tumbles up the order of member variables to controls.

If anybody of you have experienced the same, I would like to hear you experiences.

Thank you.

.
GeneralRe: Button events gets deleted! Pin
James T. Johnson1-Mar-03 1:46
James T. Johnson1-Mar-03 1:46 
GeneralRe: Button events gets deleted! Pin
JProd1-Mar-03 18:42
JProd1-Mar-03 18:42 
GeneralAgain : How to save the TreeView Pin
j-hannemann28-Feb-03 22:35
j-hannemann28-Feb-03 22:35 
GeneralRe: Again : How to save the TreeView Pin
leppie28-Feb-03 23:20
leppie28-Feb-03 23:20 
GeneralRe: Again : How to save the TreeView Pin
j-hannemann2-Mar-03 10:29
j-hannemann2-Mar-03 10:29 
GeneralUnmanaged Callback Pin
leppie28-Feb-03 11:43
leppie28-Feb-03 11:43 
GeneralRe: Unmanaged Callback Pin
Stephane Rodriguez.28-Feb-03 20:05
Stephane Rodriguez.28-Feb-03 20:05 
GeneralRe: Unmanaged Callback Pin
leppie28-Feb-03 22:11
leppie28-Feb-03 22:11 
GeneralRe: Unmanaged Callback Pin
Stephane Rodriguez.28-Feb-03 22:29
Stephane Rodriguez.28-Feb-03 22:29 
GeneralRe: Unmanaged Callback Pin
leppie28-Feb-03 22:48
leppie28-Feb-03 22:48 
GeneralRe: Unmanaged Callback Pin
leppie1-Mar-03 6:44
leppie1-Mar-03 6:44 
GeneralRe: Unmanaged Callback Pin
Stephane Rodriguez.1-Mar-03 10:46
Stephane Rodriguez.1-Mar-03 10:46 
GeneralRe: Unmanaged Callback Pin
leppie1-Mar-03 11:26
leppie1-Mar-03 11:26 
GeneralRegular Expression question Pin
chronobyte28-Feb-03 10:38
chronobyte28-Feb-03 10:38 
GeneralRe: Regular Expression question Pin
Daniel Turini28-Feb-03 11:11
Daniel Turini28-Feb-03 11:11 
GeneralRe: Regular Expression question Pin
chronobyte1-Mar-03 7:14
chronobyte1-Mar-03 7:14 
GeneralRe: Regular Expression question Pin
Domenic Denicola1-Mar-03 11:17
Domenic Denicola1-Mar-03 11:17 

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.