Results 1 to 4 of 4

Thread: cant access form?[RESOLVED]

Hybrid View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    cant access form?[RESOLVED]

    I cannot seem to create an instance and access another class or form in C#. however in Windows Development in C# I am able to create an instance of another form

    is there a way to create and initialise another form in C# mobile development?

    usually its:

    private frmSomeform = new frmSomeform();


    etc....

    but i cannot get the name of the form to show in mobile development.
    Last edited by Techno; Jul 31st, 2005 at 06:04 AM.

  2. #2
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Re: cant access form?

    private frmSomeform = new frmSomeform();
    frmSomeform.Show() or .ShowDialog

    will display the form, is that what you are looking for

    or are you looking the the .name method?
    Barry


    Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
    .NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0

    SQL Server 2005/2000/SQL Server CE 2.0


    If you like, rate this post

    Compact Framework for Beginners

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: cant access form?

    I cant get the name of the form at all

    if i do frm and look at the list of method/objects - it only shows the current form (Form1)...

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: cant access form?

    namespaces was the problem....

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