After awhile and some hair-pulling, we figured it out. Instead of late-binding the class name (example, "MyClass") with reflection, late-bind the assembly from the full pathname of the DLL with reflection. Below, this example shows how a class is "reflected" to its...
After awhile, I answered my own question. The following will return all the info you need:
After adding a .net reference to "envdte":
Imports EnvDTE
Dim o As DTE
Dim i As Integer
o =...
The example given by MS in the MDSN doesn't tell you how to declare the DTE object or import it's namespace, etc, so the code segment below doesn't work. I'm just trying to add a reference path at runtime and it recommends using the DTE. Has anyone been able to instantiate such an object?
Thx...
Hey guys -
We have an application that loads a specific DLL depending upon which "study" the user wants to access. This works just fine if all study-specific DLLs are located in the same folder as the main app's EXE.
How can we implement late binding to happen on a DLL in a...
mattyjenks -
Thanks for your reply. That is helpful for other things but I needed a Dialog to prompt the user. I have found a C# link to build your own Path Dialog and it works just as easily in VB.net.
http://www.c-sharpcorner.com/Code/2002/Feb/FileDialogCB.asp
Thanks.
This was the age-old question in the VB6 forums, but how is it done in vb.net? Is there a standard component/dialog to find a folder path that I'm missing?
Thanks
If I have an Object with a string array inside of it, how can I parse it or assign it to a real string list?
Dim oObj as Object
Dim sStringList() as String
oObj contains the string list.
Thanks!
How does one get the pathname only back from a dialog? I've seen tons of code to do it in vb6 but I can't get that code to work in .net. I can't believe that MS didn't make a function for this yet. Does anyone know different or have a way of performing this?
Thanks
Found the answer: Allow WriteLine to write the commas and quotes for you:
WriteLine(1, Field1, Field2, Field3)
which produces:
"Value1","Value2","Value3"
Kinda neat.
Both of these writelines will fail with the error: Object reference not set to an instance of an object.
FileOpen(1, sFilename, OpenMode.Append)
WriteLine(1, Chr(34))
WriteLine(1, """")
FileClose(1)
Any writeline that I attempt with all characters works just fine. How do...
This also means that software developement that requires validation, like through FDA standards, etc, will all be invalidated once a piece of the pie is no longer supported. So we shall see another huge spike in software development in the coming years, but hopefully sooner.
We are rewriting...
I'm trying to find a way to pass back events from my thread inside of a MODULE back to the main thread but the following is illegal:
Public Class frmMain
Inherits System.Windows.Forms.Form
Private m_oThread As modMyThread
...
because modMyThread cannot be used as a TYPE. You may be...
Does anyone have experience with methods of EXE to EXE communication, where I can pass messages from the child EXE to the parent EXE in VB.Net?
I can do something like this with events if my EXE was to spawn classes or threads (which I'm very good at writing), but from app to app is a different...
Hi all - I have a co-worker who would like to show multiple small report previews on the same frame in Visual Basic. Currently, we use 7.0 but will be upgrading soon to 8.5. Is this possible? Personally, it doesn't seem like a good idea anyway, considering the time it would take to populate all...
Hi guys - a co-worker is attempting to perform the following: make a Crystal 7.0 report with 20+ columns that will span multiple pages for each record.
This is possible by default in Q+E (aka DataDirect or Vision:Explorer) where if the columns go off of the page, then the pages will auto-format...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.