Hello all!
Just getting started with vb.net and Visual Studio in general. Could someone point me in the right direction please?
So I've got a form with a textbox. In the textbox I'd like to display a setting string from the app.config file and be able to change it's value. Pretty straightforward stuff I was hoping. Nope. In my application settings for the project I've got the setting name, the type, the scope as user and a test value set to "Test String"
Here's a snippet of the code. Very straightforward, but yeah it's giving me 2 instead of Test String
I don't have any conversions going on in my code. All I've got so far is a textbox reading that data, but all it gets is 2 at form load. :confusion: When I set a breakpoint there the value is read as 2 as well. This is so far the only area where I need this string. It's not anywhere else in my code yet.
Any help would be great!
Thanks
Just getting started with vb.net and Visual Studio in general. Could someone point me in the right direction please?
So I've got a form with a textbox. In the textbox I'd like to display a setting string from the app.config file and be able to change it's value. Pretty straightforward stuff I was hoping. Nope. In my application settings for the project I've got the setting name, the type, the scope as user and a test value set to "Test String"
Here's a snippet of the code. Very straightforward, but yeah it's giving me 2 instead of Test String
VB.NET:
textbox1.text = My.Settings.Name
I don't have any conversions going on in my code. All I've got so far is a textbox reading that data, but all it gets is 2 at form load. :confusion: When I set a breakpoint there the value is read as 2 as well. This is so far the only area where I need this string. It's not anywhere else in my code yet.
Any help would be great!
Thanks