Hey,
I apologise for the noobishness of this question, but I am unable to move the form.
if (Screen::PrimaryScreen->Bounds.Top != Screen::PrimaryScreen->WorkingArea.Top)
{
this->Left = Screen::PrimaryScreen->Bounds.Right - this->Width;
this->Top = Screen::PrimaryScreen->WorkingArea.Top;
}
else if (Screen::PrimaryScreen->Bounds.Left != Screen::PrimaryScreen->WorkingArea.Left)
{
this->Left = Screen::PrimaryScreen->WorkingArea.Left;
this->Top = Screen::PrimaryScreen->WorkingArea.Bottom - this->Height;
}
else
{
this->Left = Screen::PrimaryScreen->WorkingArea.Right - this->Width;
this->Top = Screen::PrimaryScreen->WorkingArea.Bottom - this->Height;
}
This worked fine in C#. What am I doing wrong?