Windows Develop Bookmark and Share   
 index > Windows Forms Designer > What is the maximum width of a button ?
 

What is the maximum width of a button ?

All,

I am doing Zoom-in and Zoom-out functionality. There i will increase the width of the button like anything.

I couldn't increase the size of the width more than 32767 (int).

Is it so ? Is it not possible to increase more than this width (32767)?

itsnatraj  Thursday, April 05, 2007 12:09 PM

Unfortunetely not! It seems that the Development Environment parses only two bytes of which one of the bits is preserved for special use, which makes the Width property of a button 15 bits left. Because of that the width of a button is limited with 2^15 = 32767.

I think limiting your zoom level uptp a certain level limited within Windows capabilities should be the best approach.

utkuozan  Monday, April 09, 2007 7:36 AM

Unfortunetely not! It seems that the Development Environment parses only two bytes of which one of the bits is preserved for special use, which makes the Width property of a button 15 bits left. Because of that the width of a button is limited with 2^15 = 32767.

I think limiting your zoom level uptp a certain level limited within Windows capabilities should be the best approach.

utkuozan  Monday, April 09, 2007 7:36 AM

You can use google to search for other answers

Custom Search

More Threads

• cannot move control in design time
• Source Code Not Updating on ExpandableObject Converter
• DragAndDrop from Computer to PictureBox doesn't work.
• DefayltValue on a propery of Or'd values
• Vb.Net 2005 -=> Form Designer out of sync with the "Windows Form Designer generated code"
• Form Designer Blank
• DuplicateItemsNotSupported
• addition date
• BrowsableAttribute not working
• Forms designer hanging