Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)
This sample creates a 32bit bitmap from Array data. Changes in the array data are seen when the bitmap is drawn. I've been hearing this is not possible with VB, but I guess it is. :)

triangle.zip

Edited by divil
  • 2 months later...
  • *Gurus*
Posted

OnErr0r asked me to point out that the Resize Event might occur before Load, so this code could be altered:

 

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

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...