Centering a Pie Chart in Form

papalayo99

New member
Joined
Apr 20, 2006
Messages
2
Programming Experience
1-3
I'm not sure if this is the correct place to put this but I am working on a Project for my VB.Net class at college and I want to know how to center a pie chart while it is being drawn in VB.NET. I am building a program that takes different values that you enter into text boxes and then on the button click the program draws the pie chart from solidbrush. My problem is that it draws it to the right side of the form and I want to center it within the form below the text boxes. If anyone can help it would be greatly appreciated. If you want me to post the code for the program just ask and I will.
 
Yes, please, post some code. If you use the DrawArc it shouldn't be that difficult to measure.
By the way, it sounds as you are drawing directly to form when button is clicked, if so, this is rarely a good idea, better then to draw to a bitmap and display the bitmap in a Picturebox control.
 
Back
Top