Click here to Skip to main content
15,792,351 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
            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
Updated 12-Aug-10 21:45pm
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

<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>

when defining the actual dropdownlist control?
Share this answer
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