473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Non Rectangular forms

Any one know of a good book, or another source of information, on making non
rectangular forms?
Nov 21 '05 #1
3 1152
With Region. Here's an example on how to do it:

Dim objGraphics As System.Drawing.Drawing2D.GraphicsPath = New
System.Drawing.Drawing2D.GraphicsPath()
Dim intWidth, intHeight As Integer
Try
intWidth = Me.ClientSize.Width
intHeight = Me.ClientSize.Height
objGraphics.AddClosedCurve(New Point() {New Point(intWidth / 2, intHeight /
10), New Point(intWidth, 0), New Point(intWidth, intHeight / 3), New
Point(intWidth - Width / 3, intHeight), New Point(intWidth / 7, intHeight -
intHeight / 8)})
Me.Region = New Region(objGraphics)
Catch X As Exception
MessageBox.Show("Crap, went wrong:" & System.Environment.NewLine &
X.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try

You can put it in load event or a click event of a button to try it.
"Phinney" <de********@worldnet.att.net> schreef in bericht
news:mN********************@bgtnsc04-news.ops.worldnet.att.net...
Any one know of a good book, or another source of information, on making
non
rectangular forms?

Nov 21 '05 #2
Phinney,

See this sample on our website.

http://www.vb-tips.com/default.aspx?...8-a2eda88e06ee

I hope this helps,

Cor
Nov 21 '05 #3
"Phinney" <de********@worldnet.att.net> schrieb:
Any one know of a good book, or another source of information, on making
non
rectangular forms?


Region from Bitmap
<URL:http://www.bobpowell.net/region_from_bitmap.htm>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nikhil Patel | last post by:
Hi all, I am readin an MSDN tutorial on C# arrays. It says, you can have a three-dimensional rectangular array: int buttons = new int; What I don't understand is how can a three dimensional...
1
by: Tony Reynolds | last post by:
Hi I'm working on a project with a non-rectangular form. I found that if in the form constructor I define a region, say GraphicsPath p = new GraphicsPath() p.AddEllipse(20, 20, 200, 200)...
5
by: dln | last post by:
Could someone point me to a good reference point (books, websites, etc...) that will show me how to create non-rectangular Windows forms using C# (although I could probably figure things out if the...
5
by: Tiraman | last post by:
Hi, i have some questions about non-rectangular forms 1) i build a form as a non-rectangular by setting the form background to some bmp file and the transparenceyKey to the color which i want...
2
by: Marcos Beccar Varela | last post by:
Hello to all! first, sorry for my bad english, but I´ll do my best. I´m testing the 2005 VB.NET Express, and I need to make a Form with a non rectangular shape. I saw some somples where said...
3
by: dsvagelj | last post by:
Hi. I wanted to create a non rectangular form (Winamp, BSPlayer), and I followed the instructions in MSDN on the topic. Created a bitmap, set the background color of the bitmap to blue 0000ff, set...
1
by: xllx.relient.xllx | last post by:
Hi, I have two questions: 1.)Is it true that an rectangular array is really just an single dimensional array that lets itself be treated as a multi-dimensional array? For example the...
5
by: GraGra33 | last post by:
Hi all... I have developed an application for managing a very large resource of artist's paintings and posts them to a web site. The application works well. I'm trying to reduce the complexity...
7
by: Doc John | last post by:
I created a non-rectangular Windows Form which opens inside of an MDI container and I'm managing the MouseMove and MouseDown events with the following code. The problem is that when I click on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.