Combobox with borderstyle fixedsingle


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Combobox with borderstyle fixedsingle

  1. #1
    Join Date
    Nov 2005
    Posts
    15

    Combobox with borderstyle fixedsingle

    Hi,

    I am customizing the look of my forms and I think that the textboxes in the form look much better when the borderstyle is fixedsingle.
    When I wanted to give the combobox the borderstyle the fixedsingle value I saw that their wasn't a borderstyle property.

    I wonder if their is any way that I can use a combobox with fixedsingle borderstyle???

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You can use a third-party combobox, such as this one:
    http://www.vbaccelerator.com/home/VB...es/article.asp

    Or, if your users are running Windows XP, you can allow your program to use XP's visual styles:
    http://www.vbaccelerator.com/home/VB...VB/article.asp
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Nov 2005
    Posts
    15

    VB.NEt

    Thanks for the information. The only problem is that the codes are for VB6 and I'm using VS.NET. Are their also similar methodes for VB.NET?

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Sorry, most users of FreeVBCode are using VB6. In the future, you may wish to post VB.NET questions to the .NET Technical forum at DevX: http://forums.devx.com/forumdisplay.php?f=120

    The second method above (using a .manifest file) also works for VB.NET. Or, you may simply call Application.EnableVisualStyles from your form's startup code (before any controls are created on the form).

    If your users are not using Windows XP, you'll need to use a third-party control or make the combobox owner-drawn and draw the border yourself. Here's a .NET version of vbAccelerator's flat combobox: http://www.vbaccelerator.com/home/NE...es/article.asp
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 6
    Last Post: 03-27-2010, 02:49 AM
  2. Selecting an item in a combobox...in Access
    By Laurel in forum Database
    Replies: 4
    Last Post: 03-24-2005, 01:51 PM
  3. comboBox question
    By Stan Shankman in forum .NET
    Replies: 2
    Last Post: 09-07-2001, 04:06 AM
  4. Replies: 6
    Last Post: 04-09-2001, 03:40 PM
  5. ComboBox Value Disappeared Automatically
    By xiao_john@yahoo.com in forum VB Classic
    Replies: 0
    Last Post: 02-20-2001, 02:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center