By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

convert textbox->text to a string?

P: 1
So I'm working on a project right now that is fairly simple, but I'm having a heck of a time converting what a user enters into a textbox into a simple string that is in my class. I don't want to use String^ because I'm having heaps of trouble with managed stuff in the classes. Just want to keep it simple and use string.

So I've got a string named str1, and I want it to hold the contents of textBox->Text. Easy way to do this? Thanks.
Mar 20 '07 #1
Share this Question
Share on Google+
1 Reply


sicarie
Expert Mod 2.5K+
P: 4,677
So I'm working on a project right now that is fairly simple, but I'm having a heck of a time converting what a user enters into a textbox into a simple string that is in my class. I don't want to use String^ because I'm having heaps of trouble with managed stuff in the classes. Just want to keep it simple and use string.

So I've got a string named str1, and I want it to hold the contents of textBox->Text. Easy way to do this? Thanks.
I'm sorry, you don't want to use string, but you're using string? I don't think I understand your problem, could you expand on it a bit more, maybe post small sections of relevant code?
Mar 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.