Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Bitmap.Lockbytes AccessViolation Pin
Luc Pattyn25-Jan-12 23:04
sitebuilderLuc Pattyn25-Jan-12 23:04 
GeneralRe: Bitmap.Lockbytes AccessViolation Pin
Ylno26-Jan-12 7:05
Ylno26-Jan-12 7:05 
Questioncontrols Pin
theanil25-Jan-12 3:40
theanil25-Jan-12 3:40 
AnswerRe: controls Pin
Pete O'Hanlon25-Jan-12 3:45
mvePete O'Hanlon25-Jan-12 3:45 
GeneralRe: controls Pin
theanil25-Jan-12 3:50
theanil25-Jan-12 3:50 
GeneralRe: controls Pin
Pete O'Hanlon25-Jan-12 3:57
mvePete O'Hanlon25-Jan-12 3:57 
GeneralRe: controls Pin
theanil25-Jan-12 4:01
theanil25-Jan-12 4:01 
AnswerRe: controls Pin
BillWoodruff27-Jan-12 7:20
professionalBillWoodruff27-Jan-12 7:20 
Well, yes you can, but why would you ? Particurlarly in this case: it's hard for me to imagine a scenario in which a RadioButton (usually used in groups where the function desired is to select one option from many) replaces a TextBox, or, the reverse.

The second thought ... which I see Pete O'Hanlon has already explained, is to implement both controls, and "swap" them by changing their visibility.

In the case where both "alternate" controls expose the same Events (with the exact same type of EventArgs parameter), you could have, for example, a RadioButton and a TextBox use the same EventHandler for Click, although I think that, too is "dubious" practice: better, imho, they each have their own Click handler, and then call a common method if there's any code that both Click events need to use.

So, I suggest you re-consider your design here.
"Science is facts; just as houses are made of stones: so, is science made of facts. But, a pile of stones is not a house, and a collection of facts is not, necessarily, science." Henri Poincare

Questioncreate an application which generate table of the entered number.. Pin
rajiv kumar (abbi)24-Jan-12 23:01
rajiv kumar (abbi)24-Jan-12 23:01 
AnswerRe: create an application which generate table of the entered number.. Pin
Pete O'Hanlon24-Jan-12 23:19
mvePete O'Hanlon24-Jan-12 23:19 
AnswerRe: create an application which generate table of the entered number.. Pin
OriginalGriff24-Jan-12 23:40
mveOriginalGriff24-Jan-12 23:40 
AnswerRe: create an application which generate table of the entered number.. Pin
phil.o25-Jan-12 0:20
professionalphil.o25-Jan-12 0:20 
AnswerRe: create an application which generate table of the entered number.. Pin
Luc Pattyn25-Jan-12 0:45
sitebuilderLuc Pattyn25-Jan-12 0:45 
GeneralRe: create an application which generate table of the entered number.. Pin
Wayne Gaylard25-Jan-12 1:01
professionalWayne Gaylard25-Jan-12 1:01 
AnswerRe: create an application which generate table of the entered number.. Pin
Abhinav S25-Jan-12 0:47
Abhinav S25-Jan-12 0:47 
AnswerRe: create an application which generate table of the entered number.. Pin
PIEBALDconsult25-Jan-12 2:28
mvePIEBALDconsult25-Jan-12 2:28 
GeneralRe: create an application which generate table of the entered number.. Pin
Richard Andrew x6425-Jan-12 3:10
professionalRichard Andrew x6425-Jan-12 3:10 
GeneralRe: create an application which generate table of the entered number.. Pin
Pete O'Hanlon25-Jan-12 3:31
mvePete O'Hanlon25-Jan-12 3:31 
GeneralRe: create an application which generate table of the entered number.. Pin
PIEBALDconsult25-Jan-12 5:04
mvePIEBALDconsult25-Jan-12 5:04 
GeneralRe: create an application which generate table of the entered number.. Pin
OriginalGriff25-Jan-12 6:22
mveOriginalGriff25-Jan-12 6:22 
GeneralRe: create an application which generate table of the entered number.. Pin
BillWoodruff27-Jan-12 7:26
professionalBillWoodruff27-Jan-12 7:26 
GeneralRe: create an application which generate table of the entered number.. Pin
PIEBALDconsult27-Jan-12 16:11
mvePIEBALDconsult27-Jan-12 16:11 
QuestionURL change Pin
salim_ali24-Jan-12 21:40
salim_ali24-Jan-12 21:40 
AnswerRe: URL change Pin
Richard Andrew x6425-Jan-12 3:11
professionalRichard Andrew x6425-Jan-12 3:11 
Questionc# how to find one Outlooktask with UserProperty Pin
Easygoing24-Jan-12 21:27
Easygoing24-Jan-12 21:27 

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.