|
|
|
date: Thu, 14 Aug 2008 10:18:42 -0400,
group: microsoft.public.vstudio.development
back
Re: CheckedChanged Event on Radio control is not compiling
Unless in the OP "winform app" actually meant for WPF app, in which the
RadioButton indeed has no "CheckChanged" event, and has "Checked" and
"UnChecked" events instead.
"Lloyd Sheen" <a@b.c> wrote in message
news:ezF5jWu$IHA.5956@TK2MSFTNGP04.phx.gbl...
> Norman Yuan wrote:
>> For System.Windows.Forms.RadioButton, yes, there is "CheckedChanged"
>> event, and no, there are not "Checked" and "UnChecked" events.
>>
>> However, I have no idea the OP get that compiling error. Does it happen
>> to other Win form project? One could verify that by create a new win form
>> project, so to just rule out if it is because of some weird project/code
>> file corruption.
>>
>> "Lloyd Sheen" <a@b.c> wrote in message
>> news:uWrS2hk$IHA.4380@TK2MSFTNGP02.phx.gbl...
>>> MS wrote:
>>>> I have a winform app that contains a radio control. I hooked up the
>>>> CheckedChagned event using the form designer but when I compile the app
>>>> in VS2008 (Team system edition), I get this error:
>>>>
>>>> 'System.Windows.Forms.RadioButton' does not contain a
>>>> definition for 'CheckedChanged' and no extension method
>>>> 'CheckedChanged' accepting a first argument of type
>>>> 'System.Windows.Forms.RadioButton' could be found (are you missing a
>>>> using directive or an assembly reference?)
>>>>
>>>>
>>>>
>>>> I have the system.windows.forms assembly included in my references and
>>>> this app used to compile just fine in VS2005. I have no idea what to do
>>>> about it.
>>>>
>>>>
>>>>
>>>> Adrian
>>>>
>>>>
>>>
>>> That is true. There is no such event for RadioButton. There is are a
>>> Checked and UnChecked events.
>>>
>>> LS
>>
>
> Is it possible that the RadioButton control used is from the
> System.Windows.Controls namespace. Check the designer.vb file to ensure
> that the correct control is used.
>
> LS
date: Fri, 15 Aug 2008 09:52:03 -0700
author: Norman Yuan
|
|