How get path after application published

K

K

Hi all, I am using Visual Basic 2008. The below macro works fine when
i do test check of my application. But once i click on publish
application and i get setup file and then when i install the
application and run open it, i cant see image in webBrowser. Can
please any friend know how to get installed application path or any
other suggestion that how can i achive this. The other question that
if i make new folder in My.Resources and give it name "Folder1" then
how can i get the access to it by vb code. I'll be greatful if any
friend can help.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim pth As String
pth = Application.StartupPath & "\Smile.JPG"
Me.WebBrowser1.Navigate(pth)
End Sub
 
P

Phill W.

Can please any friend know how to get installed application path
or any other suggestion that how can i achive this.

Imports System.IO
Imports System.Reflection

Dim appDir as String _
= Path.GetDirectoryName( Assembly.GetEntryAssembly().Location )

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top