Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi friends

 

 

I have a question, in the VB forum I saw a tutorial about Custom Regions, this tut, uses some APIS to defining the transparent regions of a window, using a picture as reference. Well, my question is, how I can do that in .NET ???

 

 

Thanks

Mikecrosoft.Net
  • *Experts*
Posted

Here is a very basic example of a custom region:

'define a graphics path to which you will add shapes and other things like that
Dim gp As New Drawing2D.GraphicsPath
'for example add an ellipse to the path to make your form look like an ellipse
gp.AddEllipse(100, 100, 200, 200)
'set your forms region to a new Region object and pass in the graphics path
Me.Region = New Region(gp)

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...