Click here to Skip to main content
15,911,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Hi,

First of all anything a PictureBox can do you can do wiith a Panel, the difference is when drawing yourself you are in charge.

look carefully at the Graphics class; its DrawImage method will paint an image and its DrawRectangle will paint a rectangle. Both will use the same coordinate system, which you can freely choose.

If you apply a transformation (TranslateTransform, ScaleTransform) it will:
1. apply to everything you draw afterwards
2. allow you to position and scale everything so that e.g. part of your image falls outside the panel.

So you can scale down a 1000*1000 picture and a 900*900 rectangle to a 100*100 panel; have the arrow keys move the (unscaled) rectangle move by 1 pixel in real coordinates (hence 0.1 px on the screen), etc.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

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


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 
Questiona new coding style which I came across Pin
Member 305788727-Apr-09 18:55
Member 305788727-Apr-09 18:55 
AnswerRe: a new coding style which I came across Pin
Bharat Jain27-Apr-09 19:43
Bharat Jain27-Apr-09 19:43 

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.