(adsbygoogle = window.adsbygoogle || []).push({});
Hello NGU this is my first tutorial here xP.
Requirements -----
*Working brain
*Visual studio(I used Express 2013)
*Some information about C#.
What I am gonna introduce now -----
*Auto Flashing Labels When opening the tool
*Flashing Labels when pressing a button
*Stopping flashing labels
Lets begin -*-*-*-*-*-*-*-*-*
First you have to create a timer(You can find it in toolbox).Now in this case you have to know when do you want your label to flash? Example You want your Flashing label to start when you open the tool then your code should be like this.
private void Form1_Load(object sender, EventArgs e)
{
timer3.Start();
timer3.Enabled = true;
}
Now my case here it is timer 3 but if you created your timer then it should be timer1.
If you want your Flashing label to Flash after you Press a button then it should be the exact same but button_click here is an example.
private void metroButton4_Click(object sender, EventArgs e)
{
timer2.Start();
timer2.Enabled = true;
}
Here I am using different timers because I have multiple Flashing labels (For this tutorial).
Now You double click your timer (It will be in [Design] below) and here is what you should write in the timer code.
private void timer2_Tick(object sender, EventArgs e)
{
Random ran = new Random();
int A = ran.Next(0, 255);
int R = ran.Next(0, 255);
int G = ran.Next(0, 255);
int B = ran.Next(0, 255);
metroLabel5.ForeColor = Color.FromArgb(A, R, G, B);
}
Everything Above is obvious. So the 0 --> 225 are the colors and the Random is to randomise the int so it will be in a flashing style.
Stopping the timer ------
timer2.Stop();
Make sure you keep it enabled for further issues.
Here is an example of Button_click stopping the timer
private void metroButton5_Click(object sender, EventArgs e)
{
timer2.Stop();
}
Important note : Users who were using MetroFrameWork and Flashing labels is not working make sure you go to the properties of the label and make sure you enable "Custom ForeColor [True]" By default it is False so I hope guys you had benefit from this tutorial and from the demo source.
Screenshots of the Demo.
[ATTACH=CONFIG]31520[/ATTACH]
[ATTACH=CONFIG]31521[/ATTACH]
Some Notes about my demo-*-*-*-*-*-*-*-*
*Connect and attach works on CCAPI 2.5
*You can press My NGU Profile to view my profile.
*Password in stuff tab is "test" without the quotes
*Its not autoupdater just a demo.
*I hope if you take something or benefit from anything here give me credits and thanks
If you don't Trust me and think that this is a virus You can run it Sandieboxed
Any Other methods for Flashing Labels are welcomed
Demo source:
You must login or register to view this content.
Original Tool[Just the Dlls and Exe]:
You must login or register to view this content.
Virus Scan:
You must login or register to view this content.
Pastebin :
You must login or register to view this content.