|
-
Apr 22nd, 2009, 02:16 PM
#2
Re: GDI+. Resize the form, does not refresh properly
Try adding this code
Code:
Private Sub Form1_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged
Me.Invalidate()
End Sub
As a side note, you could think of possibly using labels to make your graph, as a 2D bar graph is generally pretty easy to lay out using labels and their anchor properties (you could get nice auto sizing going) or even look at the MSChart control, since it is not technically 3rd party (although it is COM active X)
http://msdn.microsoft.com/en-us/libr...24(VS.71).aspx
PS I hate the vbcode tags because from IE you can't copy/paste into VS easily. I always use the code tags
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|