|
-
Apr 25th, 2003, 01:28 AM
#1
Thread Starter
Addicted Member
another quick question.....take a peek...
is there any easy way, maybe some in the .net framework, to save the settings of all controls in a form or app to file....maybe xml.....or wut ever....if u dont quite understand the question let me go into detail a bit.....
i got a fairly large amount of textboxes,numericupdown controls, comboboxes, and such in my app.....so i would like to make it easyer on my user, they should just open it and boom its configured the way they like, from the last time they used it....
AcE
-
Apr 25th, 2003, 03:15 AM
#2
Thread Starter
Addicted Member
another quick question.....is there anyway of simulating unpluging and replugging a usb device?.....reason i ask is bc i got something wrong with my satelite modems....dont like windows xp....got something to do with driver....i have tryed everything i know to do.....for some odd reason they work if i unplaug and replug them into my puter.....once again thats USB....thx in advance..
AcE
-
Apr 25th, 2003, 08:03 AM
#3
Fanatic Member
Take a look at:
ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbwlkWalkthroughConfigurableProperties.htm
For your second question, it's a Plug and Play OS event I believe, but I have no idea what it is nor where it's documented.
-
Apr 25th, 2003, 05:26 PM
#4
Thread Starter
Addicted Member
man....i got 2 many questions....i need opinions on this one.... heres my setup
1.NumericUpDown - Number of Items
--------------------------------------------
2.ComboBox - To choose a certin Item
--------------------------------------------
3.ComboBox - For Setting for those items
4.ComboBox - For Setting for those items
--------------------------------------------
5.Checkbox - Random Settings Option
now heres wut i got so far....i got 1. setup to add or delete items from 2. when 1.'s value is changed....now i need a good way of keeping the settings from 3. & 4. together with the right item from 2. ... so when i change 2. i want it to show the settings for another one of the items.....
remember there is no set number of items....so how would i set it up to create a new string, send values to that string....then call those values back when the user chooses that item from 2.
thx in advance for all of ur help!
AcE
-
Apr 25th, 2003, 06:17 PM
#5
Fanatic Member
Read the link I gave you previously. It explains everything you need to know about saving any control's settings, all you need to do is follow the steps for each control and property you wish to store.
-
Apr 25th, 2003, 06:37 PM
#6
Thread Starter
Addicted Member
well i decided not to go threw the trouble of using the eventlogger control on this app....i'll play with it l8er....wut i am wanting to do with the controls in my last question is to load them into memory....i dout if the user will want to use more than say 10 of the items...so it shouldnt be to much....its just a matter of i have never had to do this before....and im looking for an example of how it could be done....
AcE
-
Apr 25th, 2003, 07:33 PM
#7
Fanatic Member
I'm telling you, read that example closer. It only incidentally involves the event logger component, the example explains how to save the PROPERTIES of that component to a file and read it in at runtime. The example is very clear, you just have to read all of it
-
Apr 25th, 2003, 11:32 PM
#8
Thread Starter
Addicted Member
i desided not to save the settings on the forms....they can retype it....it aint thaaatttt many things....anyway....i think im gonna use a dataset to store the values for my item settings.....but wuts a good way to generate a random item from a combobox?
AcE
-
Apr 25th, 2003, 11:53 PM
#9
Fanatic Member
Do you really want to generate a random item from a combobox?
ComboBox1.SelectedIndex = Int((Rnd() * ComboBox1.Items.Count) + 1)
-
Apr 26th, 2003, 01:04 AM
#10
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|