Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
GeneralRe: Console that changes directory. Pin
SeanCM25-Jan-06 8:12
SeanCM25-Jan-06 8:12 
AnswerRe: Console that changes directory. Pin
mde130021-Sep-09 10:45
mde130021-Sep-09 10:45 
QuestionGetting Mouse Scroll Wheel info Pin
NewbieDude25-Jan-06 2:58
NewbieDude25-Jan-06 2:58 
AnswerRe: Getting Mouse Scroll Wheel info Pin
DigitalKing25-Jan-06 9:59
DigitalKing25-Jan-06 9:59 
GeneralRe: Getting Mouse Scroll Wheel info Pin
NewbieDude25-Jan-06 19:06
NewbieDude25-Jan-06 19:06 
AnswerRe: Getting Mouse Scroll Wheel info Pin
DigitalKing25-Jan-06 20:11
DigitalKing25-Jan-06 20:11 
GeneralRe: Getting Mouse Scroll Wheel info Pin
NewbieDude25-Jan-06 22:30
NewbieDude25-Jan-06 22:30 
GeneralRe: Getting Mouse Scroll Wheel info Pin
DigitalKing26-Jan-06 5:08
DigitalKing26-Jan-06 5:08 
You could either convert the EMF image to another type, or you could use the panel to render it.
What code are you using to draw the EMF to the panel?

You could write a custom control, with two panels. One would contain the image, and the other (the parent) would provide the scrolling.
In the child-panel, paint the image depending on a 'Zoom' property.

ex.
zoom is 100%, resize the panel to the size of the image (redraw panel)
zoom is 200%, panel is twice the size of the image (redraw panel)

Then set AutoScroll to true on the parent panel. Also set AutoScrollMinSize to the size of the child panel (every time the zoom level is changed).

This article provides a good example, just substitue the PictueBox for a panel. Pay close attention to the function CenterImage.
AnswerRe: Getting Mouse Scroll Wheel info Pin
microsoc25-Jan-06 17:04
microsoc25-Jan-06 17:04 
Questionpass a variable to a report Pin
steve1_rm200025-Jan-06 2:45
steve1_rm200025-Jan-06 2:45 
Question.net 2.0 substring Pin
fmardani25-Jan-06 2:27
fmardani25-Jan-06 2:27 
AnswerRe: .net 2.0 substring Pin
Guffa25-Jan-06 2:45
Guffa25-Jan-06 2:45 
GeneralRe: .net 2.0 substring Pin
fmardani25-Jan-06 2:47
fmardani25-Jan-06 2:47 
AnswerRe: .net 2.0 substring Pin
Guffa25-Jan-06 3:30
Guffa25-Jan-06 3:30 
GeneralRe: .net 2.0 substring Pin
fmardani25-Jan-06 4:38
fmardani25-Jan-06 4:38 
GeneralRe: .net 2.0 substring Pin
Judah Gabriel Himango25-Jan-06 6:18
sponsorJudah Gabriel Himango25-Jan-06 6:18 
AnswerRe: .net 2.0 substring Pin
Guffa27-Jan-06 7:16
Guffa27-Jan-06 7:16 
AnswerRe: .net 2.0 substring Pin
Dave Kreskowiak25-Jan-06 3:02
mveDave Kreskowiak25-Jan-06 3:02 
AnswerRe: .net 2.0 substring Pin
sdbytnar25-Jan-06 10:38
sdbytnar25-Jan-06 10:38 
GeneralRe: .net 2.0 substring Pin
fmardani25-Jan-06 10:44
fmardani25-Jan-06 10:44 
QuestionImage.Save(...) ?!?! Pin
Sandrina25-Jan-06 2:21
Sandrina25-Jan-06 2:21 
AnswerRe: Image.Save(...) ?!?! Pin
AB777125-Jan-06 2:24
AB777125-Jan-06 2:24 
GeneralRe: Image.Save(...) ?!?! Pin
Sandrina25-Jan-06 2:48
Sandrina25-Jan-06 2:48 
GeneralRe: Image.Save(...) ?!?! Pin
Dave Kreskowiak25-Jan-06 2:56
mveDave Kreskowiak25-Jan-06 2:56 
GeneralRe: Image.Save(...) ?!?! Pin
Sandrina25-Jan-06 3:16
Sandrina25-Jan-06 3:16 

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.