Sanjay Shetty

Subscribe to Sanjay Shetty: eMailAlertsEmail Alerts
Get Sanjay Shetty: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Sanjay Shetty

A speaking engagement at Tech-Ed 2003 in India prompted me to put my thoughts on paper for this article illustrating some common tips and tricks to accomplish often-requested Windows Forms controls feature requests. These tips and tricks are based on discussions in various newsgroups online as well as Microsoft presentations. Displaying Controls Your Way List boxes/combo boxes and menus are handled by controls that are not particularly exciting in terms of their display. Figure 1 shows a different kind of list box in which each item is displayed in the font that it names. This list box also features a "Variable Height" check box, which, if checked, causes the items to be drawn with a variable height. Download the source code for this article from below, run the solution, and choose "OwnerDraw" to run this sample. If the Variable Height box is checked, as you click ea... (more)