Kemerd Posted September 24, 2011 Author Share Posted September 24, 2011 Hey, this is me again, with a stupid non-working piece of code.TextBox2.Text = "Signed In As" + My.Settings.UsernameDoes not work, when I'm told it should. Any ideas? This is visual basic 2010. Link to comment Share on other sites More sharing options...
Vus Posted September 24, 2011 Share Posted September 24, 2011 @Dremek:> This is visual basic 2010.I think this is the problem if you are trying it in EO, if i remember, EO supports only VB6. Link to comment Share on other sites More sharing options...
Kemerd Posted September 24, 2011 Author Share Posted September 24, 2011 ![](http://fc01.deviantart.net/fs70/f/2010/030/c/7/Luxray_Facepalm_by_Mew_tew.png)Do you really think I'm THAT stupid? Link to comment Share on other sites More sharing options...
Krumelz Posted September 24, 2011 Share Posted September 24, 2011 @Dremek:> Hey, this is me again, with a stupid non-working piece of code.> > TextBox2.Text = "Signed In As" + My.Settings.Username> > Does not work, when I'm told it should. Any ideas? This is visual basic 2010.try:```TextBox2.Text = "Signed In As" & My.Settings.Username``` Link to comment Share on other sites More sharing options...
Vus Posted September 24, 2011 Share Posted September 24, 2011 @Dremek:> Do you really think I'm THAT stupid?no, just that there is lot of ppl that would not know that, and i did not know if u are one of them, apart from that, i think i am not able to help you… Link to comment Share on other sites More sharing options...
Beanie93 Posted September 24, 2011 Share Posted September 24, 2011 So, I thought that this board was for:"Ask for help regarding any aspect of Eclipse development."Not for help on VB.Net. Link to comment Share on other sites More sharing options...
RyokuHasu Posted September 24, 2011 Share Posted September 24, 2011 Well in case you missed it Krumelz had the right idea.In VB6 you use & to connect strings together, not +. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted September 24, 2011 Share Posted September 24, 2011 @Ryoku:> Well in case you missed it Krumelz had the right idea.> > In VB6 you use & to connect strings together, not +.Wrong, and irrelevant. I'm tired of you posting nonsense on the Q&A forums.1\. This thread is about VB10.2\. In both VB10 and VB6, + and & can be used for concatenation. The only difference is & forces string concatenation while + will add them if they're both integers.@Bean:> So, I thought that this board was for:> "Ask for help regarding any aspect of Eclipse development."> Not for help on VB.Net."Report to moderator" link.@Dremek:> Hey, this is me again, with a stupid non-working piece of code.> > TextBox2.Text = "Signed In As" + My.Settings.Username> > Does not work, when I'm told it should. Any ideas? This is visual basic 2010.```My.Settings. = ' Setting the to valueMy.Settings.Save ' Saving all settings. `````` = My.Settings. ' Get and store it in variable. ```Therefore:```My.Settings.Username = "lolepic"My.Settings.SaveTextBox2.Text = "Signed In As " & My.Settings.Username ' Yes, I know I said the & and + are the same, but & looks nicer and forces concentration.```All that was with a quick Google search. It's amazing what it will do for you. Link to comment Share on other sites More sharing options...
Robin Posted September 24, 2011 Share Posted September 24, 2011 Stop using this forum for vb2010 support. No one uses vb2010 here. This forum is for Eclipse.First learn how to Google. Then learn how to register on a VB.NET 2010 forum. Easy. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now