Click here to Skip to main content
15,916,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Click throught a form Pin
Omar Mallat29-Oct-05 10:59
professionalOmar Mallat29-Oct-05 10:59 
GeneralRe: Click throught a form Pin
[Marc]29-Oct-05 11:03
[Marc]29-Oct-05 11:03 
GeneralRe: Click throught a form Pin
Omar Mallat29-Oct-05 11:09
professionalOmar Mallat29-Oct-05 11:09 
GeneralRe: Click throught a form Pin
[Marc]29-Oct-05 11:26
[Marc]29-Oct-05 11:26 
GeneralRe: Click throught a form Pin
Omar Mallat29-Oct-05 11:59
professionalOmar Mallat29-Oct-05 11:59 
GeneralRe: Click throught a form Pin
[Marc]29-Oct-05 13:09
[Marc]29-Oct-05 13:09 
GeneralRe: Click throught a form Pin
Greeky30-Oct-05 0:23
Greeky30-Oct-05 0:23 
QuestionUser Control does not process KeyDown event Pin
Gulfraz Khan29-Oct-05 2:03
Gulfraz Khan29-Oct-05 2:03 
Hello!

I am trying to create a UserControl which is inherited by Forms.Panel control
I have declared a variable for PictureBox as a class field
Friend WithEvents pb As PictureBox = New PictureBox()

After the InitializeComponent call in the default constructor, I have added the following code
pb.Visible = True
pb.Location = New Point(0, 0)
pb.Size = Me.Size
pb.BackColor = Color.Black
pb.SizeMode = PictureBoxSizeMode.StretchImage
Me.Controls.Add(pb)
Me.AutoScroll = True

I know that the PictureBox and Panel Control do not raise KeyUp,KeyDown, KeyPress events
Is there any way I can process KeyDown, KeyUp messages in this control?

Actually I want to process the KeyDown event for drawing a Rectangle then moving and resizing it using arrow keys over the picture box.
After the user finishes setting the rectangle, the user will press the Enter Key and the Image in the picture Box will be cropped according to the rectangle.

I have tried override the OnKeyDown but it doesn't invoke.

Thanking you in advance


AnswerRe: User Control does not process KeyDown event Pin
Christian Graus30-Oct-05 11:51
protectorChristian Graus30-Oct-05 11:51 
GeneralRe: User Control does not process KeyDown event Pin
Gulfraz Khan30-Oct-05 23:56
Gulfraz Khan30-Oct-05 23:56 
Questioncon not find keycodev2.dll or invalid keycode Pin
mostafa_h29-Oct-05 1:44
mostafa_h29-Oct-05 1:44 
Questionmschart control Pin
amadullah29-Oct-05 1:37
amadullah29-Oct-05 1:37 
AnswerRe: mschart control Pin
Joshua Quick29-Oct-05 11:18
Joshua Quick29-Oct-05 11:18 
Questionputing a icon in treeview Pin
Paritos28-Oct-05 21:00
Paritos28-Oct-05 21:00 
AnswerRe: puting a icon in treeview Pin
S. Senthil Kumar29-Oct-05 19:28
S. Senthil Kumar29-Oct-05 19:28 
QuestionHow do I print an invoice Pin
William Penington28-Oct-05 13:51
William Penington28-Oct-05 13:51 
AnswerRe: How do I print an invoice Pin
Gulfraz Khan29-Oct-05 3:07
Gulfraz Khan29-Oct-05 3:07 
QuestionRe: How do I print an invoice Pin
| Muhammad Waqas Butt |30-Oct-05 22:18
professional| Muhammad Waqas Butt |30-Oct-05 22:18 
AnswerRe: How do I print an invoice Pin
Gulfraz Khan31-Oct-05 0:11
Gulfraz Khan31-Oct-05 0:11 
QuestionVS 2005 Windows Service Install Pin
Brent Lamborn28-Oct-05 11:34
Brent Lamborn28-Oct-05 11:34 
Questionvb6 web browser control Pin
Lord Bogy28-Oct-05 7:33
Lord Bogy28-Oct-05 7:33 
AnswerRe: vb6 web browser control Pin
rwestgraham28-Oct-05 8:06
rwestgraham28-Oct-05 8:06 
GeneralRe: vb6 web browser control Pin
Lord Bogy28-Oct-05 8:51
Lord Bogy28-Oct-05 8:51 
QuestionSaveFileDialog Pin
jotico28-Oct-05 7:30
jotico28-Oct-05 7:30 
AnswerRe: SaveFileDialog Pin
enjoycrack28-Oct-05 10:52
enjoycrack28-Oct-05 10:52 

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.