Hi there,
I have a custom control which i want it to draw ina rectangle a picture and
i have two buttons to do zoom in and zoomm out.
I want that when i click on one of these buttons make a zoom on the drawing
to see with more detail a region of it and scrollbars appear in the sides of
teh control to navigate through the image.
I have derived my control from Scrollablecontrol becuase i jave read that
this is the way to acomplish the use of scrollbars but i cant see the way of
making the virtual "clientrectangle" smaller than the display rectangle
without actually resizing the control.
Anyone knows some book that explains how to acomplish this?or knows how to
do this? thanks.
Bob Powell [MVP] - 12 May 2006 13:06 GMT
See the ZoomPicBox in the GDI+ FAQ.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
> Hi there,
> I have a custom control which i want it to draw ina rectangle a picture
[quoted text clipped - 12 lines]
> Anyone knows some book that explains how to acomplish this?or knows how to
> do this? thanks.
Bob Powell [MVP] - 12 May 2006 13:07 GMT
Sorry, that article is in Windows Forms Tips and Tricks.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
> Hi there,
> I have a custom control which i want it to draw ina rectangle a picture
[quoted text clipped - 12 lines]
> Anyone knows some book that explains how to acomplish this?or knows how to
> do this? thanks.
Cris - 12 May 2006 14:18 GMT
I need to make something like what MS Word does: I need to be able to set styles
for the different paragraphs \via dropdown combo for example\ in a TextBox
(preferably RichText) and I also want to have row numbers. How can I do this the
easiest way?
This is a quick description of what I need.