Help with coding [VB.NET]

Welcome to CPAElites - the original incentive CPA affiliate marketing forum online, solely based on "Cost Per Action".

Be a part of something great, join today! Learn CPA marketing with CPAElites, we will teach you everything such as the best CPA networks, CPA offers with highest payouts and best conversion rates, unsaturated CPA niches, most effective traffic sources and more.

brxboot

Well-known member
Joined
April 29, 2013
Messages
96
Reaction score
0
I need something like this.


When I open the program there is a Button, when I click it picture must show up for about 5 seconds and after that form2 must show.


Can someone write code for me?
Thanks.
 

begginer

Well-known member
VIP Elites CPAElites Classic (1.0)
Joined
May 16, 2013
Messages
60
Reaction score
0
I can help with this if this was on C# or I can make a new one in C#. Pm me if you are interested.
 

lanzye

Well-known member
VIP Elites CPAElites Classic (1.0)
Joined
May 17, 2013
Messages
418
Reaction score
0
Age
30
Location
Italy
I can do it with ProgressBar.

1# Insert Timer, ProgressBar
Paste this in Form1_Load
PHP:
PictureBox1.Hide()

Button:
PHP:
Timer1.Start()

Timer:
PHP:
ProgressBar1.Increment(1)
If ProgressBar1.Value = ProgressBar.Maximum Then
Form2.Show()
Me.Hide
Timer1.Stop()
Else
PictureBox1.Show()

PS: You can hide ProgressBar ;)
 

PeaceBreaker3

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
May 23, 2013
Messages
668
Reaction score
0
Location
Germany
lanzye said:
I can do it with ProgressBar.

1# Insert Timer, ProgressBar
Paste this in Form1_Load
PHP:
PictureBox1.Hide()

Button:
PHP:
Timer1.Start()

Timer:
PHP:
ProgressBar1.Increment(1)
If ProgressBar1.Value = ProgressBar.Maximum Then
Form2.Show()
Me.Hide
Timer1.Stop()
Else
PictureBox1.Show()

PS: You can hide ProgressBar ;)

This, but you can also work with the Timer only so you don't need to hide the progressbar.

Button:
PHP:
Timer1.Start()
Timer1.Interval = 3 * 1000  'thats 3 seconds, so if you want 5 seconds simply change 3 -> 5, etc

Timer:
PHP:
Me.Hide()
Form2.Show()
Timer1.Stop()

EDIT: If you want to loose the border, icon and text and show the image only and NOTHING else, also paste this into your Button1_Click:
PHP:
Me.FormBorderStyle = False
 
Top Bottom