System.NotSupportedException

  • Thread starter Thread starter Joakim Englund
  • Start date Start date
J

Joakim Englund

Hi,

I've been working on a C# Compact Framwork project for quiet some time
now and suddenly run into a problem that when I add a Control to a Form,
i.e. a TextBox or a Button, I get a System.NotSupportedException in the
InitializeComponent() section of the Form. I can compile the Solution,
without any problems, but when I run the application the Exception is
thrown.
However, if I remove another Component from the Form the application
runs perfect.

Any help/suggestions is appreciated.

BR
/Joakim
 
Joakim:

Is it simply the addition of the Textbox without referencing anything else
that's doing it? There's definitely a LOT of stuff that's supported in the
full framework that's not supported in the CF.
 
Yes, the only thing I'm doing at the moment is using drag and drop to
add a Button in Visual Studio, and then compile the code. Then I get the
Exception when starting debugging or running the app. The app runs
perect if I first remove another Component before adding the new Button.
BR
/Joakim
 
The only time I've seen this is because there's a problem with the install.
However I'm guessing you have other textboxes/buttons that aren't causing
the problem? Is it only those two controls or can you add different
controls without a problem?
 
Yes, I have lots of other Components, including TextBoxes, Labels,
TabPages, TabControls, DataGrids, DataGridTableStyles,
DataGridTextBoxColumns, MainMenu, MenuItems, Panels and ComboBoxes, and
it seems like I have reached some point where I can't use any more
components during runtime?
There are 185+ Controls in the Form, do you know if there is an upper
limit of number of Controls on a Form in Compact Framework?

BR
/Joakim
 
Back
Top