vb.net help
2013-10-15, 07:57 PM,
#1
Since I'm not that good at VB.Net, could someone make me a quick script that loads a messagebox when the program opens with yes/no options and that no closes the program and yes goes to a link using process.start ?
Reply
Share This Thread :

2013-10-16, 06:32 PM,
#2
Why you want to use Message Box?

Create another form, make two buttons. First button "Yes" Use process.start and second one "No" use unload form.
Reply
2013-10-17, 03:06 AM,
#3
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load



Me.Visible = False
Const message As String = "YOUR MESSAGE"
Const caption As String = "MESSAGE TITLE"
Dim result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)

' If the no button was pressed ...
If result = DialogResult.No Then

Me.Close()


ElseIf result = DialogResult.Yes Then
System.Diagnostics.Process.Start("http://url.com")
Me.Close()
Form1.Close()
End If
End Sub

End Class
Reply
2013-10-17, 03:26 AM,
#4
Thanks for the reply mate.
Reply
2013-10-20, 06:01 AM,
#5
thats a very odd bot request. does the entire program need to close?
Reply


Related Threads
Thread Author Replies Views Last Post
  Need Few Instructions That Can Help me Create Video Whiteboard Animation EvaHarrison 1 346 2018-08-17, 05:53 PM
Last Post: CharlieHarper
  help with embed adult videos to my site adlof 1 518 2018-02-16, 10:22 PM
Last Post: Enabled
  Need help is possible? shikoattia 1 561 2018-01-28, 03:25 PM
Last Post: CharlieHarper
  Aeonsofts VB.NET Theme Manager v2.1 lanzye 31 12,997 2017-10-28, 04:48 PM
Last Post: waiphyoe
  help templet error W3C vip2 0 345 2017-08-24, 10:45 PM
Last Post: vip2





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

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