Bug in DateTimePicker

G

Guest

I have made my ovn version of DateTimePicker. My control is inherit from
DateTimePicker

If i add the following code to the control:

In new I have added:
Me.SetStyle(ControlStyles.UserPaint, True)

And i have added the following procedure:

Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(e)
End Sub

Then the DateTimePicker will not display correct.

Is there someone that know a solution on this problem?

Regards

Terje Myklebust
Norway
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top