You have no idea what you are doing do you?
I was trying to do a VB6 form function in a Modual, it is supposed to Declare Form2 to show if a textbox says "hi"
The code is
[php]
Module Module1
Dim PublicFirstform As Form1
Public Class firstform
Declare Function form1.textbox1.text = "hi"
End Class
End Module
[/php]
the error
thanks for helping.Code:"Lib" Expected
Last edited by o0OpurezO0o; 11-01-2010 at 07:44 AM. Reason: New code please
You have no idea what you are doing do you?
In what way isn't it working?
Post your full code?
Any errors?
Dude....should we have a guess?
Did you add a webbrowser?
Do you have the progress on the correct event?
master131backup (11-01-2010)
[php] Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEven tArgs) Handles WebBrowser1.ProgressChanged
ProgressBar1.Maximum = Convert.ToInt32(e.MaximumProgress)
ProgressBar1.Value = Convert.ToInt32(e.CurrentProgress)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox3.Text <> Nothing Then
WebBrowser1.Navigate(TextBox3.Text)
End If
End Sub[/php]
/
We need more details...
[php] Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEven tArgs) Handles WebBrowser1.ProgressChanged
ProgressBar1.Maximum = Convert.ToInt32(e.MaximumProgress)
ProgressBar1.Value = Convert.ToInt32(e.CurrentProgress)
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles WebBrowser1.DocumentCompleted
TextBox3.Text = WebBrowser1.Url.AbsoluteUri
End Sub [/php]
It's not that hard is it?
Last edited by master131backup; 11-01-2010 at 06:48 AM.
o0OpurezO0o (11-01-2010)
[php]Dim test As String = WebBrowser1.Url.AbsoluteUri
Textbox1.Text = test[/php]
or else down ma source... got save history / not perfect but hey it works.
Last edited by Kuro Tenshi; 11-01-2010 at 06:51 AM.
@ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist
neuest gift from Yura~Chan:
https://bakyurayuu.deviantar*****m/#/d372taw
2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
come on you know that don't want to push that ordinary button
thanks peopel.
master131backup (11-01-2010)
its to bad i cant port my code directly... hmm thinking about adding a C# to vb to the vb sources and release my projects so its actually in C# but still cant delete since its VB software >:3
@ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist
neuest gift from Yura~Chan:
https://bakyurayuu.deviantar*****m/#/d372taw
2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
come on you know that don't want to push that ordinary button
Imported (11-01-2010)
[php]Module Module1
Dim PublicFirstform As Form1
Public Class firstform
Declare Function form1.textbox1.text = "hi"
End Class
End Module[/php]
What the fuck is this supposed 2 be?
That's absolute nonsense.
You declare a form in a module.
You declare a from1.textbox1.text = "hi" function.
You put a form in a module.
[php]Public Class firstform
private function settext
textbox1.text = "Hi"
end function
end class
[/php]
Start here:
[youtube]-TSigZD4D2E[tube]
Lolland (11-01-2010)
**Correction
I added IF textbox1.text = "hi" then
not change the text.
ty for the code though. it will become usefull