CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Urgent! How to load forms dynamically using formname string

    I have a requirement to load forms using the formname string dynamically.
    Please guide me.

    Nadia


  2. #2

    Re: Urgent! How to load forms dynamically using formname string

    You can load a form dynamically by using the Add method of the Forms collection, e.g.,

    dim myFormName as string
    'code to resolve myFormName
    Forms.Add myFormName
    'Show the newly loaded form
    Forms(Forms.Count - 1).Show




    Charles Zimmerman
    http://www.freevbcode.com



  3. #3
    Join Date
    Sep 1999
    Posts
    202

    Re: Urgent! How to load forms dynamically using formname string


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

Featured