Click here to Skip to main content
15,929,429 members
Home / Discussions / C#
   

C#

 
GeneralRe: SendInput Pin
Luc Pattyn30-Oct-07 23:54
sitebuilderLuc Pattyn30-Oct-07 23:54 
GeneralRe: SendInput Pin
danzar1-Nov-07 13:55
danzar1-Nov-07 13:55 
GeneralRe: SendInput Pin
Luc Pattyn1-Nov-07 18:01
sitebuilderLuc Pattyn1-Nov-07 18:01 
QuestionGeneric event procedure for mutiple controls. Pin
amatbrewer30-Oct-07 12:19
amatbrewer30-Oct-07 12:19 
AnswerRe: Generic event procedure for mutiple controls. Pin
pmarfleet30-Oct-07 12:41
pmarfleet30-Oct-07 12:41 
GeneralRe: Generic event procedure for mutiple controls. Pin
amatbrewer30-Oct-07 15:26
amatbrewer30-Oct-07 15:26 
GeneralRe: Generic event procedure for mutiple controls. Pin
Stefan Troschuetz30-Oct-07 21:24
Stefan Troschuetz30-Oct-07 21:24 
GeneralRe: Generic event procedure for mutiple controls. Pin
Phil J Pearson31-Oct-07 3:43
Phil J Pearson31-Oct-07 3:43 
It would be safer not to assume that the sender is a TextBox (one day it won't be). Code like this:

TextBox tb = sender as TextBox;
if (tb != null)
  {
  tb.SelectAll();
  }
else
  {
  // handle the error. Maybe just assert - it's a programming error
  }


Phil



The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

Questionlooking for good or better data structure Pin
stephan_00730-Oct-07 10:47
stephan_00730-Oct-07 10:47 
AnswerRe: looking for good or better data structure Pin
stephan_00730-Oct-07 21:07
stephan_00730-Oct-07 21:07 
Questionblocking my application form minimizing (Please help) Pin
dmnreddy30-Oct-07 10:33
dmnreddy30-Oct-07 10:33 
AnswerRe: blocking my application form minimizing (Please help) Pin
TJoe30-Oct-07 11:10
TJoe30-Oct-07 11:10 
GeneralRe: blocking my application form minimizing (Please help) Pin
dmnreddy30-Oct-07 11:25
dmnreddy30-Oct-07 11:25 
GeneralRe: blocking my application form minimizing (Please help) Pin
C# Beginner Nick30-Oct-07 11:37
C# Beginner Nick30-Oct-07 11:37 
GeneralRe: blocking my application form minimizing (Please help) Pin
dmnreddy30-Oct-07 11:41
dmnreddy30-Oct-07 11:41 
AnswerRe: blocking my application form minimizing (Please help) [modified] Pin
Anthony Mushrow30-Oct-07 14:53
professionalAnthony Mushrow30-Oct-07 14:53 
Questionhow put strings together Pin
stephan_00730-Oct-07 10:22
stephan_00730-Oct-07 10:22 
AnswerRe: how put strings together Pin
pmarfleet30-Oct-07 10:45
pmarfleet30-Oct-07 10:45 
QuestionQuestion on tree view editing with button click Pin
C# Beginner Nick30-Oct-07 10:04
C# Beginner Nick30-Oct-07 10:04 
AnswerRe: Question on tree view editing with button click Pin
pmarfleet30-Oct-07 10:51
pmarfleet30-Oct-07 10:51 
GeneralRe: Question on tree view editing with button click Pin
C# Beginner Nick30-Oct-07 11:35
C# Beginner Nick30-Oct-07 11:35 
GeneralRe: Question on tree view editing with button click Pin
pmarfleet30-Oct-07 11:43
pmarfleet30-Oct-07 11:43 
GeneralRe: Question on tree view editing with button click [modified] Pin
C# Beginner Nick30-Oct-07 11:52
C# Beginner Nick30-Oct-07 11:52 
GeneralRe: Question on tree view editing with button click Pin
pmarfleet30-Oct-07 12:05
pmarfleet30-Oct-07 12:05 
GeneralRe: Question on tree view editing with button click Pin
C# Beginner Nick30-Oct-07 12:08
C# Beginner Nick30-Oct-07 12:08 

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.