statusbar question?

If you want to place a Status Bar control named 'statusBar1' at the bottom of your Windows Form, which of the following would be the correct property to set?

statusBar1.Dock = DockStyle.Bottom;
 
 
--------------------------------------------------------------------------------
 
  statusBar1.Lock = "Bottom";
 
 
--------------------------------------------------------------------------------
 
  Location(statusBar1) = DockStyle.Bottom;
 
 
--------------------------------------------------------------------------------
 
  statusBar1 = Placement.Down;
 
mathieu_cuprykAsked:
Who is Participating?
 
ozymandiasCommented:
statusBar1.Dock = DockStyle.Bottom;


...but I am not sure you would need to.
I think that Bottom is the default DockStyle of a status bar.
0
 
Fernando SotoRetiredCommented:
statusBar1.Dock = DockStyle.Bottom;
0
 
mathieu_cuprykAuthor Commented:
Thanks guys I tried it in a form and it work well.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.