Click here to Skip to main content
15,920,576 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAdding values to tree view nodes Pin
lupa-nikki5-May-06 18:57
lupa-nikki5-May-06 18:57 
QuestionRead Arabic File Pin
shereem khaleel5-May-06 14:55
shereem khaleel5-May-06 14:55 
AnswerRe: Read Arabic File Pin
ISIS555-May-06 21:27
ISIS555-May-06 21:27 
GeneralRe: Read Arabic File Pin
shereem khaleel6-May-06 23:25
shereem khaleel6-May-06 23:25 
AnswerRe: Read Arabic File Pin
microuser_20005-May-06 23:28
microuser_20005-May-06 23:28 
QuestionADO Connection problem Pin
Quecumber2565-May-06 10:31
Quecumber2565-May-06 10:31 
QuestionHELP Vb.NET Cannot Inherit from System.ComponentModel.Design.CollectionEditor.CollectionForm Pin
eatwork5-May-06 6:02
eatwork5-May-06 6:02 
AnswerRe: HELP Vb.NET Cannot Inherit from System.ComponentModel.Design.CollectionEditor.CollectionForm Pin
Dave Kreskowiak5-May-06 6:59
mveDave Kreskowiak5-May-06 6:59 
You can start with this:
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Data
Imports System.ComponentModel.Design    ' Important!!
Imports System.Windows.Forms            ' Important!!
 
Public Class MyCollectionEditor
    Inherits CollectionEditor
 
    Public Sub New(ByVal type As Type)
        MyBase.New(type)
    End Sub
.
.
.
    Private Class MyCollectionEditorForm
        Inherits CollectionForm
 
        Public Sub New(ByVal editor As CollectionEditor)
            MyBase.New(editor)
            .
            . ' setup other form properties...
            .
        End Sub
 
        Public Sub New(ByVal type As Type)
            MyBase.New(type)
        End Sub

        Protected Overrides Function CreateCollectionForm() As CollectionForm
            Return New MyCollectionEditorForm(Me)
        End Function
    End Class
End Class

I strongly suggest picking up Lutz Roeder's .NET Reflector and examine some existing collection editors before continuing. Also, I'd keep the MSDN documentation for CollectionBase, CollectionEditor, and CollectionEditor.CollectionForm bookmarked.

Keep in mind, that CollectionForm is just a normal Windows Forms Form. I wonder what you can do with that little tidbit...


Dave Kreskowiak
Microsoft MVP - Visual Basic

GeneralRe: HELP Vb.NET Cannot Inherit from System.ComponentModel.Design.CollectionEditor.CollectionForm Pin
eatwork5-May-06 8:46
eatwork5-May-06 8:46 
GeneralRe: HELP Vb.NET Cannot Inherit from System.ComponentModel.Design.CollectionEditor.CollectionForm Pin
Dave Kreskowiak5-May-06 9:26
mveDave Kreskowiak5-May-06 9:26 
GeneralRe: HELP Vb.NET Cannot Inherit from System.ComponentModel.Design.CollectionEditor.CollectionForm Pin
eatwork5-May-06 9:52
eatwork5-May-06 9:52 
Questioncapture keypress using windows services Pin
ramesh.samiappan5-May-06 5:36
ramesh.samiappan5-May-06 5:36 
QuestionChanging routing table Pin
mjackson115-May-06 5:19
mjackson115-May-06 5:19 
AnswerRe: Changing routing table Pin
Dave Kreskowiak5-May-06 5:48
mveDave Kreskowiak5-May-06 5:48 
GeneralRe: Changing routing table Pin
mjackson115-May-06 8:24
mjackson115-May-06 8:24 
GeneralRe: Changing routing table Pin
Dave Kreskowiak5-May-06 9:24
mveDave Kreskowiak5-May-06 9:24 
GeneralRe: Changing routing table Pin
mjackson115-May-06 12:20
mjackson115-May-06 12:20 
GeneralRe: Changing routing table Pin
Dave Kreskowiak6-May-06 4:15
mveDave Kreskowiak6-May-06 4:15 
QuestionAdding records in a datasheet form Pin
mjackson115-May-06 3:13
mjackson115-May-06 3:13 
AnswerRe: Adding records in a datasheet form Pin
Dave Kreskowiak5-May-06 5:43
mveDave Kreskowiak5-May-06 5:43 
GeneralRe: Adding records in a datasheet form Pin
mjackson115-May-06 8:30
mjackson115-May-06 8:30 
QuestionDATAGRID Pin
Member 28660305-May-06 2:53
Member 28660305-May-06 2:53 
AnswerRe: DATAGRID Pin
Dave Kreskowiak5-May-06 5:34
mveDave Kreskowiak5-May-06 5:34 
Questioninfromation transfer, very urgent?????????? Pin
Waimba5-May-06 2:46
Waimba5-May-06 2:46 
AnswerRe: infromation transfer, very urgent?????????? Pin
Dave Kreskowiak5-May-06 5:31
mveDave Kreskowiak5-May-06 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.