Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Row selection for datagrid control Pin
eric feng23-Jul-03 6:13
eric feng23-Jul-03 6:13 
GeneralRe: Row selection for datagrid control Pin
A.Wegierski23-Jul-03 19:22
A.Wegierski23-Jul-03 19:22 
GeneralProblem with the OnKeyDown event... Pin
Georgi Atanasov22-Jul-03 11:34
Georgi Atanasov22-Jul-03 11:34 
GeneralRe: Problem with the onkeydown event... Pin
Bo Hunter22-Jul-03 15:24
Bo Hunter22-Jul-03 15:24 
GeneralRe: Problem with the onkeydown event... Pin
A.Wegierski23-Jul-03 19:11
A.Wegierski23-Jul-03 19:11 
GeneralRe: Problem with the onkeydown event... Pin
Valeria Bogdevich24-Jul-03 0:37
Valeria Bogdevich24-Jul-03 0:37 
GeneralRe: Problem with the onkeydown event... Pin
Valeria Bogdevich24-Jul-03 0:38
Valeria Bogdevich24-Jul-03 0:38 
GeneralUSING THE TIMER Pin
eggie522-Jul-03 11:28
eggie522-Jul-03 11:28 
I have this...

private void buttonOut_Click(object sender, System.EventArgs e)
{


    int nOutNum;
    int b=1;
    int b2=1;
    string baseBytes;
    string basebyte1;
    string baseCell;
    string baseFULL;
    string byteFile=this.textBoxFileName.Text;




    try
    {

        for (b=1; b<=8; b++)
        {
            baseBytes="//Bytes";
            basebyte1="/byte"+b2;
            baseCell="/b"+b.ToString();
            baseFULL=baseBytes+basebyte1+baseCell;

            XmlDocument xmlDoc=new XmlDataDocument();
            XmlNode bit;
            string NUM;
            xmlDoc.Load(byteFile);
            bit=xmlDoc.SelectSingleNode(baseFULL); //Bytes/byte1/b2
            NUM=bit.InnerText;
            nOutNum=short.Parse(NUM, NumberStyles.AllowHexSpecifier);
            NTPort.Outport(nAddress, (short)nOutNum);

            //CLIENT ALERTS
            //MessageBox.Show("Cell: <b"+b.ToString()+">"+" illuminated"+"\nbyte"+b2.ToString()+"\nID"+nOutNum);
            this.listPorts.Items.Add((short)nOutNum);




            if(b==8)
                b2++;
            if(b==8)
                b=0;



        }//end for

        MessageBox.Show("LOOP ENDED");



    }
    catch (System.NullReferenceException caught)
    {
        MessageBox.Show("End of "+byteFile);
        this.listPorts.Items.Add("End of File");



    }
    catch (System.IO.FileNotFoundException caught)
    {
        MessageBox.Show("This file does not exist");
    }




}


How can I make the timer wait 1 second before doing the loop over again?

/\ |_ E X E GG
GeneralRe: USING THE TIMER Pin
Rocky Moore22-Jul-03 21:14
Rocky Moore22-Jul-03 21:14 
GeneralRe: USING THE TIMER Pin
eggie522-Jul-03 21:43
eggie522-Jul-03 21:43 
GeneralPopup Tooltip for Each DataGrid Cell Pin
Khang Nguyen22-Jul-03 10:15
Khang Nguyen22-Jul-03 10:15 
GeneralPlaying Video with windows media player in C# Pin
kharr102722-Jul-03 9:12
kharr102722-Jul-03 9:12 
GeneralRe: Playing Video with windows media player in C# Pin
eric feng22-Jul-03 11:55
eric feng22-Jul-03 11:55 
GeneralRe: Playing Video with windows media player in C# Pin
kharr102722-Jul-03 19:19
kharr102722-Jul-03 19:19 
GeneralRe: Playing Video with windows media player in C# Pin
eric feng23-Jul-03 6:11
eric feng23-Jul-03 6:11 
GeneralRe: Playing Video with windows media player in C# Pin
Meysam Mahfouzi22-Jul-03 17:28
Meysam Mahfouzi22-Jul-03 17:28 
GeneralRe: Playing Video with windows media player in C# Pin
kharr102722-Jul-03 19:20
kharr102722-Jul-03 19:20 
GeneralRe: Playing Video with windows media player in C# Pin
Meysam Mahfouzi22-Jul-03 23:51
Meysam Mahfouzi22-Jul-03 23:51 
GeneralRe: Playing Video with windows media player in C# Pin
Leon van Wyk11-Sep-03 23:27
professionalLeon van Wyk11-Sep-03 23:27 
GeneralStringBuilder chars with index Pin
misterbear22-Jul-03 7:47
misterbear22-Jul-03 7:47 
GeneralRe: StringBuilder chars with index Pin
J. Dunlap22-Jul-03 7:58
J. Dunlap22-Jul-03 7:58 
GeneralRe: StringBuilder chars with index Pin
misterbear22-Jul-03 11:23
misterbear22-Jul-03 11:23 
GeneralSHIFT + CTRL Pin
kanch eramudu22-Jul-03 7:46
kanch eramudu22-Jul-03 7:46 
GeneralRe: SHIFT + CTRL Pin
James T. Johnson22-Jul-03 8:17
James T. Johnson22-Jul-03 8:17 
GeneralRe: SHIFT + CTRL Pin
J. Dunlap22-Jul-03 8:54
J. Dunlap22-Jul-03 8:54 

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.