Nullable properties for User Controls.

L

lord.zoltar

I was asked to make a little "Yes/No" radio button for a project. There
was a small wrinkle, that the user might want to have NO button
checked. This didn't seem so bad, so I made YesNoValue property for the
control and I made it a Nullable(Of Boolean).
Now a problem occurrs when I add this control to a form and try to view
the form in design view. The warning I get is:
"Method 'System.Nullable`1.op_Implicit' not found."
When I dive into the desinger code, I see that the YesNoValue property
has been set to "False". I can delete these lines and the design view
works, but when I reopened the project, the same problem was back!
The project compiles and runs fine ... I just can get the visual
designer to work well anymore.
Anyone have an idea?

TIA.
 
L

lord.zoltar

I was asked to make a little "Yes/No" radio button for a project. There
was a small wrinkle, that the user might want to have NO button
checked. This didn't seem so bad, so I made YesNoValue property for the
control and I made it a Nullable(Of Boolean).
Now a problem occurrs when I add this control to a form and try to view
the form in design view. The warning I get is:
"Method 'System.Nullable`1.op_Implicit' not found."
When I dive into the desinger code, I see that the YesNoValue property
has been set to "False". I can delete these lines and the design view
works, but when I reopened the project, the same problem was back!
The project compiles and runs fine ... I just can get the visual
designer to work well anymore.
Anyone have an idea?

TIA.

Problem resolved by installing VS2005 SP1. yay!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top