I am converting an app I wrote when learning VB (I primarily use C++). In VB it was trivial to minimize a window to the Taskbar:
Private Sub GoButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoButton.Click
Me.WindowState = FormWindowState.Minimized
Setting the window state in the "Go" button's _Click method worked fine. Now I have:
private: void StartTimer() {
this->Hide();
(the "Go" button is not the only way I trigger the action now) where "this" is the Form. This causes the window to "go away" (I suspect it is placed at screen location ~-32000x~-32000). I have tried:
private: void StartTimer() {
//this->Hide();
this->Minimize();
but it fails to compile:
Error 1 error C2039: 'Minimize' : is not a member of 'VisualTimer::Form1'
Any thoughts?