Welcome :Guest

Congratulations!!!

Top 5 Contributors of the Month
hdjk11
Shivakumaran
dfefde5
hoangnganvy1993

 Home >> Forum >> Windows Application >> Post New Question Subscribe to Forum
Author: Sasi Prabhu
Posted Date: July 30, 2011     Points: 20

Try :

ActiveWindow.Zoom = Zoom_Amount;

Thanks & Regards,
Sasi Prabhu.
Author: Sasi Prabhu
Posted Date: July 30, 2011     Points: 20

Refer :

http://www.java2s.com/Code/VBA-Excel-Access-Word/Application/Zoomstheactivewindowto150percent.htm

http://www.java2s.com/Code/VBA-Excel-Access-Word/Application/Zoomaform.htm

Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju
Posted Date: July 31, 2011     Points: 20

try these coding as

Zoom_Amount = Zoom_Amount - 5
ActiveWindow.Zoom = Zoom_Amount

ThisWorkbook.Sheets("Sheet1").Shapes("Rectangle 6784").Height = (ThisWorkbook.Sheets("Sheet1").Shapes("Rectangle 6784").Height) * 1.05

Thanks & Regards,
GowthamManju
Chennai

Mark if the answer is true
Author: Gowthammanju
Posted Date: July 31, 2011     Points: 20
Author: Ravi Ranjan Kumar
Posted Date: July 31, 2011     Points: 20

hey! Gowthammanju please stop such type of crap answering user's question is not very clear about using Excel Sheet and your answer depicts that user need solution for Excell Sheet Zooming.
refering link is quite good option but copying code from other source is not good so far.

huh! its nothing more than wiered answering. :)

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Ravi Ranjan Kumar
Posted Date: July 31, 2011     Points: 20

hey! Vinodh your question isn't making more sense. zooming application is having its other meaning you should include proper intention in your question. its better to increase Width and Height of an application. you can do it using with process class.
whatever I got some links which might help you if you are loooking for zomming others applications.
http://www.visualstudiodev.com/visual-studio-tools-for-office/code-in-c-46228.shtml

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Vinodh
Posted Date: August 01, 2011     Points: 20

Hi Ravi Rajan,
Thanks for clarification

This is what I really need:

I need a .net solution which should be always running in my machine, which should zoom in the active window's content , I mean to enlarge the font, image ect of the window and not increasing the width and height of window.

Say I have two windows opened on my desktop , one is a pdf window and other is a browser.When i click my mouse pointer on a pdf file ( i.e when pdf file is made an active window) then it should automatically zoom in.when swapped to the brower window , then the body of the browser window should be zoomed in which is active now.

Author: Ravi Ranjan Kumar
Posted Date: August 01, 2011     Points: 20

hey! thanks to show Interest in My answer and I glad it helped you in any way.

As I know there is no way to do what you to Zoom the Whole Application. but you have some way to do it
If you're doing custom painting/drawing, you can zoom that by using a zoom transform, but so far as I know there is no "Zoom" property for the form in the entire world of .NET and native Windows/C++ APIs combined.
You could probably rig something yourself such that you scale controls by a constant factor. And you can probably find 3rd-party controls/surfaces which support this. And who knows what is possible with WPF. But in a

In short for typical Windows Forms world, I will say No.

I think this -[http://msdn.microsoft.com/en-us/library/system.windows.controls.flowdocumentreader.zoom(v=VS.85).aspx ] is what you are looking for.
this MSDN link enable you to learn how to zoom documents. its using FlowDocumentReader User Interface.
.

How to set font size programmatically (VB or C#) in WebBrowser control or zoom WebBrowser control

and as you have mentioned in your question to provide zooming functionality for Web browser then you should create an Custom Web browser for that. here you will get some tips
http://stackoverflow.com/questions/738232/zoom-in-on-a-web-page-using-webbrowser-net-control

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com