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
Solved

Windows Form NEWBIE question

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

861 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