Home > Net >  C # how to realize the text box shows more and editing
C # how to realize the text box shows more and editing

Time:03-12

Do a project now has been good, but the size of the textbox parameter input must be fixed, such as input 10 words can also see, 100 if the input with the mouse or keyboard has been back to see all, is very troublesome,



Now can you tell me how can realize vs2015 attribute of text input box on the right, next to a nabla, click in the following the entire length of the text input, can't finish the show can be directly click on view, can edit, is too perfect,

Masters, this
how to implement?

CodePudding user response:

Textarea know about the

CodePudding user response:

The winform

CodePudding user response:

The need to implement a custom controls, not complicated, click text box, display the drop-down button, click on the control to add more than one line displays text box below, after losing focus or click back to update the textbox

CodePudding user response:

1, there is a TextBox properties Multline is more lines or use RichTextBox rich text box can
2, you can do a button, and the system which, after click, direct display text content, of course his best define controls

CodePudding user response:

This is the custom, do your own combination control

New class inheritance Control
Inside how to write how to write, and use it every time you pull out from the toolbox, custom controls good simple,
Or use the form first combined them to remember the location, and then write them into classes
  •  Tags:  
  • C#
  • Related