• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • 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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
É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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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