Help with coding [VB.NET]
2013-06-09, 10:35 PM,
#1
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.
Reply
2013-06-10, 02:43 AM,
#2
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.
Reply
2013-06-10, 03:13 AM,
(This post was last modified: 2013-06-10, 03:14 AM by lanzye.)
#3
I can do it with ProgressBar.

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

Button:
PHP Code:
Timer1.Start() 

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

PS: You can hide ProgressBar ;)
Reply
2013-06-10, 03:23 AM,
(This post was last modified: 2013-06-10, 03:38 AM by PeaceBreaker3.)
#4
(2013-06-10, 03:13 AM)lanzye Wrote: I can do it with ProgressBar.

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

Button:
PHP Code:
Timer1.Start() 

Timer:
PHP Code:
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 Code:
Timer1.Start()
Timer1.Interval 1000  'thats 3 seconds, so if you want 5 seconds simply change 3 -> 5, etc 

Timer:
PHP Code:
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 Code:
Me.FormBorderStyle False 

Nobody exists on purpose, nobody belongs anywhere, everybody's going to die. Come watch TV? | Skype: peacebreaker3 |
Reply
2013-06-10, 07:05 PM,
#5
Thanks guys! I really appreciate this.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Aeonsofts VB.NET Theme Manager v2.1 lanzye 29 9,722 2017-06-20, 06:55 PM
Last Post: storix
  .Net Expert Required insomniac 6 1,539 2016-09-08, 08:38 PM
Last Post: styx
  VB NET FORM APPLICATION QwertySon 12 1,729 2016-04-27, 08:00 PM
Last Post: Harrington
  HttpWebRequest POST Method Visual Basic . net QwertySon 5 1,407 2016-03-17, 02:59 PM
Last Post: QwertySon
  Coding CPAgrip Software blacksploit 4 1,255 2016-01-06, 08:59 PM
Last Post: blacksploit




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top