Click here to Skip to main content
15,907,687 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Atul Kharecha28-Apr-09 2:51
Atul Kharecha28-Apr-09 2:51 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Jay Royall28-Apr-09 2:58
Jay Royall28-Apr-09 2:58 
AnswerRe: X - Key as a shortcut creates problem when typing. Pin
Tom Deketelaere28-Apr-09 2:46
professionalTom Deketelaere28-Apr-09 2:46 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Atul Kharecha28-Apr-09 3:58
Atul Kharecha28-Apr-09 3:58 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Luc Pattyn28-Apr-09 4:05
sitebuilderLuc Pattyn28-Apr-09 4:05 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Tom Deketelaere28-Apr-09 4:16
professionalTom Deketelaere28-Apr-09 4:16 
QuestionCropping a High Resolution Image in VB.Net 2008 Pin
wkitlam28-Apr-09 1:22
wkitlam28-Apr-09 1:22 
AnswerRe: Cropping a High Resolution Image in VB.Net 2008 Pin
Luc Pattyn28-Apr-09 1:27
sitebuilderLuc Pattyn28-Apr-09 1:27 
Hi,

the problem basically is that the PictureBox is doing things (panning, zooming, resizing, ...) to your image, and not to whatever you draw on top of it.

There are two solutions:
1. mimic the PictureBox logic for everything you are drawing on top of it.
2. don't use a PictureBox at all; use a Panel instead, show the image by painting it with Graphics.DrawImage; now implement the panning, zooming, resizing,... whatever you want yourself and apply them equally to the image and the other parts drawn (best use one or some of the Transform methods which manipulate coordinates and scales).

I always do (2), there is no benefit in trying to mimic a PictureBox when it works against you.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


GeneralRe: Cropping a High Resolution Image in VB.Net 2008 Pin
wkitlam29-Apr-09 22:37
wkitlam29-Apr-09 22:37 
GeneralRe: Cropping a High Resolution Image in VB.Net 2008 Pin
Luc Pattyn30-Apr-09 0:56
sitebuilderLuc Pattyn30-Apr-09 0:56 
AnswerRe: Cropping a High Resolution Image in VB.Net 2008 Pin
Henry Minute28-Apr-09 2:14
Henry Minute28-Apr-09 2:14 
GeneralRe: Cropping a High Resolution Image in VB.Net 2008 Pin
Luc Pattyn28-Apr-09 3:24
sitebuilderLuc Pattyn28-Apr-09 3:24 
QuestionListinging folder groups [modified] Pin
Jaison Peter28-Apr-09 1:13
Jaison Peter28-Apr-09 1:13 
AnswerRe: Listinging folder groups Pin
Dave Kreskowiak28-Apr-09 4:51
mveDave Kreskowiak28-Apr-09 4:51 
NewsMicrosoft Tech-ed Event in India Pin
manish deora28-Apr-09 0:43
manish deora28-Apr-09 0:43 
GeneralRe: Microsoft Tech-ed Event in India Pin
scottgp28-Apr-09 0:54
professionalscottgp28-Apr-09 0:54 
Questionvisual studio 2005 and microsoft access mdb file Pin
George Farr27-Apr-09 21:50
George Farr27-Apr-09 21:50 
AnswerRe: visual studio 2005 and microsoft access mdb file Pin
Christian Graus27-Apr-09 22:11
protectorChristian Graus27-Apr-09 22:11 
GeneralRe: visual studio 2005 and microsoft access mdb file Pin
Dalek Dave27-Apr-09 22:38
professionalDalek Dave27-Apr-09 22:38 
AnswerRe: visual studio 2005 and microsoft access mdb file Pin
Tiyani Miyambo27-Apr-09 23:22
Tiyani Miyambo27-Apr-09 23:22 
QuestionRaw HDBC handle from VB ODBC connection Pin
Stephen Woods27-Apr-09 20:40
Stephen Woods27-Apr-09 20:40 
AnswerRe: Raw HDBC handle from VB ODBC connection Pin
Dave Kreskowiak28-Apr-09 4:42
mveDave Kreskowiak28-Apr-09 4:42 
QuestionRTMP Pin
safdaralis27-Apr-09 19:26
safdaralis27-Apr-09 19:26 
AnswerRe: RTMP Pin
Christian Graus27-Apr-09 22:11
protectorChristian Graus27-Apr-09 22:11 
QuestionRTMP Pin
safdaralis27-Apr-09 19:25
safdaralis27-Apr-09 19:25 

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.