The best resources for developers

How can I render an example of a combobox control?

// Create the renderer.
if (VisualStyleInformation.IsSupportedByOS 
    && VisualStyleInformation.IsEnabledByUser) 
    renderer = new VisualStyleRenderer(
if(renderer != null)
    // Use visual style renderer.
    // Use ControlPaint renderer.

Tags: .net c# winforms

Source: By Peter Hession as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 3.0

Related code-snippets: