473,728 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application settings--form location and size

I'm having a problem getting design-time property binding to work with a
form's size and location properties.

I started with the Location property under Application Settings in the
Properties window. I added a new setting ("FormLocation" ) using the New
Application Setting dialog, and confirmed that the setting was created in
the project properties Designer window. But when I run my app and move its
form, the app doesn't remember the new location. When I restart the app, the
form opens in the original location.

Am I missing a step in binding the Location property to an application
setting? What do I need to do to get this working? Thanks in advance.

David Veeneman
Foresight Systems
Jan 19 '06 #1
1 1774
Found my answer-- settings have to be saved using Settings.Save() . I call
the method from the FormClosing event.

David Veeneman
Foresight Systems
Jan 19 '06 #2

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

Similar topics

by: Wayne Aprato | last post by:
Is there any way to have the application icon in the same folder as my database and programmatically tell the database to look for it in that location? Thanks in advance.
by: StefanT | last post by:
Hi, Itry to find out the location of a installed application, I used Win32_Product with WMI like this: query1 = new ManagementObjectSearcher("SELECT * FROM Win32_Product") ; ueryCollection1 = query1.Get(); foreach( ManagementObject mo in queryCollection1 ) { Console.WriteLine(mo.ToString());
by: Lars-Erik Aabech | last post by:
Hi! Guess it's my day again.. Tried to deploy a test release of a new asp.net web today, and got a terrible error. The web is running swell on three development computers, but when it's copied to the test server it won't work at all. Looks like aspnet_wp is trying to compile it for five seconds, then it stops working what so ever. The system event log gets the following entry: Application popup: aspnet_wp.exe - Application Error : The...
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the PrimaryScreen and the WorkingArea properties. Dim workingRectangle As System.Drawing.Rectangle = _ Screen.PrimaryScreen.WorkingArea ' Set the size of the form slightly less than size of
by: Marc | last post by:
The first part of the below writes the name and location of all buttons on a from to a text file. The second part reads that information back in and recreates the buttons. My problem is reading the location value back in where I marked ?????????????????????. As it wont accept a string value? Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
by: ghickey | last post by:
I'm having problems with a windows form application that I am developing using C#.Net 2003. My application's layout gets altered when I transfer projects between the following two machines. Machine # 1: 1) Dell Inspiring M1710 Laptop (Windows XP SP 2) Machine # 2: 2) Praetorian Desktop (Windows XP SP 2) Visual Studio's form designer displays different control location and size values depending on what machine the project resides on....
by: Boki | last post by:
Hi All, When put in a webbowser box into form, there is no adjustable anchor for user to adjust size if he/she want. I use an external Hscroll for adjustment. The problem is I have two webbrowser box inside same form, I need to change their location in run time.
by: vdraceil | last post by:
Hi everyone, i made an application with vb6 in my pc,but when i transferred it to a laptop,the relative positions of controls has changed..it seems it has something to do with the resolution..got any solution?
by: vatz | last post by:
I am using Java to open a window application. i need to open it in a specified size. Please let me know how to do this...Thanks in advance... - Vatz
by: tlhintoq | last post by:
I'm running Window7 64bit, RTM. To give this application the ability to switch between a moveable frame and no frame I am using the following methods void Fixed() { Point pBefore = this.Location; Size sBefore = this.Size; FormBorderStyle = FormBorderStyle.None; this.BackColor = Color.FromKnownColor(KnownColor.Black); this.Location = pBefore; this.Size = sBefore; }
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...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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...
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...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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...

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.