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() {

(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() {

but it fails to compile:
Error 1 error C2039: 'Minimize' : is not a member of 'VisualTimer::Form1'

Any thoughts?

5 Years
Discussion Span
Last Post by edgar5

That looks like it minimizes to the Tray, not the Taskbar and uses Hide() which I have already tried. The reason I want to use the Taskbar is that I can change the label and use it as a visible countdown timer.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.