strange click problem

C

christophe

hi,

i've got some troubles with trapping some click events on button in a non
modal form under compactFramework
my application, throw two form , with the Show() function.
so one of them goes in background

on the frontground form, the click event of my Buttons work perfectly
but when i bring the second form (kind of hand-made toolbox) to front, by
clicking its tab in the windows bar, i can't managed to trap the click
events of this form's buttons
with the debugger, it nerver go in the event handlers!!

but thoses are present in the code
i've made them with lines like:
this.btCalculs.Click += new System.EventHandler(this.btCalculs_Click);



i can' t understand why these events don't get fired in this form

any ideas ?



Christophe
 
G

Ginny Caughey [MVP]

christophe,

Is there a reason you need the toolbox to be modeless? Maybe you could just
make it modal and give it a Cancel or Close button so the user can dismiss
it if he doesn't want to use it.
 
C

christophe

the reason is that it should be always accessible,unique, and that it must
not disable the other forms
the second reason is that its buttons may work in different ways , according
to the context (witch other form is open, for exemple)

i 've found the beginning of an explanation
all my buttons were in a panel
i've tried to add another one , directly on the form, not on the panel
it appears that it is abble to respond to the click

Christophe
 
G

Ginny Caughey [MVP]

Ok, thanks for the followup.
--
Ginny Caughey
..Net Compact Framework MVP

christophe said:
the reason is that it should be always accessible,unique, and that it must
not disable the other forms
the second reason is that its buttons may work in different ways , according
to the context (witch other form is open, for exemple)

i 've found the beginning of an explanation
all my buttons were in a panel
i've tried to add another one , directly on the form, not on the panel
it appears that it is abble to respond to the click

Christophe

"Ginny Caughey [MVP]" <[email protected]> a écrit dans le
message de news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top