Set Form To Bottom Left //—– SET OUR POSITION BOTTOM LEFT —– this->Left = Screen::PrimaryScreen->WorkingArea.Left; this->Top = Screen::PrimaryScreen->WorkingArea.Height – this->Height;
Category: Form Size And Location
Storing Form Location
Variables private: int PositionTopLast; private: int PositionLeftLast; In the forms Constructor PositionTopLast = 0x7fffffff; PositionLeftLast = 0x7fffffff; Form Load //SET FORM TO LAST LOCATION try { if (PositionTopLast != 0x7fffffff) { this->Top = PositionTopLast; this->Left = PositionLeftLast; } } catch (Exception ^) { } Form Position Changed private: System::Void frmMyForm_ResizeEnd(System::Object^ sender, System::EventArgs^ e) { if […]