Solved

Form Resize and control problems

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net Open Folder in Windows Explorer 3 54
export data table to excel in vb.net 10 36
Footer for each row on Gridview 2 33
VB.net Progress Bar - Maximum Value too large 2 15
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…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 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