Results 1 to 3 of 3

Thread: Form Properties for Web Form in VB.NET

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    South Carolina
    Posts
    2

    Question Form Properties for Web Form in VB.NET

    I have a general question to accomplish a specific task.
    The general question is...How do you refer to the webform object of a web application project in order to access the properties of the form itself? I am trying to have a button on a web form that, when clicked, changes the background color of the form.
    John

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Maybe the Page Object?

    Page.BackColor


    or something like that..


    Just a guess
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    South Carolina
    Posts
    2
    I have tried page.backcolor (nope), document.backcolor(nope), webForm1.backcolor(nope), me.backcolor(nope)

    In a Windows application, I just use <i>formname</i>.backcolor and it works fine. I just wonder if there is some reason why this task can't be accomplished in a web form?[I]
    John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width