Load Assembly 
Author Message
 Load Assembly


 I have an assembly SampleDll .This assembly has a class that has a filename
as one of it's members/properties.
 I get the property grid to add a browse button so the user can change the
filename with the propertygrid.
 Here is my code .
                       Imports System.Drawing.Design
                       Imports System.Windows.Forms.Design
                               Imports System.ComponentModel

<Editor(GetType(TextFileNameDialogEditor),GetType(UITypeEditor))> _
                        Public Class SampleProperties
                            Private mFilename as String

                            Public Property Filename as String
                                    Return mFilename
                                End Get
                                Set (ByVal  Value as String)
                                End Set
                            End Property
                        End class

                        Public Class TextFileNameDialogEditor
                           Inherits FileNameEditor
                           Protected Overrides Sub InitializeDialog(ByVal
openFileDialog As System.Windows.Forms.OpenFileDialog)
                               With openFileDialog
                                    .DefaultExt = "txt"
                                    .Filter = "txt Dateien(*.txt)|*.txt"
                               End With
                        End Sub
                    End Class

Now I try to load this assembly in another assembly with the method "Load"
or "LoadFrom".
I then create an Instance of the class SampleDll with "CreateInstance"
I try to use the new object in my Propertygrid but the browse button does
not appear. WHY???

Any help would be greatly appreciated.


Sat, 01 Oct 2005 16:29:02 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Load Assembly /CreateInstance

2. Trying to Dunamically Load Assembly via Reflection

3. Compare version of loaded assembly to that in a shared directory?

4. One or more of the types in the assembly unable to load

5. How do I load and run assemblies dynamically

6. Dynamically loading an assembly?

7. Loading control from assembly

8. Loading an assembly at runtime

9. Types in the assembly failed to load

10. Can not load file or assembly

11. could not load file or assembly

12. Could not load file or assembly


Powered by phpBB® Forum Software