473,320 Members | 1,884 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,320 software developers and data experts.

Non rectangular form

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 the bitmap as my
form background, set the transarency parameter of the form to 0000ff,
set border style to none and guess what, nothing happened. :) So I'm
asking for help.
Thank you...

Dec 24 '05 #1
3 1702
Can you show your code? It would be easier, since we have no clue if
you actually followed the MSDN article as you said.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ds******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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 the bitmap as my
form background, set the transarency parameter of the form to 0000ff,
set border style to none and guess what, nothing happened. :) So I'm
asking for help.
Thank you...

Dec 24 '05 #2
ds******@gmail.com wrote:
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 the bitmap as my
form background, set the transarency parameter of the form to 0000ff,
set border style to none and guess what, nothing happened. :) So I'm
asking for help.
Thank you...

It's really not the right way of creating a non-rectangular form.
Because what you are trying to do is still a rectangular form with some
parts hidden.
You need to use Form.Region property to set your form position and
shape. For that you need to create a GraphicsPath instance, provide a
shape and assign it to the form:

GraphicsPath gp = new GraphicsPath(FillMode.Alternate);
gp.AddEllipse(new Rectangle(1,1,100,100));
YourForm.Region = new Region(gp);

This is a good place to start with...

Hope it helped,
MuZZY
Dec 25 '05 #3
Nicholas Paldino [.NET/C# MVP] wrote:
Can you show your code? It would be easier, since we have no clue if
you actually followed the MSDN article as you said.


I'm not sure if that MSDN article is up to date, as there is a standard
way of making a pure non-rectangular form - look in my other post for
the subj.

MuZZy
Dec 25 '05 #4

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

Similar topics

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: Just close your eyes and see | last post by:
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...
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...
1
by: Daniel López | last post by:
Hi, I'm trying to create a non rectangular windows form using a PNG image with transparent zones and I want that this zones appears as transparent in the windows form. Before, on VS.NET 2003,...
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...
3
by: Piotrekk | last post by:
Hi I i am zooming part of an image ( 15x15 px for example ). What i see are pixels ( but kinda renderred or something like that ) i nnot rectangular form. I need to see them as rectangular...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.