Click here to Skip to main content
16,011,383 members
Home / Discussions / C#
   

C#

 
GeneralRe: Counting New Lines in a String Pin
draco_iii30-Jul-03 6:28
draco_iii30-Jul-03 6:28 
GeneralRe: Counting New Lines in a String Pin
Nathan Blomquist30-Jul-03 6:47
Nathan Blomquist30-Jul-03 6:47 
GeneralRe: Counting New Lines in a String Pin
leppie30-Jul-03 7:13
leppie30-Jul-03 7:13 
GeneralRe: Counting New Lines in a String Pin
Julian Bucknall [MSFT]30-Jul-03 14:19
Julian Bucknall [MSFT]30-Jul-03 14:19 
GeneralRe: Counting New Lines in a String Pin
Csharp™30-Jul-03 14:38
Csharp™30-Jul-03 14:38 
GeneralRe: Counting New Lines in a String Pin
GISnet1-Aug-03 2:50
GISnet1-Aug-03 2:50 
GeneralRe: Counting New Lines in a String Pin
Julian Bucknall [MSFT]1-Aug-03 13:57
Julian Bucknall [MSFT]1-Aug-03 13:57 
GeneralFishy += opperator Pin
eggie529-Jul-03 21:38
eggie529-Jul-03 21:38 
Check this out...

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

    string byteFile2=this.textBoxActiveData.Text;
    <big>this.timer2.Tick += new System.EventHandler</big>(this.timer2_Tick);

    FileInfo myFileInfo = new FileInfo(byteFile2);
    long lSize = myFileInfo.Length;
    string gNiggas=lSize.ToString();

    seconds=lSize/350;



}


on the Event Handler line, what is the += doing?
here is what it is calling...

protected void timer2_Tick (object sender, System.EventArgs e)
{
    this.timer2.Start();

    int f=1;
    int p=1;

    for(f=1; f<20; f++)
    {
        p++;

        if(f==19)
        {
            f=200;
            this.timer2.Stop();

            MessageBox.Show(f.ToString());
        }
        progressBar.Value=p;
    }
    //MessageBox.Show("END OF PROGRESS BAR");
    progressBar.Value=0;


}


anyways... the problem is...

I can run the timer2_Tick once. But when I click on the button again it won't go... what is stopping it from re executing?

/\ |_ E X E GG
GeneralRe: Fishy += opperator Pin
Alexander Kojevnikov29-Jul-03 21:52
Alexander Kojevnikov29-Jul-03 21:52 
GeneralRe: Fishy += opperator Pin
eggie530-Jul-03 12:34
eggie530-Jul-03 12:34 
GeneralRe: Fishy += opperator Pin
Csharp™30-Jul-03 13:16
Csharp™30-Jul-03 13:16 
GeneralRe: Fishy += opperator Pin
Csharp™30-Jul-03 13:18
Csharp™30-Jul-03 13:18 
GeneralRe: Fishy += opperator Pin
Alexander Kojevnikov30-Jul-03 21:54
Alexander Kojevnikov30-Jul-03 21:54 
GeneralRe: Fishy += opperator Pin
Ista30-Jul-03 14:43
Ista30-Jul-03 14:43 
GeneralRe: Fishy += opperator Pin
Nick Parker30-Jul-03 17:32
protectorNick Parker30-Jul-03 17:32 
Generalremote installation from a webserver Pin
bhatti8129-Jul-03 20:37
bhatti8129-Jul-03 20:37 
GeneralRe: remote installation from a webserver Pin
Kannan Kalyanaraman30-Jul-03 5:31
Kannan Kalyanaraman30-Jul-03 5:31 
GeneralUser Interface Process Application Block for VS.Net 2002 Pin
xianuz29-Jul-03 20:11
xianuz29-Jul-03 20:11 
GeneralSimilarity Detection Pin
Ali Parvaresh29-Jul-03 19:37
Ali Parvaresh29-Jul-03 19:37 
GeneralRe: Similarity Detection Pin
leppie30-Jul-03 7:18
leppie30-Jul-03 7:18 
GeneralRe: Similarity Detection Pin
Nathan Blomquist30-Jul-03 8:41
Nathan Blomquist30-Jul-03 8:41 
GeneralQuick file size checker Pin
eggie529-Jul-03 18:35
eggie529-Jul-03 18:35 
GeneralRe: Quick file size checker Pin
Nick Parker29-Jul-03 19:00
protectorNick Parker29-Jul-03 19:00 
GeneralRe: Quick file size checker Pin
eggie529-Jul-03 21:32
eggie529-Jul-03 21:32 
GeneralI have a interesting question! Pin
JeffSayHi29-Jul-03 16:03
JeffSayHi29-Jul-03 16:03 

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.