Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 20th, 2006, 12:50 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default I need help with making a graph.

I just need to make a basic graph, and I know pretty much nothing on graphs. Can anyone tell me how to make one?

 
Old August 21st, 2006, 03:01 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Probably not if you are this unforthcoming.
What are you using? (VBA? VB v6? VB.NET?)
What are you trying to graph? (Equation? Database data? Spreadsheet data?)
What is the end use? (Web page? Printer? MS Access report? Form?)

No one knows what your task is, you need to fill us in. Be forthcoming. The more [u]pertinent</u> details, the better the chances you will get the advice you want.
 
Old August 21st, 2006, 04:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Brian,
there is no need to be so hursh with a guy who states that he/she does not know anything about graphs...

anyhow, using VB (any flavors) there are few ways to draw simple (or complex) graphs. You can use the MSChart control, that is very "basic".
You pass the array of data, specify the "mode" of the graph, and that's it.

For very basic graphs you can use a PictureBox, using the methods Line and Print (to draw a line or print text), with the related methods like CurrentX, CurrentY and ScaleMode. Very basic, but also very flexible, and it allows to do stuff that even the MSChart can't do. Of course you have to do all the drawing by yourself.

As another alternative, you can insert a Excel spreadsheet in you app and use the the graphics of Excel.

If you need more info, please let us know.

Marco
 
Old August 21st, 2006, 04:51 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Didn't mean to be hursh, only to give samples of what types of information were absent in the label "unforthcoming."
Underlined "pertinent" because I could just imagine a flood of info on the perifery in an attempt to flesh things out while only cluttering.

I do admit though that it is exasperating that so many people (kanryue not included) open with a subject line like "I need help with VB." (no duh!)
This is so often followed with just about no information: "I'm thinking of maybe writing a program: can you help with the code? What should I add . . . "
Again, this is not what kanryue did, though there was a dearth of context-setting info.

True, kanryue was up front about not knowing much about graphs. Any shortness on my part was not due to that. But surely kanryue has had individuals ask for help from time to time, and one would think all people would have learned pretty early on how much it helps to have a more complete picture. (Or, maybe not, since so many give sketchy details... What do I know?)

Anyway, please don't think harshness was my intent, it wasn't. I only strove for clarity.





Similar Threads
Thread Thread Starter Forum Replies Last Post
TO draw a graph shravanmv Visual Basic 2008 Essentials 0 May 12th, 2008 11:53 PM
Making a signal graph mirfanm C# 2005 0 March 9th, 2007 08:41 AM
Graph required crmpicco Javascript How-To 1 February 2nd, 2005 07:28 AM
graph pab006 Classic ASP Basics 5 July 26th, 2004 10:06 AM
graph pab006 Classic ASP Basics 1 April 30th, 2004 10:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.