P
Peter Oliphant
I'm writing a program using MS VC++ 2005 Express [managed (CLI)], and I use
the Button class.
For the most part, this is working fine. I can set BackColor, ForeColor,
Width, Height, etc. But if I try to us either 'BorderColor' or 'BorderStyle'
it says they aren't properties of Button!
However, it says here that is does have both properties:
ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/cpref16/html/P_System_Web_UI_WebControls_WebControl_BorderColor.htm
This code therefore does not work:
Button^ button = gcnew Button() ;
button->BorderColor = Color::White ; // error
The second line gets this error:
error C2039: 'BorderColor' : is not a member of
'System::Windows::Forms::Button'
How come it doesn't recognize BorderColor or BorderStyle? Are there more
than one Button classes using the same name somehow?
[==Peter==]
the Button class.
For the most part, this is working fine. I can set BackColor, ForeColor,
Width, Height, etc. But if I try to us either 'BorderColor' or 'BorderStyle'
it says they aren't properties of Button!
However, it says here that is does have both properties:
ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/cpref16/html/P_System_Web_UI_WebControls_WebControl_BorderColor.htm
This code therefore does not work:
Button^ button = gcnew Button() ;
button->BorderColor = Color::White ; // error
The second line gets this error:
error C2039: 'BorderColor' : is not a member of
'System::Windows::Forms::Button'
How come it doesn't recognize BorderColor or BorderStyle? Are there more
than one Button classes using the same name somehow?
[==Peter==]