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.

Re: Zoom effect on winforms by Bob

Bob
Fri May 12 07:06:26 CDT 2006

See the ZoomPicBox in the GDI+ FAQ.

--
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.



"eduwushu" <eduwushu@discussions.microsoft.com> wrote in message
news:B995CC97-502D-478C-932E-F3FB27B8ACFC@microsoft.com...
> 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.



Re: Zoom effect on winforms by Bob

Bob
Fri May 12 07:07:22 CDT 2006

Sorry, that article is in Windows Forms Tips and Tricks.

--
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.



"eduwushu" <eduwushu@discussions.microsoft.com> wrote in message
news:B995CC97-502D-478C-932E-F3FB27B8ACFC@microsoft.com...
> 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.



custom RichText box by Cris

Cris
Fri May 12 08:18:14 CDT 2006

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.