I am trying to make an install wizard for my program, which i have completed, but now im trying to figure out how to write the code for App.Directory thing.
What im trying to do is that i have a list box and a web browser, when they click the item in the list box it displays in the web browser, but since i will be letting many people download my program, they might have it installed to a different directory than C:\Program Files\My Program so thats why i need this.
My friend has vb 6.0 and he used something like:
Private Sub List1_Click()
Dim directory As String
directory = App.Path & "\Quests\"
WebBrowser1.Navigate (directory & List1 & ".htm")
End Sub
And so far i have got to down to this:
Dim directory As String
directory = App.Path & "\Guides\Quests\"
AxWebBrowser3.Navigate(directory & ListBox1.Text & ".htm")
but i cant get the App.Path to work, it says that "app" is not declared. Can someone please tell me whats wrong with my code?
What im trying to do is that i have a list box and a web browser, when they click the item in the list box it displays in the web browser, but since i will be letting many people download my program, they might have it installed to a different directory than C:\Program Files\My Program so thats why i need this.
My friend has vb 6.0 and he used something like:
Private Sub List1_Click()
Dim directory As String
directory = App.Path & "\Quests\"
WebBrowser1.Navigate (directory & List1 & ".htm")
End Sub
And so far i have got to down to this:
Dim directory As String
directory = App.Path & "\Guides\Quests\"
AxWebBrowser3.Navigate(directory & ListBox1.Text & ".htm")
but i cant get the App.Path to work, it says that "app" is not declared. Can someone please tell me whats wrong with my code?