Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i make a graphical object

Status
Not open for further replies.

bantakiah

Programmer
Oct 1, 2006
48
ID
how if i want to draw sinus graphical in vb
 
You could use the PSet method on the Form or on a PictureBox control. Don't forget the Sin function takes its argument in radians.
Code:
For a = 0 To 359
c = a * 3.14159 / 180
b = 400 + (200 * Sin(c))
Me.PSet (5 * a, 5 * b)
Next a

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
thanks and how to make a pie chart ?
and how to make my sinus graph have a node in every degree
 
1. Chart object

2. Check out the code already supplied

3. Read faq222-2244 AGAIN for help on forum usage especially on basic tuition and your own basic research

4. For a lot of your very basic questions you may do better with a tutorial - Google will find a VB tutorial for you, or you can try
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
As I said before:
1. Chart Object
A search on this forum or a quick google will show the MSChart control is in MSCHRT20.ocx. You should find it under Project|Components

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top