Click here to Skip to main content
15,917,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: During installation of a setup build in vs2005, what are the things happened in registry entry? Pin
N a v a n e e t h3-Aug-09 18:57
N a v a n e e t h3-Aug-09 18:57 
AnswerRe: During installation of a setup build in vs2005, what are the things happened in registry entry? Pin
Toshiya TSURU3-Aug-09 19:40
Toshiya TSURU3-Aug-09 19:40 
Question[Message Deleted] Pin
haleemasher3-Aug-09 18:35
haleemasher3-Aug-09 18:35 
AnswerRe: does not contain definition for row index Pin
N a v a n e e t h3-Aug-09 19:01
N a v a n e e t h3-Aug-09 19:01 
QuestionWindows Application to do HTTP Post Pin
excellence803-Aug-09 17:52
excellence803-Aug-09 17:52 
AnswerRe: Windows Application to do HTTP Post Pin
N a v a n e e t h3-Aug-09 18:45
N a v a n e e t h3-Aug-09 18:45 
GeneralRe: Windows Application to do HTTP Post Pin
excellence803-Aug-09 19:22
excellence803-Aug-09 19:22 
GeneralRe: Windows Application to do HTTP Post Pin
excellence803-Aug-09 19:28
excellence803-Aug-09 19:28 
QuestionHow can I use System.IO to do these 3 things [modified] Pin
Nathan Revka3-Aug-09 16:27
Nathan Revka3-Aug-09 16:27 
AnswerRe: How can I use System.IO can I use to do these 3 things Pin
Christian Graus3-Aug-09 16:29
protectorChristian Graus3-Aug-09 16:29 
GeneralRe: How can I use System.IO can I use to do these 3 things Pin
Tom Deketelaere3-Aug-09 22:35
professionalTom Deketelaere3-Aug-09 22:35 
AnswerRe: How can I use System.IO to do these 3 things Pin
Xmen Real 3-Aug-09 16:49
professional Xmen Real 3-Aug-09 16:49 
AnswerRe: How can I use System.IO to do these 3 things Pin
dan!sh 3-Aug-09 17:48
professional dan!sh 3-Aug-09 17:48 
QuestionShake Logic. Pin
Baeltazor3-Aug-09 15:44
Baeltazor3-Aug-09 15:44 
AnswerRe: Shake Logic. Pin
Christian Graus3-Aug-09 16:30
protectorChristian Graus3-Aug-09 16:30 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 17:13
Baeltazor3-Aug-09 17:13 
AnswerRe: Shake Logic. Pin
codemunkeh3-Aug-09 17:47
codemunkeh3-Aug-09 17:47 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 17:51
Baeltazor3-Aug-09 17:51 
GeneralRe: Shake Logic. Pin
codemunkeh3-Aug-09 18:11
codemunkeh3-Aug-09 18:11 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 18:15
Baeltazor3-Aug-09 18:15 
AnswerRe: Shake Logic. Pin
codemunkeh3-Aug-09 18:22
codemunkeh3-Aug-09 18:22 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 18:53
Baeltazor3-Aug-09 18:53 
That's okay Smile | :) Thanks for the quick replys too Smile | :)

I got a little confused with the mouseup parts since i have a bordered form so i changed it around a little and it actually works. the only problem is that you need to ensure that must stop dragging the form before you release the mouse button Frown | :( lol. Here's the code:

private int shake = 100;

private void Form1_LocationChanged(object sender, EventArgs e)
{
    progressBar1.Enabled = true;
    shake = 0;
    timer1.Enabled = true;
    timer1.Start();
}

private void timer1_Tick(object sender, EventArgs e)
{
    if (shake <= 10 && progressBar1.Value >= 5)
    {
        timer1.Stop();
        progressBar1.Enabled = false;

        if (Tc.TabPages.Count != 0)
        {
            while (Tc.TabPages.Count != 0)
            {
                Tc.SelectedTab.Dispose();
            }
        }
        else
        {
            AddTab();
        }
    }
    else
    {
        progressBar1.PerformStep();
        shake++;
    }
}



Edit.
The logic in this code is a little conveluded, so message me if it requires explaining :P

Regards,
Jason Pezzimenti.


GeneralRe: Shake Logic. Pin
codemunkeh3-Aug-09 19:17
codemunkeh3-Aug-09 19:17 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 19:26
Baeltazor3-Aug-09 19:26 
QuestionBest way to know which property changed Pin
Xmen Real 3-Aug-09 14:52
professional Xmen Real 3-Aug-09 14:52 

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.