473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

convert textbox->text to a string?

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
1 2349
sicarie
4,677 Expert Mod 4TB
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

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

Similar topics

3
by: Convert TextBox.Text to Int32 Problem | last post by:
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function...
3
by: Sin | last post by:
I'm currently evaluating VC.NET as the new platform for the company I work for and things are looking grim... We're up against another IDE which took me about 5 minutes to master and I've been...
3
by: Tariq | last post by:
This might sound like a stupid question, but anywas when you assign an int to a textbox via the textbox.text propperty I assume boxing happens. If this assigment happend too often rapidly on a...
5
by: Steve S | last post by:
Heres what I want to do...User types into a texbox, clicks a button, the button saves that text to a file. The problem is that when I click the submit button, any changes made to the textbox are...
3
by: Ruben | last post by:
I have this code, I need see in textbox.text all my information, how I do that Function Consultas(ByVal usuario As String) As System.Data.DataSet Dim connectionString As String =...
3
by: Coffee | last post by:
I have asked this before, but the offered solution did not work. I want to have a command button, that transfers any text from a textbox to a variable which is an array. so that i can print out...
2
by: jason | last post by:
hello. i am just trying to save a TextBox.Text value to a database, but strangely, when the value is changed on the web form, the changes are not recognized in the event where i try to save the...
3
by: Henry Lee | last post by:
Hi, I want to tell if the .NET textbox.text control on the web page has been input or not So I write If TextBox.Text <> "" then ..... End IF But you know it does not work , the error "'text'...
1
by: Husam | last post by:
Hi EveryBody: Can any body told me how can I convert the TextBox.Text or RichTextBox.text to HTML ? Any help or redirection will be appreciated regard's Husam
1
by: rajendiran | last post by:
hi friends i will type any text in textbox. and chose any language that text will converted in that language example like english to french.. how to convert text like this anyone help me..........
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.