CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2000
    Location
    Chennai, India
    Posts
    18

    Visible/Invisible Controls on my page ??????

    How to make the controls visible and invisible where are placed on the same form ?I have a combo box which has to be shown or hidden depending on the user action. How to do it ?????

    Hand in Hand we Walk towards SUCCESS.

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Visible/Invisible Controls on my page ??????

    each control has a Visible property that you can set (to True/False) at runtime.
    So, depending on the user action set the combo's visible property to False/True.


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Visible/Invisible Controls on my page ??????

    wait a minute. your subject says "on my page"...
    on an HTML page you would set the visibility property:

    <input type="text" value="test" id="test">
    <input type="button" onclick="document.all.test.style.visibility='hidden';">

    ...to hide a "control"...
    you could also set ...style.display = "none" (with different results, though)


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

Featured