473,769 Members | 7,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting the "Restore Down" Size

Hello all,

When the user clicks the Restore button on the taskbar, how can I set
what size the form restores to? I would like to have it "remember" what
the last size was, like most windows apps do. Note - I use a XML config
file to track the user settings.

Any advice is welcome,

Seth Rowe

Sep 15 '06 #1
2 4597
"rowe_newsgroup s" <ro********@yah oo.comschrieb:
When the user clicks the Restore button on the taskbar, how can I set
what size the form restores to? I would like to have it "remember" what
the last size was, like most windows apps do. Note - I use a XML config
file to track the user settings.
Save and restore Form position and layout with this component
<URL:http://www.codeproject .com/cs/miscctrl/RealPosition.as p>

Form Placement Component
<URL:http://www.codeproject .com/csharp/Placement.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Sep 15 '06 #2
Terrific! Thanks!

Herfried K. Wagner [MVP] wrote:
"rowe_newsgroup s" <ro********@yah oo.comschrieb:
When the user clicks the Restore button on the taskbar, how can I set
what size the form restores to? I would like to have it "remember" what
the last size was, like most windows apps do. Note - I use a XML config
file to track the user settings.

Save and restore Form position and layout with this component
<URL:http://www.codeproject .com/cs/miscctrl/RealPosition.as p>

Form Placement Component
<URL:http://www.codeproject .com/csharp/Placement.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Sep 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2177
by: Omey Samaroo | last post by:
Can anyone suggest a practical idea that I can use to "shut-down" users that might still be connected to a database or logged off improperly so I can compact the back-end? Thanks for your assistance Omey
2
2097
by: Kyle Blaney | last post by:
I am using a Listbox and can not get the "drop down" effect. My listbox is populated with 20 items and a vertical scrollbar is automatically added. One item is visible. When I click on the vertical scrollbar I can still only see one item at a time. The effect I want is as follows: The Listbox only displays one item until the user clicks on the right-hand side. When the user clicks on the right-hand side, the list "drops down" to...
7
3891
by: Risen | last post by:
Hi,all, I want to execute SQL command " DROP DATABASE mydb" and "Restore DATABASE ....." in vb.net 2003. But it always shows error. If any body can tell me how to execute sql command as above? Thanks a lot. Best regard. Risen
0
1284
by: fred | last post by:
hello, I installed progresql 7.3.1, windows proof of concept, on a AMD 1.8 OS Windows XP. So it should run without cygwin. When I try to dump/restore a database I always get the message from windowsit can't find cygz.dll. Windows tells me to reinstall progresql. I assume I have to install extra libraries...or is it already a bug in the proof of concept?
6
2308
by: Jerad Rose | last post by:
I recently installed Visual Studio 2003, after having already installed VS 2005. Unfortunately, it took over all of the file associations. There is an option in Visual Studio 2005 to restore these associations, under Tools > Options Environment General. However, this button doesn't seem to do anything. Specifically, my SLN files were associated to VS 2003, and when I clicked this, this association didn't change. I even tried deleting...
3
8096
by: Okonita | last post by:
Hi all, I am having problem completing this restore operation. "db2 restore database AAMI01 from /pap/data/backups taken at 20071002130554 to /pap/data/db01 into AAMI01 NEWLOGPATH /pap/data/new/ log WITH 2 BUFFERS BUFFER 1024" SQL1326N The file or directory "/pap/data/db01/" cannot be accessed. The file, directory and path all exist. I created them. I just can't
5
2195
by: Ronald Raygun | last post by:
If I have the following class heirarchy: class A{ protected $m_type; function type(){return $this->m_type;} } class B extends A{} class C extends B{}
0
1333
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, well i had no need for it until today, so how can i bring up the "Backup and Restore" Dialog in Vista? In W2K and XP its still ntbackup.exe but with vista it changed to something like a explorer call with some parameters like: C:\Windows\explorer.exe "C:\Windows\Explorer.exe" /separate,/idlist,:49284:4224,C:\Users\devteamkg
5
4580
by: JamesX | last post by:
I am having trouble detecting if "down" or "up" key is pressed within a textbox. Evidently those keys do not fire the "KeyPressed" event. Does anyone know how to detect when they are pressed?
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.