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
Post a Comment