I_Keylogger (10-05-2009)
Visual basics 2008 Express Edition
Yes, ok lets say Button_1 i put on Windows Application, and whats the code, if i want it, when click lets say it opens Google
Thanks
I_Keylogger (10-05-2009)
try
I'm not to good with vb08, and can't test that.Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click System.Diagnostics.Process.Start("https://www.mpgh.net") End Sub
I can guarantee
will work for vb6.0Code:Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Const SW_SHOWNORMAL = 1 Private Sub command1_Click() ShellExecute Me.hwnd, vbNullString, "https://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL End Sub
Last edited by legendaryhack b leet; 09-30-2009 at 03:37 AM.
Katie_Perry (09-30-2009)
what he said.
Thanks!
Wait the Thanks button is gone =X
Close please =D
Refresh the page and it will be there
Although this is a secondary account so doesn't really matter.
Ima beginner too . I just finish watching the tut video on it^Code:Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate(TextBox1.Text) End Sub End Class
so im not 100% sure that it will work.
Im chooby in vb cuz i just started. i wanna learn more
Last edited by JIGS4W; 09-30-2009 at 06:46 AM.
What does the textbox do in that?
Do you like type the website name in it or something?
Here is my very crappy vb project. feel free to laugh, its my first vb ive ever done
btw its a program to browse websites with
Ill definitely PM you if I need help with vb lol
I think its for typing the website. Not sure... still learning.
Last edited by JIGS4W; 09-30-2009 at 06:59 AM.
Looking at your picture, that would be a yes.
You type the website in the TextBox, and then click a button.
Then the button will 'navigate' the webbrowser to the text inside the textbox.
You can compare it with a normal webbrowser (like firefox, internet explorer, safari,etc..).
Look at this image i made:
[img]https://i463.photobucke*****m/albums/qq353/jordidepo/naamloos-1.jpg[/img]
I hope you understand it now. (:
Button1 on firefox is the green arrow as such
But yes to the thread starter, what I posted is what you are looking for you can use this in a different instance
process.start("https://Mpgh.net/")
-Rest in peace leechers-
Your PM box is 100% full.
So that?Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ShellExecute Me.Handle, vbNullString, "https://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL End Sub