https://bugzilla.novell.com/show_bug.cgi?id=649266

https://bugzilla.novell.com/show_bug.cgi?id=649266#c0


           Summary: calling Control.Hide doesn't remove the application
                    from taskbar
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: UNIX Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Opera/9.80 (Windows NT 6.1; U; en) Presto/2.6.30
Version/10.62

I'm trying to make an app. that shows up only in the tray when minimized, and
came across this bug. 

Calling Hide() on the main window when minimizing it:
 - on windows, the application is removed from the taskbar. 
 - On unix, the application remains on the taskbar, and when I click on it in
the taskbar, it opens a malformed application window (without any components,
and behaving erratically when moved). Opening the application from the tray
icon, as it was programmed, returns the application to normal state, but the
problem arises again at the next minimize.

I can reproduce the bug on the mono vmware image with openSUSE 11.3, and on
CentOS 5.5

Reproducible: Always

Steps to Reproduce:
1. build a simple winforms application.
2. add an event handler for the main form's resize event
3. add the following in the handler

            if (FormWindowState.Minimized == this.WindowState)
                Hide();
            else
                Show();

4. run and try to minimize the main window
Actual Results:  
Application minimizes but leaves a taskbar icon, which doesn't handle the app.
window correctly after.

Expected Results:  
Application should minimize and remove itself from the taskbar

a workaround that could be easily implemented in the mono library is for
'Hide()' to call 'ShowInTaskbar = false' and 'Show()' to call 'ShowInTaskbar =
true', called on the application's main window, and the window's 'WindowState'
is set to 'FormWindowState.Minimized'.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to