473,395 Members | 1,516 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,395 software developers and data experts.

Persisting GUI's

Howdy

I need to port a VB6 app. Its GUI is persisted to an .ini file - ie all the
control captions, positions, whether visible, tooltips, that kind of thing.

In C# is there an easier way to accomplish this? I tried to Serialize a
button without much luck, and further googling leads me to believe that you
need to write a wrapper object and serialize the wrapper.

I'm looking for ideas on how to do this. Be grateful for any bright ideas
....

Mike
Nov 16 '05 #1
2 1092
Serialization is one method, but in case you don't have much customizable
elements you could store the values in an XML file, from which you read @
runtime and set the values. Reflection would easily help you do that.

And in case you have only a few elements, then you could store their values
in app.config, instead of a full fledged XML file.
"mike netspace.net.au>" wrote:
Howdy

I need to port a VB6 app. Its GUI is persisted to an .ini file - ie all the
control captions, positions, whether visible, tooltips, that kind of thing.

In C# is there an easier way to accomplish this? I tried to Serialize a
button without much luck, and further googling leads me to believe that you
need to write a wrapper object and serialize the wrapper.

I'm looking for ideas on how to do this. Be grateful for any bright ideas
....

Mike

Nov 16 '05 #2
aaa
mike
Howdy

I need to port a VB6 app. Its GUI is persisted to an .ini file - ie all the
control captions, positions, whether visible, tooltips, that kind of thing.

In C# is there an easier way to accomplish this? I tried to Serialize a
button without much luck, and further googling leads me to believe that you
need to write a wrapper object and serialize the wrapper.

I'm looking for ideas on how to do this. Be grateful for any bright ideas
...


You can check out this article posted on codeproject:

http://www.codeproject.com/useritems...indowState.asp

hope it helps...

Nov 16 '05 #3

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

Similar topics

2
by: Citoyen du Monde | last post by:
Trying to get some ideas on a simple javascript project (to teach myself the language). I want to develop a client-side vocabulary practice application that would allow users to enter their own...
1
by: lim | last post by:
What is the possible error that occurs when the Page_load event is not triggered during execution. In my page there's some basic server control. Is there any loops holes?
2
by: headware | last post by:
I am new to 3-tiered design and am in the process of designing an application that will work with ASP.NET as well as Windows Forms (and possibly with a PDA of some sort down the road). My question...
5
by: Dick | last post by:
I have a GridView bound to an ObjectDataSource. I have a Button that calls GridView.DataBind. I want the row that is selected before the DataBind to still be selected afterwards. This happens...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.