I came across the application setting feature today and it is pretty
cool. I would like to know if someone can help me in the following
situation.
In my current project, On form closing I take the current size of the
windows form and its position and store them as serialized object per
user. Next time when the user login in, I read corresponding serialized
object and show the windows as when they last exist.
It looks like application setting can do this for me, instead of me
coding all these logic.
I created a new project and added a new field called size and type
system.drawing. size and scope is user and default value is 400,400
On form closing, I did, Save also. In the initialising for the form, I
change the size of the form from the app setting. No errors but after I
change the size of the window and close it is not saving the new size.
does anyone know what might be I am doing wrong?? 1 1421
my mistake, I didn't capture the changed values in their corresponding
events.
DBC User wrote:
I came across the application setting feature today and it is pretty
cool. I would like to know if someone can help me in the following
situation.
In my current project, On form closing I take the current size of the
windows form and its position and store them as serialized object per
user. Next time when the user login in, I read corresponding serialized
object and show the windows as when they last exist.
It looks like application setting can do this for me, instead of me
coding all these logic.
I created a new project and added a new field called size and type
system.drawing. size and scope is user and default value is 400,400
On form closing, I did, Save also. In the initialising for the form, I
change the size of the form from the app setting. No errors but after I
change the size of the window and close it is not saving the new size.
does anyone know what might be I am doing wrong??
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: FrodoBaggins |
last post by:
Dear Team,
I am running Visual Studio 2003 Version 7.1.3088 on Windows Server 2003.
I have written a C# application that must write to the event log. When it attempts to write to the event log, however, I get the following message on the browser shown below in bold text:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required...
|
by: Marina Anufreichik |
last post by:
Hi,
After deploymnet web application on web server I can access page on local
machine and login fine but when I'm trying to access web site from remote
machine I can see login page, but when I'm trying to login with correct
credentials it give me error:
Server Error in '/PDVMgr' Application.
----------------------------------------------------------------------------
|
by: Joe |
last post by:
Hi,
I am new to creating .asp web sites and have a basic question. I have a
website with .html pages running on an IIS server with .Net installed. I also
have a couple of forms on the website. Some of them send email and others
store information entered by the user in the MS Access DB. The database is
small at this time and is growing slowly. The forms are .aspx pages coded
using VB.NET. These .aspx pages work fine. Although the...
|
by: Juan Pedro Gonzalez |
last post by:
Helo,
My question is how can I exit an application from a class Library...
I've got a class library wich I use to load and save user setting for my
application, some of this settings are mandatory, therefore if the setting
is not present the application should exit. I know I could throw an
exception to the main program, or even return nothing, make a check wich
will close the application if its Nothing. But this means more code on the...
|
by: modi321 |
last post by:
Everyone,
I have a question on how to use persistant application settings with
2.0. I understand I can use defined types like ints, strings, and so
on, but how about my own custom class? The problem is I can fill in
the 'type' of the setting as my custom class, but if I try to save the
settings - calling the My.Settings.Save() - then reload the settings at
a later time with the My.Settings.Reload() - the data in my custom
class is not...
| |
by: John |
last post by:
Hi
For my db app, I need to save the location of the db (really a windows path)
which normally only needs to be set at the first app start (I can check if
the setting is missing and ask user for a value). Occasionally (once in a
blue moon) I may need to change this setting in case db is moved to a
different server etc.
My question is what sort of mechanism can/should I use to store this
setting?
|
by: xycos |
last post by:
Hello. I apologize for asking this question as the information I need is
availible via the MSDN library, however I cannot seemt o understand what I
need to do, so I'm asking here.
I have created application settings in Visual Studio (right-click on the
project, go to the settings tab, etc.) and have associated each of these
settings with a property on a form. This seems to be working right (i.e. if I
edit the default value of a setting,...
|
by: Doug Glancy |
last post by:
I got the following code from Francesco Balena's site, for disposing of Com
objects:
Sub SetNothing(Of T)(ByRef obj As T)
' Dispose of the object if possible
If obj IsNot Nothing AndAlso TypeOf obj Is IDisposable Then
DirectCast(obj, IDisposable).Dispose()
|
by: Robert Dufour |
last post by:
Its easyb to change user leve settings but how do you change application
level settings in code. Apparently it seems it can't be done.
Duhhh.
Anybody manage a workaround?
Thanks for any help.
Bob
|
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: 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...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |