Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting Binary to Hex Pin
WillemM11-Aug-03 9:02
WillemM11-Aug-03 9:02 
QuestionWhat did I click in the treeview Pin
Nick Seng10-Aug-03 23:58
Nick Seng10-Aug-03 23:58 
AnswerRe: What did I click in the treeview Pin
OMalleyW11-Aug-03 1:59
OMalleyW11-Aug-03 1:59 
GeneralRe: What did I click in the treeview Pin
Heath Stewart11-Aug-03 2:20
protectorHeath Stewart11-Aug-03 2:20 
GeneralRe: What did I click in the treeview Pin
Nick Seng11-Aug-03 2:28
Nick Seng11-Aug-03 2:28 
GeneralRe: What did I click in the treeview Pin
Nick Seng11-Aug-03 2:27
Nick Seng11-Aug-03 2:27 
GeneralRe: What did I click in the treeview Pin
OMalleyW11-Aug-03 2:44
OMalleyW11-Aug-03 2:44 
GeneralRe: What did I click in the treeview Pin
Nick Seng11-Aug-03 2:46
Nick Seng11-Aug-03 2:46 
Questionweb service???? Pin
don7cry10-Aug-03 23:28
don7cry10-Aug-03 23:28 
AnswerRe: web service???? Pin
Anthony_Yio11-Aug-03 1:59
Anthony_Yio11-Aug-03 1:59 
Generalinsert statement for ms access Pin
zecodela10-Aug-03 23:01
zecodela10-Aug-03 23:01 
GeneralRe: insert statement for ms access Pin
Nish Nishant10-Aug-03 23:12
sitebuilderNish Nishant10-Aug-03 23:12 
GeneralWhich button was pressed... Pin
eggie510-Aug-03 21:29
eggie510-Aug-03 21:29 
bool switchB=true;
private void button1_Click(object sender, System.EventArgs e)
{

    if(switchB==true)
    {
        <code>//Change the sender button's text</code>
        switchB=false;
    }
    else if(switchB==false)
    {
        //nothing yet...
    }
}


I have a set of 7 buttons, numbered from 0-7, right to left, and all their text set to "0".

now, all of the button's onclicks go to the above method...

As you can see, inside the for loop... Now all I need it to do is this...

Change the text of whatever (of the 8) buttons were clicked.

/\ |_ E X E GG
GeneralRe: Which button was pressed... Pin
Meysam Mahfouzi10-Aug-03 22:25
Meysam Mahfouzi10-Aug-03 22:25 
GeneralRe: Which button was pressed... Pin
eggie511-Aug-03 0:20
eggie511-Aug-03 0:20 
GeneralRe: Which button was pressed... Pin
Heath Stewart11-Aug-03 2:48
protectorHeath Stewart11-Aug-03 2:48 
GeneralRe: Which button was pressed... Pin
eggie511-Aug-03 10:31
eggie511-Aug-03 10:31 
GeneralRe: Which button was pressed... Pin
Csharp™11-Aug-03 0:01
Csharp™11-Aug-03 0:01 
GeneralRe: Which button was pressed... Pin
Csharp™11-Aug-03 0:57
Csharp™11-Aug-03 0:57 
GeneralRe: Which button was pressed... Pin
eggie511-Aug-03 10:31
eggie511-Aug-03 10:31 
Generalreading serialized java Hashtable Pin
misterbear10-Aug-03 21:07
misterbear10-Aug-03 21:07 
GeneralRe: reading serialized java Hashtable Pin
Frank Olorin Rizzi11-Aug-03 1:42
Frank Olorin Rizzi11-Aug-03 1:42 
GeneralRe: reading serialized java Hashtable Pin
Heath Stewart11-Aug-03 2:34
protectorHeath Stewart11-Aug-03 2:34 
GeneralRe: reading serialized java Hashtable Pin
misterbear11-Aug-03 4:22
misterbear11-Aug-03 4:22 
GeneralGetting all of the items in a list box.. Pin
eggie510-Aug-03 18:29
eggie510-Aug-03 18:29 

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.