B
Brad Wood
I need a tag property added to a Button control. I read about
"extenders" to add properties to existing controls, but like so much
else, this is not possible in the CF.
So I was forced to make a custom control that would extend the button.
I compiled this and it works fine in a standard winforms project.
I read in a prior post that adding the following attribute will allow a
control to work with a smart device project:
#if NETCFDESIGNTIME
[
ToolboxItemFilter("System.CF.Windows.Forms",
ToolboxItemFilterType.Custom),
ToolboxItemFilter("NETCF", ToolboxItemFilterType.Require)
]
#endif
After compiling my library with this conditional attribute, the control
does appear enabled when I have a CF project open, however, it won't
draw on the form.
I have absolutely no clue what is causing this...
"extenders" to add properties to existing controls, but like so much
else, this is not possible in the CF.
So I was forced to make a custom control that would extend the button.
I compiled this and it works fine in a standard winforms project.
I read in a prior post that adding the following attribute will allow a
control to work with a smart device project:
#if NETCFDESIGNTIME
[
ToolboxItemFilter("System.CF.Windows.Forms",
ToolboxItemFilterType.Custom),
ToolboxItemFilter("NETCF", ToolboxItemFilterType.Require)
]
#endif
After compiling my library with this conditional attribute, the control
does appear enabled when I have a CF project open, however, it won't
draw on the form.
I have absolutely no clue what is causing this...