473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to maximize another program in C#?

I know there are loads of posts and articles on how to do this but I still can't get it to work :(
I just get all kinds of error.

Can someone maybe give me a simple sample of code to maybe maximize notepad on a button click.
Thanks in advance :)
Dec 18 '10 #1

✓ answered by bentleyw

Out of curiosity, I did a search and found an example of how to do just that. Here is the post with code (replace '& #91;' minus the space, with '[' in a couple of spots):
http://www.go4expert.com/forums/showthread.php?t=973

Then just use the SW_MAXIMIZE constant value of 3 instead. It worked for me with Notepad open on Windows XP.

2 9817
Out of curiosity, I did a search and found an example of how to do just that. Here is the post with code (replace '& #91;' minus the space, with '[' in a couple of spots):
http://www.go4expert.com/forums/showthread.php?t=973

Then just use the SW_MAXIMIZE constant value of 3 instead. It worked for me with Notepad open on Windows XP.
Dec 18 '10 #2
Thanks, that work fine! :D
Dec 18 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Dennis | last post by:
Hi, I suppose this post could fall under comp.os.linux/comp.os.unix as well, but I figured since my end goal was control from C++ code I figured this group might be the place to start. As the...
0
by: pnp | last post by:
Hi all, I have an MDI container form and a few MDI children forms. The problem is that while I have set that an MDI child has a maximum size and that it cannot be maximized, when another MDI child...
7
by: Elmo Watson | last post by:
(using VS.net 2005 - never used DotNet WinForms til now - previously only used VB6) I have set my mdi child form to a window state of maximized. However, the first file I open is not maximized...
0
by: cvetomir.todorov | last post by:
We have an app which must be single instance. When we start the app we check if it is already running (using the Process object in the System.Diagnostics namespace) locating it by the name of the...
1
by: Brett Romero | last post by:
Let's say I have a panel docked top and a datagrid docked middle. In the panel are three columns and three rows of combo boxes and one search button. Search results are displayed in the grid. ...
1
by: mac | last post by:
Hi everyone I need your help just want to know why my webforms doest maximize i paste the script on the onload event <head runat="server"> <title>Untitled Page</title> </head>
3
by: kannabiran | last post by:
Hi, I used this below code to maximize window its works fine..but the maximixe icon it doesnt changed its remains as the single box alone..i need a box overlap icon while maximizing the...
6
by: David In NH | last post by:
Hi All: I've got an application that uses a browser window to display help text for the program. When the user presses a button, a help window appears (maximized) in the user's default browser....
2
by: Quiver | last post by:
How do you stop a form from maximizing on open. When I close a report, I want "frmMAIN" to open at it's normal non-maximized size. But, it keeps opening fully maximized. Here is my code. ...
0
by: =?Utf-8?B?RXJpYw==?= | last post by:
My program is a call duty planning tool. It has a splitter with the two panels horizontally split. The upper panel has a month selector, 3 buttons, 3 labels and a datagridview. The lower panel has...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.