Click here to Skip to main content
15,921,606 members
Home / Discussions / C#
   

C#

 
GeneralRe: rss readers Pin
Konstantin_progr15-Jul-04 0:23
Konstantin_progr15-Jul-04 0:23 
GeneralRe: rss readers Pin
Nick Parker14-Jul-04 10:44
protectorNick Parker14-Jul-04 10:44 
QuestionListView Scoll? Pin
Bill Dean14-Jul-04 9:56
Bill Dean14-Jul-04 9:56 
AnswerRe: ListView Scoll? Pin
Jay Shankar14-Jul-04 16:33
Jay Shankar14-Jul-04 16:33 
GeneralTextBox Enter... Pin
blankg14-Jul-04 8:06
blankg14-Jul-04 8:06 
GeneralRe: TextBox Enter... Pin
Nick Parker14-Jul-04 8:20
protectorNick Parker14-Jul-04 8:20 
GeneralRe: TextBox Enter... Pin
blankg14-Jul-04 23:20
blankg14-Jul-04 23:20 
GeneralRe: TextBox Enter... Pin
turbochimp16-Jul-04 3:35
turbochimp16-Jul-04 3:35 
One way to achieve what it looks like you're going for is to default the text box's ReadOnly property to true, and set its TabStop property to false (just a style issue - not really necessary).

Then, as the previous poster suggested, create a handler for the DoubleClick event, wherein the ReadOnly property is set to false, enabling input to be entered in the text box.

Finally, create a handler for the Leave event (or Validated or...) that sets the control's ReadOnly property back to true.

Hope this helps.

The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

GeneralVisual C# Express 2005 Pin
MKlucher14-Jul-04 7:54
MKlucher14-Jul-04 7:54 
GeneralRe: Visual C# Express 2005 Pin
Nick Parker14-Jul-04 8:16
protectorNick Parker14-Jul-04 8:16 
GeneralRe: Visual C# Express 2005 Pin
polomint15-Jul-04 8:25
polomint15-Jul-04 8:25 
GeneralWeb Service without VS2004 Pin
Michael Potter14-Jul-04 7:31
Michael Potter14-Jul-04 7:31 
GeneralRe: Web Service without VS2004 Pin
Nick Parker14-Jul-04 8:16
protectorNick Parker14-Jul-04 8:16 
GeneralRe: Web Service without VS2004 Pin
Michael Potter14-Jul-04 8:33
Michael Potter14-Jul-04 8:33 
GeneralTreeView & Checkboxes Pin
MrEyes14-Jul-04 6:10
MrEyes14-Jul-04 6:10 
GeneralRe: TreeView & Checkboxes Pin
Nick Parker14-Jul-04 6:39
protectorNick Parker14-Jul-04 6:39 
GeneralRe: TreeView & Checkboxes Pin
MrEyes14-Jul-04 7:31
MrEyes14-Jul-04 7:31 
GeneralSending but not receiving !!! Pin
Gimpy198314-Jul-04 6:00
Gimpy198314-Jul-04 6:00 
GeneralRe: Sending but not receiving !!! Pin
Nick Parker14-Jul-04 6:32
protectorNick Parker14-Jul-04 6:32 
GeneralRe: Sending but not receiving !!! Pin
Gimpy198315-Jul-04 8:18
Gimpy198315-Jul-04 8:18 
GeneralWM_COPY_DATA Pin
berndg14-Jul-04 6:00
berndg14-Jul-04 6:00 
GeneralRe: WM_COPY_DATA Pin
ERobishaw14-Jul-04 7:29
ERobishaw14-Jul-04 7:29 
GeneralChange a Window text size Pin
Dave@keyspell14-Jul-04 5:41
sussDave@keyspell14-Jul-04 5:41 
GeneralRe: Change a Window text size Pin
Heath Stewart14-Jul-04 5:55
protectorHeath Stewart14-Jul-04 5:55 
GeneralRichTextBox.Rtf property argument exception Pin
partyganger14-Jul-04 4:10
partyganger14-Jul-04 4:10 

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.