Solved

Form Resize and control problems

Posted on 2004-10-09
2
208 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 500 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

Industry Leaders: 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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

705 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