Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I want the pie graph on the fourth tab on my form but not sure how -- it's not showing up for me and don't know how to place it there...I've left the textboxes as TextBox5.Text, etc. for now...

 

Here's my code so far:

 

Dim intWFSignees As Integer

Dim intVTSignees As Integer

Dim intTotalSignees As Integer

 

If IsNumeric(TextBox5.Text) Then

intWFSignees = CInt(TextBox5.Text)

If IsNumeric(TextBox6.Text) Then

intVTSignees = CInt(TextBox6.Text)

intTotalSignees = intVTSignees + intWFSignees

 

'Create Pie Chart that will be displayed on recruiting results tab

Dim brushWFSignees As New SolidBrush(Color.Gold)

Dim brushVTSignees As New SolidBrush(Color.Maroon)

 

'Draw Chart

If intTotalSignees <> 0 Then

llbLegend.Visible = True

 

End If

Dim intEndWFSignees As Integer = CInt(intWFSignees / intTotalSignees * 360)

Me.CreateGraphics.FillPie(brushWFSignees, 160, 140, 100, 100, 0, intEndWFSignees)

Dim intEndVTSignees As Integer = CInt(intVTSignees / intTotalSignees * 360)

Me.CreateGraphics.FillPie(brushVTSignees, 160, 140, 100, 100, intEndWFSignees, intEndVTSignees)

End If

End If

 

Anyone know how I can place it inside the tab and get it to run right and show up?

 

Thanks a ton in advance for any help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...