Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Thu, 14 Aug 2008 10:18:42 -0400,    group: microsoft.public.vstudio.development        back       


CheckedChanged Event on Radio control is not compiling   
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
date: Thu, 14 Aug 2008 10:18:42 -0400   author:   MS

Re: CheckedChanged Event on Radio control is not compiling   
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
date: Thu, 14 Aug 2008 16:00:42 -0400   author:   Lloyd Sheen a@b.c

Re: CheckedChanged Event on Radio control is not compiling   
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
date: Fri, 15 Aug 2008 07:26:41 -0700   author:   Norman Yuan

Re: CheckedChanged Event on Radio control is not compiling   
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 10:46:01 -0400   author:   Lloyd Sheen a@b.c

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us