c# - Panel -- ScrollBars Visible Event -
i may searching wrong question, i'm not able find reply this.
i have panel autoscroll set true. controls added panel dynamically. need fire event when scroll bars become visible, unable find such event.
any suggestions appreciated.
more details:
this winforms project. the panel panel, system.windows.forms.panel. the panel visible. autoscroll set true. i want execute code when autoscroll makes scrollbars visible.
thanks comment made @mug4n on original question, here solution. current project in vb.net, , solution.
canvas name of panel.
private sub canvas_paint(sender object, e painteventargs) handles canvas.paint if me.canvas.verticalscroll.visible ' stuff here end if end sub
to check horizontal scroll, utilize me.canvas.horizontalscroll.visible
important
make sure set checks in place avoid infinite loop.
c# .net vb.net winforms
No comments:
Post a Comment