vb.net - Load new form from button and from timer are handled differently -
when login application , menu form, after form triggers form.shown after 1 second timer start update procedure. procedure calls form on top menu form, , things. update form can called button on menu form. problem here when call form button taskbar hidden , menu form @ unclickable(i set application full screen taskbar not visible). when update form opens timer taskbar appears, , menu form @ clickable, , user can click buttons parent form. tried setting focus on update form after loaded processes of windows didn't change anything. dont want show taskbar nor have clickable parent form.
any idea why happening , how can fix it?
here how call form timer , button:
private sub timerdelayedstart_tick(byval sender object, byval e timers.elapsedeventargs) timerdelayedstart.stop() loadupdatedatabase() end sub private sub btnupdate_click(sender object, e eventargs) handles btnupdate.click loadupdatedatabase() end sub private sub loadupdatedatabase() try fupdatedatabase = new frmupdatedatabase fupdatedatabase .showdialog() cursor = cursors.default end catch ex exception end try end sub
Comments
Post a Comment