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

TabControl & creategraphics()

JH
I have a tab control in my form. I am trying to create a dynamic pie chart.
If I use the following code,it works fine on the main form.
this.CreateGraphics().FillPie(brushtargeted,240,20 0,200, 200, 0,
inttargeted);

However, I want the pie chart to be on tab control area and if I try both of
the following , Idon't see any pie chart. HELP PLEASE

this.tabControl1.CreateGraphics().FillPie(brushtar geted,340,100,200, 200, 0,
inttargeted);

tabControl1.CreateGraphics().FillPie(brushtargeted ,340,100,200, 200, 0,
inttargeted);

Newbie to C# here


Nov 16 '05 #1
1 2704
Hello JH,
I think your problem is that you cannot see your pie when you create it
directly on the tabcontrol.
Since your tabcontrol probably contains TabPages you should specify on which
one you want to create it for example:

tabControl1.TabPages[0].CreateGraphics().FillPie( brushtargeted, 24, 20,
200, 200, 0, inttargeted );

would create it on your first tab page.

Vic.
"JH" <yh*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a tab control in my form. I am trying to create a dynamic pie chart.
If I use the following code,it works fine on the main form.
this.CreateGraphics().FillPie(brushtargeted,240,20 0,200, 200, 0,
inttargeted);

However, I want the pie chart to be on tab control area and if I try both
of
the following , Idon't see any pie chart. HELP PLEASE

this.tabControl1.CreateGraphics().FillPie(brushtar geted,340,100,200, 200,
0,
inttargeted);

tabControl1.CreateGraphics().FillPie(brushtargeted ,340,100,200, 200, 0,
inttargeted);

Newbie to C# here

Nov 16 '05 #2

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

Similar topics

5
by: Tamir Khason | last post by:
How be able to manage more deeply UI of TabControl and TabPage For example - I want to manage border color, change color of TabPage reef, eliminate spaces from both sides of the reef, so I bould...
2
by: LS | last post by:
Does anybody know if (and then HOW!) can I change the background color of a WindowsForms.TabControl control? It doesn't have any "BackgroundColor" property, how could then I change it? Thanx!!
1
by: genc ymeri | last post by:
Hi, I'm running in a strange "problem" .... I'm trying to hide a page in tabcontrol with this command " tabMyPage.Hide();" but it still shows up. Am I missing something ??
1
by: vertigo | last post by:
Hello I have TabControl and some TabPages in it. How can i make active these pages ? (i have button on Page1 and after pressing that button i want to see Page2). Thanx Michal
2
by: Stan Sainte-Rose | last post by:
Hi guys I have a little problem with the tabcontrol. I add and remove tabpage using the following methods : TabControl1.Controls.Add(tabpagex) TabControl1.Controle.Remove(tapagex) But how...
10
by: VJ | last post by:
Is there any way I can get the rectangle area of the TabPage area only of a TabControl. I am trying here to paint my tabpage area with one color and tabPage tabs in a different color. Thanks...
2
by: Agnes | last post by:
Now, I understand my problem (bugs?) about the Tab Control & dataBinding 1)a simple blank form with tabcontrol , there are 2 pages, pages1 got 3 textboxes (txtShipperNAme,txtJobNo,txtVslName) and...
1
by: The Confessor | last post by:
(ellipses in place of code sections which do not deviate from defaults) Private Sub Form_Main_Load(...) Handles MyBase.Load For A = 0 To 16 For B = 0 To 14...
0
by: The Confessor | last post by:
I've narrowed down my problem, but I've yet to find a solution, so here goes again: Private Sub Form_Main_KeyDown() Handles MyBase.KeyDown Dim PaintEventArgument As New PaintEventArgs...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.