Hello. I'm developing Windows.Forms based applications,
and each will need per-user persistent data consisting of user
preferences, last form size/position, and the like. Is there a
standard or recommended approach to this?
I'm aware that such data is often stored in an appropriate
HKCU\Software subkey and/or Application Data subfolder.
What I haven't figured out yet is if there is some convenient
..Net component or mechanism which automates and simplifies
the task.
For example, it would be sweet if common mechanism was
available to the Application and Form classes. You could set
an application property that specifies how/where to store the
data (registry or app data for example), and set a form
property specifying whether you want it to remember its last
position/size. Then everything would be automagic. If you
could add other auto-serialize objects to an application or
form class, that could be used for preferences and stuff.
OK, I'm getting ahead of myself. But you get the idea of
what I'm hoping to find... something other than a Registry
class ;-) 2 1997 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stan Brown |
last post by:
I want these to be in monospace, but monospace fonts are typically
bigger looking than proportional fonts so I want to reduce the font
size a bit. This leads me as an author to write
kbd, samp { font-family: monospace; font-size: 90% }
But _because_ monospace fonts are typically too big, as a user
browsing other authors' Web pages I've told Mozilla to render
monospace as 15px (compared to 17px for serif and sans).
|
by: Charles Law |
last post by:
I have a user control created on the main thread. Let's say, for arguments
sake, that it has a single property that maintains a private variable. If I
want to set that property from a worker thread, do I need to use
UserControl1.Invoke to set it, or can I just set it? After all, it is only
changing a private variable.
TIA
Charles
|
by: Mahesh Devjibhai Dhola [MVP] |
last post by:
Hi,
User can adjust the size of columns of a table or the position of splitter
in UI. We want these adjustments to be remembered when we restart the
application. Currently, we are saving these adjustments by the user in an
XML and saving that XML. We read the XML upon restart and make calls to set
the adjustments. This approach becomes difficult as we add more controls and
more settings can be made by the user. What other techniques can...
|
by: ojorus |
last post by:
Hi!
I just wonder how I can save a page's scroll position with javascript. (i'm
not a javascript developer) I have a PHP-page with two columns; the left
contains a lot of thumbnails, and the right contain a bigger picture of the
thumbnailed selected. The problem is that all these thumbnails (and the big
picture) are placed quite far down in the document. (a lot of text is at the
top.) What I want is that when a thumbnail is clicked, the...
|
by: kj |
last post by:
I don't know what I'm doing wrong.
I have a file called user.js in my Mozilla (or Firefox) directory,
and this file contains the following code:
user_pref("browser.throbber.url", "http://news.google.com/");
function foo() {
alert("foo");
}
| |
by: Stuart McGraw |
last post by:
I haven't been able to figure this out and would
appreciate some help...
I have two tables, both with autonumber primary
keys, and linked in a conventional master-child
relationship. I've created forms for both those
tables, and inserted the child table form into the
master table form as a subform. It works just as
it is supposed to, in that I can create a new master
record, and then add detail records.
|
by: Marty |
last post by:
Hi,
I want to save the form position when the user close it. I tried to
place the coordinate saving code in my destructor, but it is not
triggered when I assign the form to null.
Where should I place my code to save the coord. when the form close?
Thanks
Marty
|
by: Luqman |
last post by:
I have created a form using Data Sources in VB.Net 2005, and Binding
Navigator, even I did not write a single line of code and data is
displaying, saving, deleting perfectly with the click of buttons on Binding
Navigator.
Now, what I want, that if the user clicks on the Save Button of Binding
Navigator, one field of that table should be saved with Current Date and
Time.
Do I need to use BuyerBindingSource, BuyerTableAdapter or dsBuyer...
|
by: |
last post by:
Is there an automatic way to tell a windows to save its size
and position, or do I have to save these parameters to the
registry when the form quits and then reload them next time?
|
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: 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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| | |