[Message Deleted]
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
[Message Deleted]
-
[Message Deleted]
This is information that should be passed into the method by the caller. Since your .DLL can't determine what type of application is calling it, Application.StartupPath might not have any meaning. But, if you're absolutely sure that the only thing that will call your method is a Windows Forms app, you can add a reference to the System.Windows.Forms.DLL, then do something like this in your DLL code:
Imports System.Windows.Forms . . . Dim path As String = Application.StartupPath
Dave Kreskowiak Microsoft MVP - Visual Basic