ShootingStar
Member
- Joined
- Jul 8, 2005
- Messages
- 5
- Programming Experience
- 3-5
I'm trying to draw a rectangle using GDI+ - very simple.
I want the rectangle to appear when i hover over a control and dissappear when the mouse leaves the control.
This I have accomplished - but I still have problems:
The rectangle is drawn underneath the controls on the form. I want the rectangle to be draw over the controls.
Also I'm getting some serious flickering. After googleing the issue I tried this:
But it hasn't worked!
Any suggestions??
I want the rectangle to appear when i hover over a control and dissappear when the mouse leaves the control.
This I have accomplished - but I still have problems:
The rectangle is drawn underneath the controls on the form. I want the rectangle to be draw over the controls.
Also I'm getting some serious flickering. After googleing the issue I tried this:
VB.NET:
Private Sub frmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
SetStyle(ControlStyles.UserPaint, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)
SetStyle(ControlStyles.DoubleBuffer, True)
End Sub
But it hasn't worked!
Any suggestions??