|
-
Apr 2nd, 2003, 08:59 AM
#1
Thread Starter
Hyperactive Member
Put Focus away ?
Hello vbers!
Ho do I put the Focus away from an element?
I'm doing a small picture viewer, which has only a PictureBox and two ScrollBars in it. The user can move the picture by keyboard and by using the ScrollBars.
Now the problem: When the picture is moved by the ScrollBars first and then by keyboard the Focus reminds on the bars and the picture moves wrong. 
What can I do?
Matt-D
-
Apr 2nd, 2003, 09:10 AM
#2
Lively Member
SOMETHING LIKE
VB Code:
Private Sub VScroll1_KeyUp(KeyCode As Integer, Shift As Integer)
Picture1.SetFocus
End Sub
-
Apr 2nd, 2003, 09:12 AM
#3
-
Apr 2nd, 2003, 09:18 AM
#4
Thread Starter
Hyperactive Member
• to yoey_yones
You can't set the focus to a PictureBox!
• to manavo11
That's crap. I want to avoid something like this
Matt-D
-
Apr 2nd, 2003, 09:22 AM
#5
Lively Member
WELL SET FOCUS TO SOMETHING ELSE THEN,
YOU SAID YOU WANTED TO SET FOCUS AWAY FROM THE SCROLL BAR OBJECT,
THE ONLY WAY TO DO THIS IS TO SET FOCUS TO SOMETHING ELSE. TRY YOUR FORM
-
Apr 2nd, 2003, 10:12 AM
#6
Thread Starter
Hyperactive Member
Ok, I'll take the way using a textbox...
Thanks, anyway
Matt
-
Apr 2nd, 2003, 10:18 AM
#7
Originally posted by joey_jones
WELL SET FOCUS TO SOMETHING ELSE THEN,
YOU SAID YOU WANTED TO SET FOCUS AWAY FROM THE SCROLL BAR OBJECT,
THE ONLY WAY TO DO THIS IS TO SET FOCUS TO SOMETHING ELSE. TRY YOUR FORM
Joey, do a caps check please..... feels like you are yelling and I don't think that is your intent.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|