Solved

Windows Form NEWBIE question

Posted on 2004-04-21
3
174 Views
Last Modified: 2010-04-02
I am writing a textbox in windows form, but I am nto sure wat action to take if i want to say have user input something in the textbox, and when they hit ENTER, i will parse that string and so something.
I could make a button beside the textbox and have user to press that button everytime they want to commit a string but it would seem inappropriate..

Second question is that How come I cannot change the size of my textbox in the windows form? (i am using the windows form builder, it seems that it would only let me extend my Width but not Height??

thanks for any help.
0
Comment
Question by:lordiano
3 Comments
 
LVL 8

Expert Comment

by:_corey_
ID: 10883923
Which library, gui are you using?
0
 

Author Comment

by:lordiano
ID: 10884055
System::Windows::Forms::TextBox *  textBox1;
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
ID: 10885567
1) Open Form Proprties and select button as AcceptButton for this form. In this case, when user presses Enter, this button handler is called.

2) Single-line edit box height cannot be changed, it is defined by font. You can change height for multiline edit box (Multiline property is set to True).
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question