|
A settings file would be the easiest way.
You can find it under the Properties tab in the solution explorer.
Add variables to it, and then you can save and load data using
<br />
*** = Properties.Settings.Default.***;<br />
<br />
Properties.Settings.Default.*** = ***<br />
Properties.Setting.Default.Save();<br />
This way your variables will be saved between sessions.
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
would this work with diffrent users(EG Main, Person1, Person2) all haveing seperate files ? (named of course)
|
|
|
|
|
Yes.
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
Ok just to clarify from above(and make sure i got it in my head right):
//Save data(which would go under whatver i deced would be the Save control/command)
Properties.Settings.Default.textbox1.Text = textbox1.Text (and repeat this for each control)
Properties.Setting.Default.Save();
//Load(which would go under my "Load" control/command
...
textbox1.Text = Properties.Settings.Default.textbox1.Text
(repeated for each control)
(Applogies for repeating what you said like to make sure i understand things correctly)
|
|
|
|
|
|
hi
do you have any article and example about connect to the database(sql server)?
plaese learn to me how can i connect textbox to query?
thanks
|
|
|
|
|
All you need is to open www.google.com[^] and there sure you can find what are you looking for.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you then save my time by voting my post.
|
|
|
|
|
|
|
This is his third general question about connections. He doesn't understand Google. Don't waste your time.
Blog link to be reinstated at a later date.
|
|
|
|
|
You dont understand the word "Beginner", "Freshman", "just out of high school"
Why would you post a reply with a subject that says "CP IGNORE", Isnt it enough that you voted that guy down?
ah anyways...
|
|
|
|
|
Isn't it enough that he can't do basic research himself or buy a book?
Blog link to be reinstated at a later date.
|
|
|
|
|
If books and research are enough then why do you think this forum exist. This is not IEEE organization where only advanced scholars post rsearch and thesis.Now, in this case , its a simple question, but what increased my blood pressure is you posting a CP ignore message ! And you are a very well respected member of CP.
|
|
|
|
|
My concern is that he is asking the basics of questions, "How do I connect...?" A few tutorials should at least be read, then at least TRY coding it. Then if he got stuck I would have no problem helping.
Blog link to be reinstated at a later date.
|
|
|
|
|
Unfortunately there are a lot of people who just post absolute beginner stuff without doing any kind of research themselves, like we can just somehow magically make them understand everything. I mean honestly, the time it takes to wait for a reply from someone on a forum is probably a lot longer than it would take to figure it out on your own.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
Exactly, and how hard can it really be to just freakin' google it?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
download bob tubor tutorial videos on microsoft learning (absolute beginners lessons)
download both c# and sql lessons, he teaches you that and it is free
nelsonpaixao@yahoo.com.br
|
|
|
|
|
Is it possible to increase or decrease the brightness of a display (digital display connected via DVI) using API calls ?
If so, does someone have an example of the API usage? I imagine it's part of the DirectX API's.... which I've never used before.
Thankyou very much for any help.
|
|
|
|
|
|
abiemann wrote: Is it possible to increase or decrease the brightness of a display (digital display connected via DVI) using API calls ?
I know NVidia has software that automatically does all that for you, so it is quite possible .
How - I don't know.
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
this.presetTableAdapter.ExistPreset(txtToolNumber.Text);
I am trying to access a single value from a dataset, this is how i am calling it, how can i access the value from that dataset? It either outputs a 1 or a 0, pretty straight forward right?
|
|
|
|
|
ExistPreset doesn't seem to be framework's method. If this is true, what's the implementation?
|
|
|
|
|
|
Ok. In your post you don't assign the return value to any variable. Is this only missing from the post?
You could use following steps to find out the problem
- execute the procedure directly against the databse in Query window, see that it works
- check the properties of the TableAdapter, everything as it should be
- debug through ExistPreset-method and observe the values in variables, everything as it should be
- use plain SqlCommand to execute the procedure and see what it returns
|
|
|
|
|