UserControl Key events don't fire?

  • Thread starter Thread starter schneider
  • Start date Start date
S

schneider

I can't get any of the Key events to fire in my UserControl.
The control only contains a few labels.

This is really annoying..

Anyone know whats going on?

Thanks,

Schneider
 
You are posting in every group you come across!!! You should only post once
and give it some time. Others may benefit from your ONE post when the answer
is centrally located, furthermore, 10 other people won't waste time trying
to answer a post that has already been answered by someone else. Please post
ONCE and wait for your answer.
 
I posted to This thread, and Vb.Controls, you get different types of users,
and there is no specific control_Author for winforms like there is for ASP.

Schneider
 
do you have events inside your control? do they raise another event to your
app? are they supposed to be handled inside your control? What are you
trying to accomplish? you should give more details, mabye some code.
 
I understand, but a lot of the users do read more than a single group. I
just get "urked" when I take the time to try and answer a question that has
been spammed to every newsgroup. It's late for me, I get cranky. Sorry.
 
I want to capture control keys, like Control,Alt & Cursors directions from
my user control code. The events do not get raised inside to control code.
They have the handlers for Mybase.Handles.* set, and I have event methods
for KeyDown, KeyUp, KeyPress and none of them fire.

I have also set the ControlStyles to Selectable...

Schneider.
 
Yes, I agree, and Try my best to refrain. But some of these groups are not
specific enough, sometime you get better results from another group, even
several days later.

Schneider
 
I don't know the answer why, but it seem as though the form doesn't process
these keys. If you add a text box control and monitor the key press
Keys.Left, Keys.Right, Keys.Up and Keys.Down are processed. I don't know
why! You could create a system wide hotkey for those keys and process them
in your own code. I am curious to read the answer.
 
* "schneider said:
I posted to This thread, and Vb.Controls, you get different types of users,
and there is no specific control_Author for winforms like there is for ASP.

?!?
 
Hi, Herfried

Ok what is main topic of Lang.Vb.Controls, is it for control development, or
on usage of existing controls. Seem most post are on usage of existing
framework controls.

I assume framwork.windowsforms.controls is on usage of thoes controls.

I'm thinking there should be the following:
dotnet.lang.wf.Controls (implementation of existing controls)
dotnet.lang.wf.InheritedControl_dev (derrived types)
dotnet.lang.wf.Controls_Development (Non inherited, new unique types)

As far as language, both would be nice, but I can live with-out it.

anyway, just my thoughts...

Schneider
 
* "schneider" <[email protected]> scripsit:

First of all, please don't mention my name to the subject of your
message.
Ok what is main topic of Lang.Vb.Controls, is it for control development, or
on usage of existing controls. Seem most post are on usage of existing
framework controls.

I assume framwork.windowsforms.controls is on usage of thoes controls.

That's what many questions there are currently about, but I don't think
that questions on how to develop controls are off-topic there. IMO,
they are on-topic in the controls group. Notice that this is my
opinion, I don't know what purpose was assigned to the group by
Microsoft.
I'm thinking there should be the following:
dotnet.lang.wf.Controls (implementation of existing controls)
dotnet.lang.wf.InheritedControl_dev (derrived types)
dotnet.lang.wf.Controls_Development (Non inherited, new unique types)

As far as language, both would be nice, but I can live with-out it.

There is few "traffic" in the controls group at the moment, much fewer
than in this group, so I don't see a reason for splitting the groups
up. Most people don't care about specialized groups at all, as you can
see on this group. It's currently flooded with database and control
related questions that would better fit into the ADO.NET or Windows
Forms (controls) groups.

Just my 2 Euro cents...
 
Ok, why so hostile..

Everyone having a bad day arround here, I'm just trying to help.

Schneider
 
Hi Schneider,

I was reading the message from Herfried and thought what a friendly good and
not direct only his own idea's telling message, is this Herfried.

I see seldom such nice messages from Herfried when it is not direct to the
language subject. (Not that he is meaning the other ones agresive, however I
can see he took some time for it, and thought probably a to a German
speaker)

And than you call it hostile

(What you could say from calling his name, in which he was right, I do it
myself sometimes, however only to get some extra attention from someone from
which I know that he knows the answer when the subject is totally different
from the question).

I hope that Herfried (for his own welfare) is using in future this style he
used to you more.

I was afraid your message about hostile would give Herfried the wrong idea
when I did not write this.

(When he had added in the last sentence as well IMO it was even better).

Cor


schneider said:
Ok, why so hostile..

Everyone having a bad day arround here, I'm just trying to help.

Schneider
 
Thats fair,

I did not want to offend anyone either,
we can close this thread now..

Thanks, Everyone

Schneider

Cor Ligthert said:
Hi Schneider,

I was reading the message from Herfried and thought what a friendly good and
not direct only his own idea's telling message, is this Herfried.

I see seldom such nice messages from Herfried when it is not direct to the
language subject. (Not that he is meaning the other ones agresive, however I
can see he took some time for it, and thought probably a to a German
speaker)

And than you call it hostile

(What you could say from calling his name, in which he was right, I do it
myself sometimes, however only to get some extra attention from someone from
which I know that he knows the answer when the subject is totally different
from the question).

I hope that Herfried (for his own welfare) is using in future this style he
used to you more.

I was afraid your message about hostile would give Herfried the wrong idea
when I did not write this.

(When he had added in the last sentence as well IMO it was even better).

Cor
 
Back
Top