Results 1 to 2 of 2

Thread: [RESOLVED] project form name in listbox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2007
    Location
    Egypt
    Posts
    29

    Resolved [RESOLVED] project form name in listbox

    i want to make authentication form in my projcet and i nead to Display the project form names in listbox as as dynamic

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Dec 2007
    Location
    Egypt
    Posts
    29

    Re: project form name in listbox

    I have found the solution
    Code:
    Dim myAssembly As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
            Dim types As Type() = myAssembly.GetTypes()
            Dim myType As Object
            txt_form_name.Items.Clear()
            For Each myType In types
                ' mytype
                If myType.BaseType.FullName = "System.Windows.Forms.Form" Then
                    txt_form_name.Items.Add(myType.Name)
                End If
            Next

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width