Click here to Skip to main content
15,891,607 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Error when Painting (long message) Pin
Robert Rohde25-May-06 11:18
Robert Rohde25-May-06 11:18 
GeneralRe: Error when Painting (long message) Pin
ricecake25-May-06 11:26
ricecake25-May-06 11:26 
QuestionItem collection in custom control Pin
Alexander Pokisluk24-May-06 0:48
Alexander Pokisluk24-May-06 0:48 
QuestionOut of Memory Exception with .NET Interop Pin
Rob Philpott23-May-06 22:28
Rob Philpott23-May-06 22:28 
Questionwindows form sizing Pin
reshsilk23-May-06 8:27
reshsilk23-May-06 8:27 
AnswerRe: windows form sizing Pin
arcticbrew23-May-06 11:52
arcticbrew23-May-06 11:52 
AnswerRe: windows form sizing Pin
Alexander Pokisluk24-May-06 1:40
Alexander Pokisluk24-May-06 1:40 
QuestionSelect text in TextBox when Form loads Pin
ricecake23-May-06 6:56
ricecake23-May-06 6:56 
How do I have a form appear with the text in a TextBox selected?

I have a simple dialog window that has a single textbox for user input and two buttons (OK and Cancel). When the dialog window loads, I would like the text in the TextBox to be selected so that the user can start typing as soon as the window comes up, instead of having to manually click on (or tab to) the textbox. I have tried placing the following line:

textbox_sleep_time_ms->Select(0, textbox_sleep_time_ms->Text->Length);

both as the last statement in the constructor for the form, and as the only statement in the form's Load event handler, but neither one will select the text. I don't know if it's relevant, but I have set the default button for the form to the OK button so that the user can just press Enter to accept the value.

--
Marcus Kwok
AnswerRe: Select text in TextBox when Form loads Pin
ricecake23-May-06 7:42
ricecake23-May-06 7:42 
QuestionFinalize() Method [modified] Pin
Tristan Rhodes23-May-06 3:09
Tristan Rhodes23-May-06 3:09 
AnswerRe: Finalize() Method [modified] Pin
Robert Rohde23-May-06 3:34
Robert Rohde23-May-06 3:34 
GeneralRe: Finalize() Method [modified] Pin
Tristan Rhodes23-May-06 4:23
Tristan Rhodes23-May-06 4:23 
AnswerRe: Finalize() Method [modified] Pin
Guffa24-May-06 1:35
Guffa24-May-06 1:35 
AnswerRe: Finalize() Method [modified] Pin
StevenS_Dev25-May-06 19:03
StevenS_Dev25-May-06 19:03 
QuestionDatagrid vscrollbar mouse events. Pin
space_doggy22-May-06 11:05
space_doggy22-May-06 11:05 
GeneralRe: Datagrid vscrollbar mouse events. Pin
space_doggy23-May-06 2:47
space_doggy23-May-06 2:47 
AnswerRe: Datagrid vscrollbar mouse events. Pin
Alexander Pokisluk24-May-06 1:55
Alexander Pokisluk24-May-06 1:55 
AnswerRe: Datagrid vscrollbar mouse events. Pin
space_doggy24-May-06 12:09
space_doggy24-May-06 12:09 
QuestionIL Code to DLL Pin
Gedrain22-May-06 10:24
Gedrain22-May-06 10:24 
AnswerRe: IL Code to DLL Pin
Ed.Poore23-May-06 8:09
Ed.Poore23-May-06 8:09 
AnswerRe: IL Code to DLL Pin
Eric Dahlvang23-May-06 10:05
Eric Dahlvang23-May-06 10:05 
GeneralRe: IL Code to DLL Pin
Gedrain23-May-06 11:42
Gedrain23-May-06 11:42 
Questiontextbox Pin
locaas22-May-06 1:20
locaas22-May-06 1:20 
AnswerRe: textbox Pin
Rabbit1722-May-06 6:26
Rabbit1722-May-06 6:26 
Questionolap access rights using .Net Pin
sohne21-May-06 20:36
sohne21-May-06 20:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.