[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

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.
0
nkrulez
Asked:
nkrulez
  • 2
  • 2
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
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
0
 
nkrulezAuthor Commented:
VB.NET 2008
0
 
nkrulezAuthor Commented:
and i obviously want to convert the expression [ + "?to=" + txtto + "&subject....etc ] because it is not the same for .NET
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Éric MoreauSenior .Net ConsultantCommented:
the syntax is almost the same. the Navigate method still exist. The only thing is that default properties (in your case the Text property of the Textbox object) is not supported anymore.

it should now be:
WebBrowser1.Navigate ("http://domain/mailer.php" + "?to=" + txtto.Text + "&subject=" + txtsubject.Text + "&from=" + txtfrom.Text + "&message=" + txtmsg.Text)
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
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?
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Good catch emoreau...wasn't clear if they were controls or variables.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now