This sample creates a 32bit bitmap from Array data. Changes in the array data are seen when the bitmap is drawn. Ive been hearing this is not possible with VB, but I guess it is.
OnErr0r asked me to point out that the Resize Event might occur before Load, so this code could be altered:
Code:
Private Sub frmTriangle_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
If Not Triangle Is Nothing then
If ClientSize.Height > 10 Then Triangle.Create(ClientSize.Width, ClientSize.Height)
End if
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.