c# - how to shift windows forms controls? -


how can same functionality in windows forms in next example. when have 2 links 1 beneath, , when click first link panel visibleunder , next link shifted. when click again panel invisible , second link shifted back.

  <script type="text/javascript">    function toggledivstate(divname)    {       var ctl = window.document.getelementbyid(divname);       if (ctl.style.display == "none")          ctl.style.display = "";       else          ctl.style.display = "none";    }   </script>  <a href="javascript:toggledivstate('poll<%# eval("id") %>');"> <div style="display: none;" id="poll<%# eval("id") %>"> 

something this? on click:

control1.visible = !control1.visible; control2.visible = !control1.visible; 

??


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -