?
Solved

Form Resize and control problems

Posted on 2004-10-09
2
Medium Priority
?
210 Views
Last Modified: 2010-04-23
I have two resize issues I need help with. When I resize my form with the FormBorderStyle set to Sizable and have a ListBox Anchored Top, Bottom, Left and Right that is positioned even to the top edge of a StatusBar it causes the ListBox to jump the incriment of space for each line in the listbox when the form is resized with the mouse.  If it matters my ItemHeight is 18

I also need help when resizing the same form to keep the statusbar items moving properly with the resize.  The best example of this is Wordpad.exe in Windows; the items in the StatusBar move i.e. items on the left stay on the left and items on the right move right when the form is resized. As mine is now, the items on the left stay on the left and items on the right stay put without moving at all. I would like the items on the left to move left with the form when it is resized.  The StatusBar is Anchored Bottom, Left and Right.

Anyone have ideas on fixing the ListBox to not move so sporadically and the StatusBar items to move properly?
0
Comment
Question by:teamdad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
kouroshparsa earned 1500 total points
ID: 12268911
Hi. As far as I know, StatusBar is not designed for such a purpose. If you use a toolBar at the bottom, it would look much similar and does what you want.
By the way I assume you add items in your code using addItem. If you don't then do it, or at least do something like item.parent=sBar
I'd used what I explained; I did not like it, because it disfigures your application a bit.

If you set "AutoScale" property of your window to true, it will display scrollBars for the user !
regards, kourosh
0
 

Author Comment

by:teamdad
ID: 12268955
I accept your answer but I tried the AutoScale and it didn't have any visible changes.  For now I am just locking my form so it's not resizable and I don't have to hunt and peck around for something that might work.  I do thank you for the advice though.  I know something like it is doable since MS has use of it in their programs.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question