Solved

Windows Form NEWBIE question

Posted on 2004-04-21
3
166 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now