473,569 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changing a form to a circle in VB.NET 2003

Hello,

I want to change a form in VB.NET 2003 from a square to a circle or
elipse, is this possible, so that i'm working with a circle instead of
a normal form?

thanks

Jan 4 '07 #1
2 1557
I want to change a form in VB.NET 2003 from a square to a circle or
elipse, is this possible
Yes.

To demonstrate a quick way pull up MS Paint and change the background
from white to black. Now draw a white circle in the center of the black
background and save the bmp. Then in VB's form designer set the form's
background to the bmp you just created and set the form's transparency
key to Web.Black. Run the form and it should be just a white circle.

That's one quick way - although I normally use Web.Lime or some other
rarely used color to prevent accidentally making something else
transparent. Then you might want to change the form border style to
"none" to remove the title bar.

For more ways and for learning how to drag a form without a titlebar
please search this ng's archives at
http://groups.google.com/group/micro...b?lnk=sg&hl=en
Most topics are covered there.

Thanks,

Seth Rowe
Thorgal wrote:
Hello,

I want to change a form in VB.NET 2003 from a square to a circle or
elipse, is this possible, so that i'm working with a circle instead of
a normal form?

thanks
Jan 4 '07 #2
"Thorgal" <de************ @yahoo.comschri eb:
I want to change a form in VB.NET 2003 from a square to a circle or
elipse, is this possible, so that i'm working with a circle instead of
a normal form?
Check out the 'GraphicsPath' and 'Region' classes. Assign the circular
region to the form's 'Region' property at runtime.

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

Jan 4 '07 #3

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

Similar topics

3
2496
by: Emanuel Marciniak | last post by:
Hi all, We have the form which uses checkboxes for several fields and the target action points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio buttons or pull down select box with Yes/No options for example (which they support) using still checkboxes as an input entry. Thank you for any hint,...
1
7353
by: George Rogic | last post by:
Hello: I've done an exhaustive online search and either can't find what I'm looking for or I'm unable to make what I've found work. I'm not a programmer, but I'm sure that this is probably elementary stuff. What I have is a form which is being POSTed to an ASP script which processes the script and emails it to a specified recipient (which...
3
4327
by: MissiMaths | last post by:
Does anyone know of a way to change the length and width of a form in code? Say if someone presses a button the form doubles in size to reveal a some text boxes. I just need the code for the size changes if such code exists? Thanks in advance.
1
1507
by: David Burkinshaw | last post by:
I have a form and I assigned an icon to it. For arguements sake let's say the icon is a smiley face. I compile, run, and save the program. The icon on the form shows up as a smiley face. At a later date I reopen the project and decide to change the smiley icon to a frown. I edit the icon using the VS.NET editor, and save it. The build action...
4
1357
by: Greg Merideth | last post by:
Is it possible to change the default templates in VS 2003? Everytime I start a new web method project I have to include a ton of version control headers and region tags. It would be handy to be able to alter the default templates to include all of this stuff so I don't have to each time. Thanks.
3
4673
by: Aziz | last post by:
1. I have a shopping basket DataGrid with a list of products. What I want to do is when the user clicks on a row, a button will become visible/be created that allows user to edit the quantity. The button will be dynamic and always show up on the same Y-axis position as the selected row. So, how do I get back the X, Y co-ordinates of a...
2
2335
by: carmela_wong | last post by:
Hi all, I have converted a database from Access 2003 to Access 97. Everything gets neatly imported into the new database except for one form which continues to show a fatal error when I try to open it in the new 97 database: "Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvenience. If you were...
3
5829
by: leo813 | last post by:
I'm having a difficult time getting my current VB.NET 2003 application to point to my upgraded SQL Server 2005 database. I performed the upgrade from SQL Server 2000 to SQL Server 2005 on my local computer and when I try to reconnect my VB.NET project to SQL Server 2005, I received a message that states unable to connect. Does anyone have...
4
5044
by: RLN | last post by:
I have a form that does not display correctly. frm1 opens frm2 via a command button. My three problems with frm2: 1. Displays in form view when called from the button. (should be datasheet view) 2. "Shortcut Menu" is set to "Yes", however I cannot right click in the form to go to design view. These properties are already set on frm2:
8
9313
by: gershwyn | last post by:
I am trying to give the user some visual feedback by changing the background color of header form to red when data has been changed since it was last saved, and back to green again once it has been saved. The setup is like this: the form itself is bound to an (uneditable) query and is displayed as a split form. The user enters the data into...
0
7694
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6278
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.