Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 Graphs on laptop resolution
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Anmiswaco

1 Posts

Posted - 12 May 2005 :  17:55:11  Show Profile  Reply with Quote
I am trying to view the graphs on a typical laptop resolution (i.e. 1024x768 pixels). When I view the graphs, they do not fit on the screen and have to be resized to view properly.
Can anyone suggest a solution to this problem,
Thanks

quinncurtis

1164 Posts

Posted - 13 May 2005 :  18:14:06  Show Profile  Reply with Quote
The graphs are placed on a .Net Form and are positioned and sized with respect to that form. The .Net Form does not automatically resize when the screen resolution changes. If you want the Form and graph to size proportionate to the screen resolution then you must explicitly resize them. The Screen property of the Form class gives you access to the display resolution. You can resize the Form and graphs using code similar to the below, which is a modified version of our ChartOfTheWeek12-31-03 example program:


public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
Rectangle screenbounds = Screen.GetBounds(this);
this.Width = screenbounds.Width;
this.Height = screenbounds.Height;

// chartOfTheWeek1 is some ChartView derived class that displayes the graph
chartOfTheWeek1.InitializeChart();
chartOfTheWeek1.Size = new Size(screenbounds.Width, screenbounds.Height);

//
// TODO: Add any constructor code after InitializeComponent call
//
}
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07