Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with class inheritance Pin
Colin Angus Mackay5-Feb-04 1:55
Colin Angus Mackay5-Feb-04 1:55 
GeneralCOM interop reference problem Pin
vladll4-Feb-04 23:33
vladll4-Feb-04 23:33 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 4:52
protectorHeath Stewart5-Feb-04 4:52 
GeneralRe: COM interop reference problem Pin
vladll5-Feb-04 5:38
vladll5-Feb-04 5:38 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 6:58
protectorHeath Stewart5-Feb-04 6:58 
GeneralRe: COM interop reference problem Pin
vladll5-Feb-04 7:06
vladll5-Feb-04 7:06 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 8:58
protectorHeath Stewart5-Feb-04 8:58 
GeneralSelecting buttons Pin
Megastoffel4-Feb-04 23:30
Megastoffel4-Feb-04 23:30 
I'm working on a little project for school and I'm having a little problem with selecting a button.
I have some buttons and I have to detect which 2 buttons I just clicked so I can compare the values in it. How do I do that?

I can compare the two values, so that's not the problem, I want to know how to select two unknown buttons.

My code looks a bit like this
<br />
//the text in my buttons is a number!<br />
int comp1;<br />
int comp2;<br />
<br />
Button btncompare1;<br />
Button btncompare2;<br />
<br />
//Here's the problem! this is the only way I can select buttons<br />
//but I have to select them by a click.<br />
btncompare1=button1;<br />
btncompare2=button2;<br />
<br />
comp1=Convert.ToInt32(btncompare1.Text);<br />
comp2=Convert.ToInt32(btncompare2.Text);<br />
<br />
if(comp1>comp2)<br />
...<br />
<br />


I hope you understand my problem!!!
Thanks
GeneralRe: Selecting buttons Pin
Member 2611885-Feb-04 0:11
Member 2611885-Feb-04 0:11 
GeneralRe: Selecting buttons Pin
Megastoffel5-Feb-04 7:38
Megastoffel5-Feb-04 7:38 
GeneralPrintPreviewDialog Pin
Reinier van de Wetering4-Feb-04 22:25
Reinier van de Wetering4-Feb-04 22:25 
Generalconversion to pdf Pin
mohdshiraz4-Feb-04 19:11
mohdshiraz4-Feb-04 19:11 
GeneralRe: conversion to pdf Pin
John Kuhn4-Feb-04 19:37
John Kuhn4-Feb-04 19:37 
GeneralRe: conversion to pdf Pin
mohdshiraz4-Feb-04 19:46
mohdshiraz4-Feb-04 19:46 
GeneralRe: conversion to pdf Pin
John Kuhn4-Feb-04 19:56
John Kuhn4-Feb-04 19:56 
GeneralRe: conversion to pdf Pin
Gerald Leslie Jones4-Feb-04 20:05
Gerald Leslie Jones4-Feb-04 20:05 
GeneralRe: conversion to pdf Pin
Heath Stewart5-Feb-04 4:45
protectorHeath Stewart5-Feb-04 4:45 
GeneralRe: conversion to pdf Pin
mohdshiraz5-Feb-04 0:43
mohdshiraz5-Feb-04 0:43 
GeneralWhat's Wrong Pin
Inam4-Feb-04 17:58
Inam4-Feb-04 17:58 
Generalno instantiate Pin
rod termaat4-Feb-04 17:24
rod termaat4-Feb-04 17:24 
GeneralRe: no instantiate Pin
Tom Clement4-Feb-04 17:39
professionalTom Clement4-Feb-04 17:39 
GeneralRe: no instantiate Pin
Not Active4-Feb-04 18:09
mentorNot Active4-Feb-04 18:09 
GeneralRe: no instantiate Pin
boogs5-Feb-04 2:48
boogs5-Feb-04 2:48 
GeneralRe: no instantiate Pin
Heath Stewart5-Feb-04 4:42
protectorHeath Stewart5-Feb-04 4:42 
QuestionRichTextBox has a bug? Pin
Zembaliti4-Feb-04 14:56
Zembaliti4-Feb-04 14:56 

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.