vb.net help

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.

Remco

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
May 23, 2013
Messages
851
Reaction score
3
Website
google.com
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 ?
 

rinor4ever

Well-known member
Joined
September 4, 2013
Messages
124
Reaction score
0
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.
 

bobanac

Member
VIP Legends CPAElites Classic (1.0)
Joined
June 6, 2013
Messages
15
Reaction score
1
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
 
Top Bottom