473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Non Rectangular

hi all
I was making a non rectangular form in C# using a bitmap with a white
background and set the transparency key property of the form to white and it
works but when I color quality from the system properties to 32bit it didn't
work
is there any way to overcome this
or is there a different method for drawing a non rectangular form using images

thx for your interest
Dec 6 '05 #1
2 1176
Hi,

As far as I know this is a bug with .NET 1.x that the transparency key
property works only in 16bit modes. That much I've read and heard. I
personally never have experienced it because I've never used it.

I'd suggest instead of using bitmaps with transparency key to set the form's
Region property to a region describing the geometry your form needs to have.
--
HTH
Stoitcho Goutsev (100) [C# MVP]

"Just close your eyes and see"
<Ju*********************@discussions.microsoft.com > wrote in message
news:04**********************************@microsof t.com...
hi all
I was making a non rectangular form in C# using a bitmap with a white
background and set the transparency key property of the form to white and
it
works but when I color quality from the system properties to 32bit it
didn't
work
is there any way to overcome this
or is there a different method for drawing a non rectangular form using
images

thx for your interest

Dec 6 '05 #2
Hi,

Take a look at http://www.thescarms.com/dotNet/IrregularForm.asp

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Just close your eyes and see"
<Ju*********************@discussions.microsoft.com > wrote in message
news:04**********************************@microsof t.com...
hi all
I was making a non rectangular form in C# using a bitmap with a white
background and set the transparency key property of the form to white and
it
works but when I color quality from the system properties to 32bit it
didn't
work
is there any way to overcome this
or is there a different method for drawing a non rectangular form using
images

thx for your interest

Dec 7 '05 #3

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

Similar topics

1
by: Arvinder Channey | last post by:
Hello Sir!, i could not find any information on how to make a non-rectangular Frame in JAVA swings.For that i think one has to write own new Frame container,then how to do this?.. If anybody...
2
by: Grzesiek | last post by:
Hello Is it possible to rotate a non-rectangular region ? Rectangular regions, created by CreateRectRgn can be rotated using ExtCreateRegion, but how do the same thing with regions created by ...
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...
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.