SLRGrant wrote:
'if i clicked on a button to make this code run' where would i put this code in the button click event, in the middle, at then end?
It plain does not matter. Parts of this code, you don't want, they just print to the console. Other parts go where-ever, in the event, you want the registry entry to be written. As I said before, if you want to go back and forth, you're better off writing the values in the close event of the form, and not every time a check box is changed.
SLRGrant wrote:
anyhow this is starting to put me off of coding now since i cant get a straight answer from anyone
I am trying desperately to help you, but your questions make no sense to me. I don't know what else you're doing in your event handler, or why you think it matters what order you do things in, but can't work out which order is correct. I don't know if you realise that some of that code isn't about writing to the registry, or if you understand what any of it does, line by line, or just have an idea of what it does as a block.
SLRGrant wrote:
I came here to get straight answers like everyone else who posts. not to start a war.
I'm not trying to start any war, I am trying to help. Since the release of the Express Editions, I find often the best help I can give people is to recommend they start over and try to learn some basics. I'm sorry if that offended you, I was only trying to give good advice.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog