Solved

Windows Form NEWBIE question

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. 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 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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

624 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