5 Replies - 3886 Views - Last Post: 03 August 2007 - 11:45 PM Rate Topic: -----

#1 cygnusX  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 159
  • Joined: 19-May 07

ListBox problem....or bug in VS 2005

Post icon  Posted 03 August 2007 - 03:39 AM

I have a problem with ListBox.When i add it in a panel and set it's Dock property to Fill,obviosly it must fill the space in the panel,but there is a blank space in the bottom side of the panel.Even if i change it's BorderStyle to None,there is no change....But if i reduce the panel height everything is ok,of course i do not want to reduce the height of the panel in my application.The other thing i do is to set the Anchor property of the listbox to all sides,but i just can't to make it's heigth equals to height of the panel.There is always blank space in the bottow side of the panel!How to fix that problem?

Is This A Good Question/Topic? 0
  • +

Replies To: ListBox problem....or bug in VS 2005

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: ListBox problem....or bug in VS 2005

Posted 03 August 2007 - 05:05 AM

Have you checked the HTML to see if perhaps you have a space, ie. &nbsp?

It would also be helpful if you could post a screenshot and your code.
Was This Post Helpful? 0
  • +
  • -

#3 cygnusX  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 159
  • Joined: 19-May 07

Re: ListBox problem....or bug in VS 2005

Posted 03 August 2007 - 05:58 AM

HTML???I thinks that's a C# forum...

This post has been edited by cygnusX: 03 August 2007 - 05:59 AM

Was This Post Helpful? 0
  • +
  • -

#4 tody4me  Icon User is offline

  • Banned
  • member icon

Reputation: 12
  • View blog
  • Posts: 1,398
  • Joined: 12-April 06

Re: ListBox problem....or bug in VS 2005

Posted 03 August 2007 - 11:29 AM

If you set it to dock, there is always the space at the bottom. M$ does that in case you have a status strip on the form.
Was This Post Helpful? 0
  • +
  • -

#5 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4333
  • View blog
  • Posts: 12,128
  • Joined: 18-April 07

Re: ListBox problem....or bug in VS 2005

Posted 03 August 2007 - 01:16 PM

View PostcygnusX, on 3 Aug, 2007 - 03:39 AM, said:

I have a problem with ListBox.When i add it in a panel and set it's Dock property to Fill,obviosly it must fill the space in the panel,but there is a blank space in the bottom side of the panel.Even if i change it's BorderStyle to None,there is no change....But if i reduce the panel height everything is ok,of course i do not want to reduce the height of the panel in my application.The other thing i do is to set the Anchor property of the listbox to all sides,but i just can't to make it's heigth equals to height of the panel.There is always blank space in the bottow side of the panel!How to fix that problem?



Perhaps you can give us a screenshot? I have created a panel, dropped on a listbox, set its dock to fill and it appears to fill every nanometer of the panel with no space. If you can show us the space you are talking about and perhaps the dimensions of your panel then we can test it and get back to you.

Thanks.
Was This Post Helpful? 0
  • +
  • -

#6 cygnusX  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 159
  • Joined: 19-May 07

Re: ListBox problem....or bug in VS 2005

Posted 03 August 2007 - 11:45 PM

Hm,i found the problem,it was the Integral Height property which has to be set to False.
Was This Post Helpful? 1

Page 1 of 1