how set startposition windows forms form controlling code?
is there proceed set startposition windows forms form controlling code? seems whatever i try law startpostion being default.
here i am doing form display:
open dealsform()
{
initializecomponent();
this.startposition = formstartposition.centerparent;
}
here i am doing arrangement form:
private vacant nvshowdeals_linkclicked(object sender, linklabellinkclickedeventargs e)
{
dealsform frm = new dealsform();
frm.datasource = this.deals;
frm.show(this);
}
i have attempted putting following any above methods, avail:
this.startposition = formstartposition.centerparent;
if i set around ability editor ... works perfectly, nonetheless i really around code.
should no-brainer ... nonetheless life me i can't seem figure out ... maybe i need some-more caffeine.
update:
if i showdialog() pass progenitor works ... nonetheless i unequivocally don't wish arrangement dialog.
Comments
Post a Comment