Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting form properties in code
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00873706
Message ID:
00874023
Views:
25
Hi Cathi,
Where do I put that code and what object is 'this' pointing to? I wanted to have code in the option button to change the color of the page.

>Hi Doru,
>
>To change the background color of the form, you would do the following:
>
>
>this.BackColor = Color.Blue
>
>
>>I created a C# web form in VS.NET and set the background color of the form to blue. I added a 3 buttons option group and tryied to change the color of the form when selecting an option... I thought it would be something like this.parent.bgcolor = rgb(), but it seems that this is as far as the moon from what I wanted. I tryied to lookup how do you set proprties in code in C#, but found zero so far.
>>I am at the begining of a C# for web in 21 days and some other C# and ASP.NET reading, but do I have to go from start to end before I can do the simplest things?
>>I hesitated about opening this thread in C#, maybe chatter would've fit better given the stage that I am in with dotnet...
Doru
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform