How to hide my SmartDevice application on startup?

前端 未结 2 384
天命终不由人
天命终不由人 2021-01-22 13:36

I made a SmartDevice application that runs on startup and I want it to be hidden at first launch.

I\'ve tried this.Hide(), this.Visible =

2条回答
  •  走了就别回头了
    2021-01-22 13:57

    declare two global vars :

    int32 VGU_Left;
    int32 VGU_Top;
    

    in the on create of the form object :

    VGU_Left=this.left;
    VGU_Top=this.top;
    this.left=this.width*-1;
    this.top=this.height*-1;
    

    and when you want to show the form :

    if ((this.left<0)and(this.top<0)) then 
      this.left=VGU_Left;
      this.top=VGU_Top;
    endif
    

提交回复
热议问题