Click here to Skip to main content
15,911,141 members
Home / Discussions / C#
   

C#

 
AnswerRe: Solutions and Projects Pin
PIEBALDconsult21-Jan-09 8:09
mvePIEBALDconsult21-Jan-09 8:09 
QuestionDeploying an application with sql database Pin
R.Binu Port Blair20-Jan-09 9:20
R.Binu Port Blair20-Jan-09 9:20 
AnswerRe: Deploying an application with sql database Pin
Wendelius20-Jan-09 10:00
mentorWendelius20-Jan-09 10:00 
Questionhow to change mouse cursor (change image) outside form? Pin
ping_jacob20-Jan-09 8:58
ping_jacob20-Jan-09 8:58 
AnswerRe: how to change mouse cursor (change image) outside form? Pin
Not Active20-Jan-09 9:02
mentorNot Active20-Jan-09 9:02 
AnswerRe: how to change mouse cursor (change image) outside form? Pin
Giorgi Dalakishvili20-Jan-09 9:24
mentorGiorgi Dalakishvili20-Jan-09 9:24 
QuestionBolt hscrollbar to a picturebox Pin
pcjd6320-Jan-09 6:15
pcjd6320-Jan-09 6:15 
AnswerRe: Bolt hscrollbar to a picturebox Pin
Dave Kreskowiak20-Jan-09 6:27
mveDave Kreskowiak20-Jan-09 6:27 
Are you asking how to determine the clicked point on an image, even if the image is larger than the area it's being displayed in and the image is scrolled to one side??

If so, you don't need the scroll offset.

Create a UserControl, put a Panel on the UserControl and set it's AutoScroll property to true. Then put another Panel inside the first one. Expose a property in the UserControl to take an Image. In the setter for the Image, set the second Panel's size to match the image size. Now, when you click on the second Panel (the one showing the image), you handle the Click property of that Panel control. You'll get the coordinates of the click, relative to the upper left corner of the image Panel.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Bolt hscrollbar to a picturebox Pin
pcjd6320-Jan-09 7:40
pcjd6320-Jan-09 7:40 
GeneralRe: Bolt hscrollbar to a picturebox Pin
Dave Kreskowiak20-Jan-09 8:09
mveDave Kreskowiak20-Jan-09 8:09 
GeneralRe: Bolt hscrollbar to a picturebox Pin
pcjd6320-Jan-09 8:21
pcjd6320-Jan-09 8:21 
GeneralRe: Bolt hscrollbar to a picturebox Pin
Dave Kreskowiak20-Jan-09 9:58
mveDave Kreskowiak20-Jan-09 9:58 
GeneralRe: Bolt hscrollbar to a picturebox Pin
pcjd6320-Jan-09 10:34
pcjd6320-Jan-09 10:34 
GeneralRe: Bolt hscrollbar to a picturebox Pin
Dave Kreskowiak20-Jan-09 11:04
mveDave Kreskowiak20-Jan-09 11:04 
GeneralRe: Bolt hscrollbar to a picturebox Pin
pcjd6320-Jan-09 11:22
pcjd6320-Jan-09 11:22 
GeneralRe: Bolt hscrollbar to a picturebox Pin
Dave Kreskowiak20-Jan-09 13:40
mveDave Kreskowiak20-Jan-09 13:40 
GeneralRe: Bolt hscrollbar to a picturebox Pin
pcjd6321-Jan-09 2:37
pcjd6321-Jan-09 2:37 
QuestionSQL image to pdf in c# Pin
Saamir20-Jan-09 5:50
Saamir20-Jan-09 5:50 
AnswerRe: SQL image to pdf in c# Pin
Dave Kreskowiak20-Jan-09 6:31
mveDave Kreskowiak20-Jan-09 6:31 
GeneralRe: SQL image to pdf in c# Pin
Saamir21-Jan-09 3:39
Saamir21-Jan-09 3:39 
GeneralRe: SQL image to pdf in c# Pin
Dave Kreskowiak21-Jan-09 12:11
mveDave Kreskowiak21-Jan-09 12:11 
AnswerRe: SQL image to pdf in c# Pin
Giorgi Dalakishvili20-Jan-09 6:41
mentorGiorgi Dalakishvili20-Jan-09 6:41 
GeneralRe: SQL image to pdf in c# Pin
Saamir21-Jan-09 3:38
Saamir21-Jan-09 3:38 
GeneralRe: SQL image to pdf in c# Pin
Giorgi Dalakishvili21-Jan-09 4:48
mentorGiorgi Dalakishvili21-Jan-09 4:48 
Question[newbie] generating a new GUID Pin
jon-8020-Jan-09 5:41
professionaljon-8020-Jan-09 5:41 

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.