[RESOLVED] Modal and Modaless Problem!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: [RESOLVED] Modal and Modaless Problem!

  1. #1
    Join Date
    Dec 2009
    Location
    Kathmandu,Nepal
    Posts
    168

    [RESOLVED] Modal and Modaless Problem!

    Hello, I have a window which is to be shown if I click a Button...
    Code:
                SelectTest sTest = new SelectTest();             //modal
                sTest.ShowDialog();
    If I use the above code new window shows up fine and I cannot use the earlier form. But in the task bar there are two icons...what I want is only one icon in the task bar without closing the first window.
    I have done same in the window form where it works fine....When I minimize the program and select the only icon in the task bar it takes me to the form where I am currently on(not on the 1st form) but the icon in the taskbar is of 1st form( because I have not changed icon for second window)...I am totally buzzed why it is not working in here.....
    Please Help!

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,201

    Re: Modal and Modaless Problem!

    Check out the Window class properties in msdn.

    http://msdn.microsoft.com/en-us/libr...ws.window.aspx

    There is a property that you can set that specifies whether to show the window in the task bar. You'll want to set this property to false.

    While you are in there looking for the task bar related property, take a look at some of the other properties and read their descriptions. It'll be good to get familar with what the Window class offers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center