App.Path??

You have to pass the Application.ExecutablePath (path to the exe
with the exe filename itself) to the GetDirectoryName method
in the IO.Path class. I like to use this nifty little function:

Code:
Private Function AppPath() As String
  Return IO.Path.GetDirectoryName(Application.ExecutablePath) & "\"
End Function
 
Bah, I dont need to put up with this crap. ;)

And youre welcome, Bryan. :D

* Bucky glares at Derek
 
We try to stress use of the .NET framework, rather than the old,
yucky Compatability namespace. Using it is just taking a step
backwards in VB evolution and not harnessing any of the new
power in the Framework.

Your way will work, but it is much more appropriate to use the
way mentioned above.
 
Bucky, I agree, .NET Framework is a lot more powerful then
VB6, but probably the best would be to combine all good that was in VB6 and all other previous versions with what new one has to offer. It would be also easier for people not to forget everything they did before.
 
From what Ive read so far (from MS) is that they will not ensure the future of the Compatability namespace.
 
So.. new folks to .NET should avoid referencing Microsoft.VisualBasic.Compatibility.* Namespaces at all costs? Are these the only Namespaces that use legacy VB6 code rather then .NET? I just want to make sure that Im using pure .NET when I program my applications. :)
 
They dont use legacy code, rather, they offer methods of doing things syntactically similar to the older VB6 ways. The namespace is only there to help the VB6 Project Upgrade Wizard upgrade those old projects without changing too much code.

DONT USE THEM! :)
 
Originally posted by divil
They dont use legacy code, rather, they offer methods of doing things syntactically similar to the older VB6 ways. The namespace is only there to help the VB6 Project Upgrade Wizard upgrade those old projects without changing too much code.

DONT USE THEM! :)

I agree. MS gives the compatibility code there just so that its easier for VB6 to get familiar with VB.net (sort of like an easy learning curve, a stepping stone).

Once you get used to the .net framework, you are ready to use the real thing (everythings there is a real thing, but you know what I mean :) )
 
Back
Top