Can someone help with code for fake .dll
2013-10-10, 06:35 PM,
#1
[Image: 1weuzd]

i want to get a msgbox in vb like i know how to do it at any place at progres bar but how to define if someone clicks on yes to open my survey link. and no with popup that says sry we can't continue etc.

any help welcome, thanks in advice :)
Reply
2013-10-10, 06:40 PM,
(This post was last modified: 2013-10-10, 06:40 PM by Stewmath.)
#2
Code:
Dim result = MessageBox.Show("message", "caption", MessageBoxButtons.YesNo)
If result = DialogResult.No Then
    MessageBox.Show("No pressed")
ElseIf result = DialogResult.Yes Then
    MessageBox.Show("Yes pressed")
End If
Latest Thanks - View all

deClae(2013-10-10 06:46 PM) 
Reply
2013-10-10, 06:47 PM,
#3
(2013-10-10, 06:40 PM)Stewmath Wrote:
Code:
Dim result = MessageBox.Show("message", "caption", MessageBoxButtons.YesNo)
If result = DialogResult.No Then
    MessageBox.Show("No pressed")
ElseIf result = DialogResult.Yes Then
    MessageBox.Show("Yes pressed")
End If

thanks i don't get the dim function so good, thx again for helping me :)
Reply
2013-10-10, 06:51 PM,
#4
Dim just declares result as a stored variable
Latest Thanks - View all

deClae(2013-10-10 06:55 PM) 
Reply
2013-10-11, 03:54 AM,
(This post was last modified: 2013-10-11, 03:55 AM by rinor4ever.)
#5
It's bad idea to use MsgBox for this. Go and create new form (Design as you want). Open new form using:
Code:
Form2.Show()

Add two buttons and on click on the first button add:
Code:
MessageBox.Show("Dim webAddress As String = "http://www.example.com/"
Process.Start(webAddress)")
on click on the second button
Code:
MessageBox.Show("Sorry we can't continue! ")
Reply
2013-10-12, 11:11 PM,
(This post was last modified: 2013-10-12, 11:44 PM by deClae.)
#6
thanks for help i got tons of ideas more, the best part i got how that dim function works :D

(2013-10-11, 03:54 AM)rinor4ever Wrote: It's bad idea to use MsgBox for this. Go and create new form (Design as you want). Open new form using:
Code:
Form2.Show()

Add two buttons and on click on the first button add:
Code:
MessageBox.Show("Dim webAddress As String = "/"
Process.Start(webAddress)")
on click on the second button
Code:
MessageBox.Show("Sorry we can't continue! ")

for button 1 i made this code from yours:
Code:
Dim webAddress As String = "http://www.example.com/"
Process.Start(webAddress)
and now works thanks

edit for button 2 i use this
Code:
Dim result = MessageBox.Show("sorry we can't continue", "error")
Reply
2013-10-13, 01:35 AM,
#7
(2013-10-12, 11:11 PM)deClae Wrote: thanks for help i got tons of ideas more, the best part i got how that dim function works :D


for button 1 i made this code from yours:
Code:
Dim webAddress As String = "/"
Process.Start(webAddress)
and now works thanks

edit for button 2 i use this
Code:
Dim result = MessageBox.Show("sorry we can't continue", "error")

Ouch shit I was stupid you're right for button1 You don't need to use the message box here.

And for the button2 you don't need to declare result just add in button click.

Regards,
rinor4ever
Latest Thanks - View all

deClae(2013-10-15 07:28 PM) 
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  So You Want to Build a Ch@t Bot – Here's How (Complete with Code!) SwiffJustus 0 146 2017-10-05, 09:56 AM
Last Post: SwiffJustus
  I will try to code a bot for you for FREE blacksploit 30 2,203 2017-09-02, 11:49 PM
Last Post: blacksploit
  Best method to learn to code instagramteam 10 2,167 2017-06-02, 11:01 PM
Last Post: Cupcake1337
  Fake Generator martek 1 488 2017-06-01, 02:02 AM
Last Post: iSee3D
  [REQUEST] Comment box with moderation HTML code iamrichsoon 1 704 2016-12-25, 05:51 AM
Last Post: CegaFin




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

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