Solved

Form Resize and control problems

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now