vb.net - Changing the Visible property for a label on a windows form, after the form has been displayed -
so have windows form built in vb.net get's displayed used filter window... there "ok" button starts process of building sql query , requesting data.
lblloading.visible defaulted false in designer...the code on ok button click follows:
private sub btnok_click(byval sender object, byval e system.eventargs) handles btnok.click ' validation here lblloading.visible = true ' code data lblloading.visible = false end sub
when code executes label not shown... tried changing value true in designer, , displays when form opened doesn't hide when code runs.
i'm more used using c# wpf forms , in there raise on property changed event propagate view i'm wondering if there similar have missed here?
thanks in advance
quick solution? add on line after visible = true
:
refresh()
or
me.refresh()
don't use (like inside loop!). let me know if helps!
Comments
Post a Comment