Results 1 to 7 of 7

Thread: how can i instantiate a form through its name[Resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member fret's Avatar
    Join Date
    Sep 2004
    Posts
    472

    how can i instantiate a form through its name[Resolved]

    here...
    VB Code:
    1. 'frmname="Form1"
    2.         public void Show(string frmname)
    3.         {
    4.             System.Windows.Forms.Form f;
    5.             f.Name=frmname;
    6.             '....here, how can i identify when i instantiate that
    7.             'it is pointing to Form1
    8.             ' supposed to be it looks like this...Form1 f=new Form1();
    9.             'then Show();
    10.         }
    is this possible? or maybe i'm in the wrong way.
    for now i have no idea on it.
    Last edited by fret; May 23rd, 2005 at 12:40 AM.

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