Results 1 to 3 of 3

Thread: [RESOLVED] [2005/2008] Status panels exist in design yet don't exist??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    21

    Resolved [RESOLVED] [2005/2008] Status panels exist in design yet don't exist??

    Now I am very confused!

    I have two programs. One I made in VS 05, the other is the source code of someone else's program written in VS 02/03.

    In my program, I have a status strip and I want to add panels to it. Unfortunately, status panels seem to have been removed in 2005 or something because they are definitely not in the properties window anymore!

    I checked documentation:

    http://msdn2.microsoft.com/en-us/library/1d33ybez.aspx
    http://msdn2.microsoft.com/en-us/lib...73(VS.71).aspx

    Which gives me more frustration because said "panels property" just doesn't exist! Nor does "show panels" exist!

    But the other program I downloaded has a status strip with status panels on it. I opened this program in VS 08 after going through the conversion wizard. I copied the status strip from the program into my program and it works fine...which doesn't make sense. Where did THIS status strip come from?? I can't set the background properties of it and it doesn't show up as a little icon at the bottom (dialogs/toolbars collection pane).

    What am I missing? :S

    (Btw I don't want to add them programmatically, I'd like to have something like these in "design" and automatically-generated code).

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005/2008] Status panels exist in design yet don't exist??

    In .NET 1.x you used the StatusBar class to create a status bar on your form. The StatusBar class still exists for backward compatibility but you should not use it in .NET 2.0+. You use the StatusStrip class, which performs the same function but is implemented completely differently.

    Add a StatusStrip to your form from the Toolbox. Select the strip, click the down-arrow on it and select the type of item you want to add, e.g. Label. That will add a ToolStripStatusLabel to your StatusStrip, which you can then select and set properties of just like any other item on your form.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    21

    Re: [2005/2008] Status panels exist in design yet don't exist??

    Thanks, I had thought that I was just missing something and the seeming presence of it within the documentations was driving me insane. =)

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