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

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 1538
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.comschrieb:
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
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...
1
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...
3
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...
1
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...
4
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...
3
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...
2
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...
3
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...
4
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...
8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...

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.