Hack Forums
[.NET] VB.NET (HyperLink) in MessageBox - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] VB.NET (HyperLink) in MessageBox (/showthread.php?tid=5639873)



VB.NET (HyperLink) in MessageBox - Formula 1 - Jun 5, 2017

[Image: c5d47ef49ef7438a8b55536010120d68.png]

How can i do it like "Click here to download" and they just click on it to download the file.


* - log dot zip - Jun 5, 2017

that's not how messageboxes work im afraid, make a form that looks like one if it's required


* - Formula 1 - Jun 5, 2017

I am getting the data in the messagebox from a webserver, I edit .txt file everytime i want to change the message..


* - TRH4CK - Jun 5, 2017

Instead you can make a YES, NO, CANCEL button (using the msgbox show options) and yes that if you choose Yes, it will download the file... Else like Rabite said, you will have to make a form.


What are you using to read the file ? WebClient ? HTTPWebRequest?

You can store it in a string and do a simple if condition.

if (string = "YES") then
' Your code here
else
' your code here
End if


* - HFDone - Jun 5, 2017

Custom MessageBox https://hackforums.net/showthread.php?tid=4543610