Hallo Wolfgang,

Gut Ding hat gut Weile! :)
Sorry, aber bitte etwas Geduld:

Hier mal der Code aus der Beispielanwendung:


Public Overloads Overrides Function EditValue(ByVal context As ITypeDescriptorContext, 
ByVal provider As IServiceProvider, ByVal value As Object) As Object

        If Not (context Is Nothing) And Not (provider Is Nothing) Then
            ' Access the property browser's UI display service, 
            ' IWindowsFormsEditorService
            Dim eS As New i
            Dim editorService As IWindowsFormsEditorService = 
CType(provider.GetService(GetType(IWindowsFormsEditorService)), 
IWindowsFormsEditorService)
          
            If Not (editorService Is Nothing) Then
                ' Create an instance of the UI editor, passing a reference to 
                ' the editor service
                Dim dropDownEditor As New UserControl1(editorService)

                ' Pass the UI editor the current property value
                dropDownEditor.Face = CType(value, Int16) + 2

                ' Display the UI editor
                dropDownEditor.EditorService = editorService
                editorService.DropDownControl(dropDownEditor)

                ' Return the new property value from the editor
                Return dropDownEditor.Face
            End If
        End If
        Return MyBase.EditValue(context, provider, value)


    End Function



Die Variable "editorService" muss irgendwie doch eine Instanz erhalten, sonst kann sie 
ja �ber keine Funktionalit�t verf�gen. Wo geschieht das denn nun hier, wenn nicht bei 
der Variablendeklaration?

Gr��e

Oskar

_______________________________________________
Vb.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/vb.net

Odpovedet emailem