hello friends,
how can i design a region in vb.net form(windows application), such that when i click any point inside a region a new page opens.
my problem is that the region which i want to define through it is very complex..its a combination of a rectangle and another shape.
thanks for your help:)
aadi_capri
0
Light Poster
Recommended Answers
Jump to PostCreate the region with a GraphicsPath
Dim GraphicsPath As New Drawing2D.GraphicsPath(Drawing2D.FillMode.Winding) GraphicsPath.AddRectangle(New Rectangle(10, 10, 110, 110)) GraphicsPath.AddEllipse(New Rectangle(50, 50, 100, 100)) Me.Region = New Region(GraphicsPath)
Jump to PostI may have read your post wrong.
This might be more of what your looking for.
Public Class Form1 Private GraphicsPath As Drawing2D.GraphicsPath Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load GraphicsPath = New Drawing2D.GraphicsPath(Drawing2D.FillMode.Winding) GraphicsPath.AddRectangle(New Rectangle(10, 10, 110, 110)) GraphicsPath.AddEllipse(New Rectangle(50, …
All 6 Replies
Unhnd_Exception
Unhnd_Exception
aadi_capri
0
Light Poster
Unhnd_Exception
aadi_capri
0
Light Poster
Unhnd_Exception
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.