I have a windows application called "WindowsApplication1". I have a
variable of tyoe DataSet called myDataSet as shown below:
namespace WindowsApplication1
{
public class Form1 : System.Windows.Forms.Form
{
System.Data.DataSet myDataSet;
}
I am trying to access this variable from a class called
DisplayQueryResults (inside the same namespace). Code is below:
namespace WindowsApplication1
{
/// <summary>
/// Summary description for DisplayQueryResults.
/// </summary>
public class DisplayQueryResults
{
//CONSTRUCTOR
public DisplayQueryResults()
{
WindowsApplication1.Form1. = new DataSet();
Problems is though after the "Form1." bit of the above I am not
presented with the option myDataSet! I don't know why. Can anyone help
me please? I know what your thinking: why don't I just declare
myDataSet somewhere inside DiplayQueryResults? I can't - it's used by
other classes so I have to put it in neutral territory so to speak. Do
you see my problem?
Any comments/suggestions/code samples - much appreciated.
Cheers,
Al
The frustrated one.