Hello,
I have established that the problem occurs only in .NET CF application
(as mine is). The problem is connected with SQLite ADO.NET assembly I
use. Wherever I use any of types from that assembly (e.g. in a form,
simple class, in method or as static, non-static, public, private field,
etc.), even if it is something like that:
System.Data.SQLite.SQLiteConnection conn = null;
the strange behaviour of derived constrols occur. What is most important
it does not matter _where_. This can be reproduced doing things
mentioned above in _any_ of *.cs project files.
Thanks for any explanation,
BR,
A.
Adam Rzecki pisze:
> Hello,
>
> I have a problem connected with a custom control I created.
>
> I derived the custom control from System.Windows.Forms.TextBox.
>
> The strange problem is that when I drag and drop my new control from the
> toolbox onto a form, the control doesn't display its Text property
> value. Instead of this, it just shows its class name
> (MyProject.Controls.SmartTextBox)...
>
> After this, I tried do the same with a new UserControl. I created a
> UserControl derived class and put a button onto it. When I drag the User
> Control and drop onto my form, only its class name, but no button (no
> content) is displayed.
>
> Finally, I created a new project, then derived Custom Control from
> TextBox and... it worked - control was visible and its "Text" property
> value was properly displayed inside. So I suppose something is wrong
> with my project... :-(
>
> Thank you in advance for any suggestions or informations,
> Best regards,
> Adam.
>
|