DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2008
    Posts
    4

    Color of the selection bar in a contextmenu

    Hi,
    i want to know where the color property of this bar is located.
    By default it is orange, but since i instantiate my forms from a sub main the bar is gray and i cant figure out how to change this.

    See attachment what i mean.
    Attached Images

  2. #2
    Join Date
    Jul 2008
    Posts
    4
    Hi,
    as always i accidentally found the answer to my problem .

    The reason why the color disappeared/changed was that i was no longer using the "application framework" (project properties).
    Without it the used controls no longer had the xp visual style. Conclusion: i needed to add a manifest to my Application to enable the xp visual style.

    peace

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Are you sure you need a manifest? Did you try calling the EnableVisualStyles method of the Application class?
    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!

  4. #4
    Join Date
    Jul 2008
    Posts
    4
    Yeah, i stumbled on this function after i found the manifest solution. And you are right both ways work.

Similar Threads

  1. Replies: 5
    Last Post: 12-16-2008, 11:02 AM
  2. Replies: 5
    Last Post: 05-27-2008, 11:17 AM
  3. Replies: 4
    Last Post: 01-22-2008, 01:04 PM
  4. Replies: 0
    Last Post: 03-17-2005, 11:47 AM
  5. Replies: 0
    Last Post: 07-29-2001, 12:46 PM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links