Link to home
Create AccountLog in
Avatar of nkrulez
nkrulezFlag for United States of America

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.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

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
Avatar of nkrulez

ASKER

VB.NET 2008
Avatar of nkrulez

ASKER

and i obviously want to convert the expression [ + "?to=" + txtto + "&subject....etc ] because it is not the same for .NET
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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?
Good catch emoreau...wasn't clear if they were controls or variables.