Click here to Skip to main content
15,878,048 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I guess my subject says it all. I need to find a way to make the origin (0,0) of the form the center of the for I want to run slope intercept problems against it Maybe there is some control I still have not run across I am fairly new to VB and brand new to drying to plot lines and things.
Posted
Updated 5-Mar-11 8:14am
v2

1 solution

Тhe center of your Form center is at ClientRectangle.Width/2, ClientRectangle.Height/2. The rendering (drawing) is done in the overridden method of the form OnPaint, the event argument parameter's Graphics object should be for drawing; use System.Drawing.Graphics.DrawLine methods. That's all you need to start.

Please be advised that nobody is supposed to do your work for you, but you can always get some reasonable help. So, please write and debug your code now, consulting Microsoft help on the topics I mentioned.

Slope intercept problem is from elementary mathematics; the problem with the origin does not exist (I told you where the center is, that all you need), it you are familiar with elementary mathematics. If not — you asked your question in wrong forum.

—SA
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 5-Mar-11 0:06am    
OP commented:

No one is doing my work for me I passed my basic logic class with an A last semester. I am sorry everyone looking for help is cheating on their homework or something but that is not me sorry, but thanks for you help I have already thought of doing that but was not sure if it would word and was looking for some other ways of doing it. ThanksCool | :cool: and just in case ne1 needs to see the solutoin that was sent to me here it makes sence.
Sergey Alexandrovich Kryukov 5-Mar-11 0:08am    
Very good. Thank you for understanding. I think I answered; and this is all you need to make it.
If you have other problems, call again.
Thank you for accepting my Answer (a vote would not hurt, too :-)
Good luck,
--SA
sairam.bhat 5-Mar-11 3:49am    
good answer
Sergey Alexandrovich Kryukov 5-Mar-11 16:08pm    
Thank you.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900