nkrulez
asked on
VB6 to VB.NET ?
somebody plz convert this to VB.NET
WebBrowser1.Navigate ("http://domain/mailer.php" + "?to=" + txtto + "&subject=" + txtsubject + "&from=" + txtfrom + "&message=" + txtmsg)
and is there any tool out there that converts VB6 Projects to VB.NET and the other way around ?
thanks a bunch.
WebBrowser1.Navigate ("http://domain/mailer.php" + "?to=" + txtto + "&subject=" + txtsubject + "&from=" + txtfrom + "&message=" + txtmsg)
and is there any tool out there that converts VB6 Projects to VB.NET and the other way around ?
thanks a bunch.
which version of VB.Net? Starting with VB.Net 2005, you also have a WebBrowser control. Have a look at http://www.emoreau.com/Entries/Articles/2007/04/The-WebBrowser-control.aspx
ASKER
VB.NET 2008
ASKER
and i obviously want to convert the expression [ + "?to=" + txtto + "&subject....etc ] because it is not the same for .NET
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
It should work in VB.Net too...
If you want to be more "correct" then use & instead of +.
WebBrowser1.Navigate ("http://domain/mailer.php" & "?to=" & txtto & "&subject=" & txtsubject & "&from=" & txtfrom & "&message=" & txtmsg)
Otherwise, what error messages are you getting?
If you want to be more "correct" then use & instead of +.
WebBrowser1.Navigate ("http://domain/mailer.php" & "?to=" & txtto & "&subject=" & txtsubject & "&from=" & txtfrom & "&message=" & txtmsg)
Otherwise, what error messages are you getting?
Good catch emoreau...wasn't clear if they were controls or variables.