Click here to Skip to main content
15,922,650 members
Home / Discussions / C#
   

C#

 
GeneralSET RANGE OF ANGLES TO TEXTBOX USING C# Pin
ramyanaidu2-Jan-08 18:21
ramyanaidu2-Jan-08 18:21 
AnswerRe: SET RANGE OF ANGLES TO TEXTBOX USING C# Pin
Vikram A Punathambekar2-Jan-08 18:27
Vikram A Punathambekar2-Jan-08 18:27 
Generalsimple C# beginner question: Pin
Shimmy Weitzhandler2-Jan-08 16:29
Shimmy Weitzhandler2-Jan-08 16:29 
GeneralRe: simple C# beginner question: Pin
Michael Sync2-Jan-08 18:14
Michael Sync2-Jan-08 18:14 
GeneralRe: simple C# beginner question: Pin
Vasudevan Deepak Kumar2-Jan-08 18:21
Vasudevan Deepak Kumar2-Jan-08 18:21 
GeneralRe: simple C# beginner question: Pin
Michael Sync2-Jan-08 18:27
Michael Sync2-Jan-08 18:27 
GeneralRe: simple C# beginner question: Pin
Alaric_3-Jan-08 4:20
professionalAlaric_3-Jan-08 4:20 
GeneralRe: simple C# beginner question: Pin
Christian Graus2-Jan-08 19:01
protectorChristian Graus2-Jan-08 19:01 
VB does this because it's rubbish. C# doesn't do this because it's strongly typed, one of the ways that it's NOT rubbish.

The correct way to do this is to use the 'as' keyword to see if the object is indeed a control, but if you're sure it is, just cast it

MessageBox.Show(((Control)sender).Text);

that's what CType does.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: simple C# beginner question: Pin
Michael Sync3-Jan-08 5:07
Michael Sync3-Jan-08 5:07 
QuestionAnyone familiar with chat code ? Pin
cH40z-Lord2-Jan-08 15:05
cH40z-Lord2-Jan-08 15:05 
AnswerRe: Anyone familiar with chat code ? Pin
Michael Sync2-Jan-08 18:22
Michael Sync2-Jan-08 18:22 
GeneralRe: Anyone familiar with chat code ? Pin
Michael Sync2-Jan-08 18:26
Michael Sync2-Jan-08 18:26 
GeneralRe: Anyone familiar with chat code ? Pin
cH40z-Lord3-Jan-08 0:16
cH40z-Lord3-Jan-08 0:16 
GeneralRe: Anyone familiar with chat code ? Pin
Michael Sync3-Jan-08 1:58
Michael Sync3-Jan-08 1:58 
GeneralRe: Anyone familiar with chat code ? Pin
cH40z-Lord3-Jan-08 6:54
cH40z-Lord3-Jan-08 6:54 
AnswerRe: Anyone familiar with chat code ? Pin
Pete O'Hanlon3-Jan-08 0:52
mvePete O'Hanlon3-Jan-08 0:52 
GeneralRe: Anyone familiar with chat code ? Pin
cH40z-Lord3-Jan-08 1:34
cH40z-Lord3-Jan-08 1:34 
GeneralSimple thread question Pin
Viktor Nilsson2-Jan-08 13:39
Viktor Nilsson2-Jan-08 13:39 
GeneralRe: Simple thread question Pin
PIEBALDconsult2-Jan-08 15:03
mvePIEBALDconsult2-Jan-08 15:03 
GeneralRe: Simple thread question Pin
Viktor Nilsson3-Jan-08 7:25
Viktor Nilsson3-Jan-08 7:25 
QuestionURL for embedded HTML file? Pin
peterchen2-Jan-08 11:58
peterchen2-Jan-08 11:58 
AnswerRe: URL for embedded HTML file? Pin
Dave Kreskowiak2-Jan-08 12:39
mveDave Kreskowiak2-Jan-08 12:39 
GeneralOpenFileDialog + different desktop Pin
Dominik Reichl2-Jan-08 10:19
Dominik Reichl2-Jan-08 10:19 
GeneralC# Creating an App Windows Mobile to Sync some data over http Pin
Simerjots2-Jan-08 10:14
Simerjots2-Jan-08 10:14 
GeneralRe: C# Creating an App Windows Mobile to Sync some data over http Pin
Pete O'Hanlon2-Jan-08 10:23
mvePete O'Hanlon2-Jan-08 10:23 

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.