Solved

Windows Form NEWBIE question

Posted on 2004-04-21
3
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.

740 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