Windows Form Bug


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Windows Form Bug

  1. #1
    Beginner Guest

    Windows Form Bug


    When I rename a form, say from 'Form1' to 'frmMain', the Solution Explorer
    still shows the old name. I tried closing and reopening the Solution Explorer
    to force a refresh but it still shows 'Form1'.

  2. #2
    Beginner Guest

    Re: Windows Form Bug


    OK, I think I figured it out and it seems kind of stupid. The Solution Explorer
    does *not* show form names. It shows file names. It's cool that I can change
    filenames from within VS.NET but what's stupid is that I have to name every
    form twice. That is, when VS.NET saves your files, it ignores your names
    (frmMain, frmDialog, frmSettings, etc.) and just uses its default names (Form1,
    Form2, Form3, etc.). It doesn't even prompt you to find out what to name
    the files. So unless I'm missunderstanding something, I have to manually
    name everything twice.

    "Beginner" <a@b.c> wrote:
    >
    >When I rename a form, say from 'Form1' to 'frmMain', the Solution Explorer
    >still shows the old name. I tried closing and reopening the Solution Explorer
    >to force a refresh but it still shows 'Form1'.



  3. #3
    Beginner Guest

    Re: Windows Form Bug


    Oh, and anothing I noticed - when you rename files, the VS.NET doesn't remember
    the file's extension. So if you type in, 'frmMain', VS.NET will drop the
    .vb extension. At least it prompts you with a warning message but it should
    be smart enough to figure the file extension on its own.

    "Beginner" <a@b.c> wrote:
    >
    >OK, I think I figured it out and it seems kind of stupid. The Solution Explorer
    >does *not* show form names. It shows file names. It's cool that I can change
    >filenames from within VS.NET but what's stupid is that I have to name every
    >form twice. That is, when VS.NET saves your files, it ignores your names
    >(frmMain, frmDialog, frmSettings, etc.) and just uses its default names

    (Form1,
    >Form2, Form3, etc.). It doesn't even prompt you to find out what to name
    >the files. So unless I'm missunderstanding something, I have to manually
    >name everything twice.
    >
    >"Beginner" <a@b.c> wrote:
    >>
    >>When I rename a form, say from 'Form1' to 'frmMain', the Solution Explorer
    >>still shows the old name. I tried closing and reopening the Solution Explorer
    >>to force a refresh but it still shows 'Form1'.

    >



  4. #4
    Beginner Guest

    Re: Windows Form Bug


    I just discovered another problem with the Solution Explorer, but this one's
    more of a minor annoyance. When you rename a file and don't type the file's
    extension, you get a warning message. If you click No, it erases your input.

    "Beginner" <a@b.c> wrote:
    >
    >Oh, and anothing I noticed - when you rename files, the VS.NET doesn't remember
    >the file's extension. So if you type in, 'frmMain', VS.NET will drop the
    >.vb extension. At least it prompts you with a warning message but it should
    >be smart enough to figure the file extension on its own.
    >
    >"Beginner" <a@b.c> wrote:
    >>
    >>OK, I think I figured it out and it seems kind of stupid. The Solution

    Explorer
    >>does *not* show form names. It shows file names. It's cool that I can change
    >>filenames from within VS.NET but what's stupid is that I have to name every
    >>form twice. That is, when VS.NET saves your files, it ignores your names
    >>(frmMain, frmDialog, frmSettings, etc.) and just uses its default names

    >(Form1,
    >>Form2, Form3, etc.). It doesn't even prompt you to find out what to name
    >>the files. So unless I'm missunderstanding something, I have to manually
    >>name everything twice.
    >>
    >>"Beginner" <a@b.c> wrote:
    >>>
    >>>When I rename a form, say from 'Form1' to 'frmMain', the Solution Explorer
    >>>still shows the old name. I tried closing and reopening the Solution Explorer
    >>>to force a refresh but it still shows 'Form1'.

    >>

    >



  5. #5
    Beginner Guest

    Re: Windows Form Bug


    Sorry to keep posting but I keep finding more and more problems. After you
    name a form, you have to manually change the start up object. If you try
    to run your program you'll get an error message. We never had to do this
    with VB6.

    "Beginner" <a@b.c> wrote:
    >
    >I just discovered another problem with the Solution Explorer, but this one's
    >more of a minor annoyance. When you rename a file and don't type the file's
    >extension, you get a warning message. If you click No, it erases your input.
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center