Hank,
This is nice confusing. You write "update form background color", which is
for us direct a windowsform application.
Now that you you show the load event of a "Page" which is a webform, about
which is never spoken as a form. It is than Page or webform.
You can get that frm. by using this code,
Dim frm As Control = Me.FindControl("Form1") 'Form1 is the HTML form Id
However there is no backcolor property. A webform is a page build using HTML
by the ASPNET dll that you build.
I have never tried to set style parts as code in HTML controls which are in
fact containers.
The most simple way is to click righclick on the Page in design mode and
than start setting the style property.
I hope this helps,
Cor
"HankC" <cl****@missouri.edu> schreef in bericht
news:11**********************@i40g2000cwc.googlegr oups.com...
Thanks fo repsonse...
here's my code layout:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
'' my code to process based on logged in user and domain name
'' I can access the buttons, labels, textboxes, etc, .backcolor but not
me.backcolor...
end sub
I thought of using button1.parent.backcolor, but it is not available
either...
thanks,
HankC