Results 1 to 13 of 13

Thread: Form becomes a script????? STRANGE !

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Resolved Form becomes a script????? STRANGE !

    Hi there,

    I am absolutely mystified why this is occuring. I have 6 panels which has lots of controls on it. However, when i close and reopen the project, the form becomes a script, i.e when i double click on it, i open up the code and cannot see the form designer. I get round this by fiddling with the Friends Withevents btnBah as System.Textbox etc etc.... I realised if i move them around, it realises it is a form again and the icon changes..?

    Anyone ???

    arghh1!!!

    should i not use panels anymore?
    Last edited by dinosaur_uk; Apr 25th, 2005 at 02:15 PM.

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

    Re: Form becomes a script????? STRANGE !

    that handiest way to get them all back to normal is just to rebuild the project....

    but it is quiet strange
    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
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Form becomes a script????? STRANGE !

    I have done that????

    and it does not work?!?!?

  4. #4

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Form becomes a script????? STRANGE !

    I have done that????

    and it does not work?!?!?

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

    Re: Form becomes a script????? STRANGE !

    that always fixed the problem for me when i went build -> rebuild projname

    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

  6. #6

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Form becomes a script????? STRANGE !

    Yeah sorry,

    that works.,...but why does it do that????

    coz i tried so many times and it keeps doing the same thing...

    bug?

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

    Re: Form becomes a script????? STRANGE !

    absolutely no idea why it does it..... it hasnt happened to me in a while!!!!!

    i never actually looked up the problem, but im sure on msdn somewhere thers is prob an article on it.

    if you find it, post it up.
    i must have a look sometime
    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

  8. #8
    Junior Member
    Join Date
    Mar 2005
    Posts
    20

    Re: Form becomes a script????? STRANGE !

    I have a simple way to solve ur problem cause it always happens to me.

    1.Go the the script.
    2.Click on the empty space right below the "Imports" lines.
    3.Type any thing (eg sdagasdgdf) and press enter.
    4.At this point in time ,your form would have turned back from a script into the form.
    5.Delete away the rubbish u just type.
    6.Continue with ur work !

    Don't ask me why,it just works.

  9. #9

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Form becomes a script????? STRANGE !

    Yeah ...very strange...i found that out too...

    But I only find this happends when i have lots of controls on the form....

  10. #10
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Form becomes a script????? STRANGE !

    What version of VS? I have never had that happen.
    My usual boring signature: Nothing

  11. #11

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Form becomes a script????? STRANGE !

    erm

    vs 2003 enterprise ed?

  12. #12
    Lively Member jberman's Avatar
    Join Date
    Nov 2004
    Location
    Hollywood, FL
    Posts
    103

    Re: Form becomes a script????? STRANGE !

    I have been getting the same bug since I started developing for PDA's a few months ago. Annoying but at least it doesn't really affect your project

  13. #13

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Form becomes a script????? STRANGE !

    Strange though,.....

    wicked ways of the pda

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