G
Guest
Platform: WinCE, X86 device, C#
I want to use the ProgressBar control in my touchscreen application, but
when I try and set some properties (which are there in design time), I get a
System.NotSupportedException.
Here's my code:
this.progBar = new ProgressBar();
this.progBar.Size = new size(400,200);
this.progBar.ForeColor = Color.FromArgb(100,20,90);
this.progBar.BackColor = Color.FromArgb(200,220,250);
this.progBar.Font = new Font("Arial", 24,
System.Drawing.FontStyle.Bold);
// The below three calls cause System.NotSupportedException in
System.Windows.Forms.dll
this.progBar.Minimum = 1;
this.progBar.Maximum = 3;
this.progBar.Value = 1;
this.progBar.Show();
What's up? Am I missing a library or linking with incorrect library?
TIA.
Mark
I want to use the ProgressBar control in my touchscreen application, but
when I try and set some properties (which are there in design time), I get a
System.NotSupportedException.
Here's my code:
this.progBar = new ProgressBar();
this.progBar.Size = new size(400,200);
this.progBar.ForeColor = Color.FromArgb(100,20,90);
this.progBar.BackColor = Color.FromArgb(200,220,250);
this.progBar.Font = new Font("Arial", 24,
System.Drawing.FontStyle.Bold);
// The below three calls cause System.NotSupportedException in
System.Windows.Forms.dll
this.progBar.Minimum = 1;
this.progBar.Maximum = 3;
this.progBar.Value = 1;
this.progBar.Show();
What's up? Am I missing a library or linking with incorrect library?
TIA.
Mark