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

Home Posts Topics Members FAQ

form of a window

3 New Member
HI, o want my window looks like a circle, can you tell me what i will do; and thanks
Aug 10 '13 #1
3 1290
aswal
38 New Member
- Open a image editing software like photoshop
- Paint the sheet with a color [Suppose Red (255, 0 0 )]
- Now Draw a circle over it (the color of circle must be different from the background color)
- Now save the image with .png extension
- Open your windows form
- Select FormBorderStyle Property to none
- Now select the backgroundImage which you have created
- Select TransparencyKey property to the background color of the Image i.e Red (255, 0, 0)
- Run the form
Aug 10 '13 #2
vijay6
158 New Member
Hey abdessamed1228, copy and paste the following code in Form_Load event and try,

Expand|Select|Wrap|Line Numbers
  1. GraphicsPath path = new GraphicsPath();
  2. path.AddEllipse(0, 0, this.Width, this.Height);
  3. Region region = new Region(path);
  4. this.Region = region;

Reference Link: How to create a non rectangular window form in c#?
Aug 10 '13 #3
abdessamed1228
3 New Member
@aswal
thanks so much mate (y)
Aug 10 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Joe Bloggs | last post by:
I have a Windows form application that has a start button, a progress bar and also writes information to the status bar the code is C#. My problem is that when you hit the start button and the...
1
by: alex | last post by:
How to hide the form window when it's minimized? Please help.
2
by: Hoek, Thiemo | last post by:
I know it must be a simple thing inVisual Basic, but I'm not able to find out how to do it. I'm trying to get a child form running, inside the parent form. ie. a new window should popup after a...
4
by: Daniel R. Rossnagel | last post by:
As I can hide the bar of I title of a window daughter maximized within form MDI Already I have proven with different types from borders, hiding thebuttons to maximize, to diminish and control box,...
2
by: usenet | last post by:
When I open a form design window in Access 2003 it *always* has scroll bars, this is even when the form itself is tiny. It's as if the 'page' on which the form is being designed is very large. ...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
0
by: kloplop321 | last post by:
I found this code(vb only) and it does about the same thing(in vb, not vb .NET 2005) Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute...
3
by: toddw607 | last post by:
Hello All, I am using Access 2003 and when I view a report from a form and close the print preview window for the report to return to the form the form window shifts from being...
1
by: Shmedlap | last post by:
I want a picture of my form for documentation, but when I use <Print Scrn> with or without <Ctrl><Alt> I get also the entire Access application. I just want the form window. True I could open up the...
0
by: Hiramicus | last post by:
I'm using access 2003 and Windows 2000. I have a form with a bunch of VBA code. When I'm debugging the code attached to the form, sometimes I will get an error that will stop the code. I notice...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.