Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am using NumericUpDown control in my VB.Net project.
I am using the following code to avoid form flickering
Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams
            cp.ExStyle = cp.ExStyle Or &H2000000
            Return cp
        End Get
    End Property


But, NumericUpDown show gray color border , How to remove that border

reply appreciated
Posted
Updated 12-Aug-10 20:45pm
v7
Comments
Dalek Dave 12-Aug-10 6:25am    
Minor Edit.
Richard MacCutchan 12-Aug-10 12:48pm    
Removed C# tag, and 1-vote that complained about it.

1 solution

Have you tried something like

XML
<select size="1" name="selObj" style="border: solid 1px #000">
<option value="-1">-Pick one-</option>
<option value="A">Option A</option>
<option value="B">Option B</option>
<option value="C">Option C</option>
</select>


when defining the actual dropdownlist control?
 
Share this answer
 
Comments
Toli Cuturicu 12-Aug-10 8:39am    
Reason for my vote of 1
Windows.Forms, not WPF, nor ASP.NET

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900