Results 1 to 8 of 8

Thread: [2005] "Show desktop" not affected

  1. #1

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    [2005] "Show desktop" not affected

    Hi!!

    I'm doing like a gadget, and i want my program that when u click on shop desktop it doesnt disapear and when u hit alt+tab u wont appear on the list.
    How can i do that?
    Last edited by Lasering; Oct 18th, 2007 at 08:49 AM.
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  2. #2
    Hyperactive Member Troy Lundin's Avatar
    Join Date
    May 2006
    Posts
    489

    Re: [2005] "Show desktop" not affected

    You can check if your window is iconic, and if it is then to reshow it.
    Prefix has no suffix, but suffix has a prefix.

  3. #3

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: [2005] "Show desktop" not affected

    how to check if it is iconic?
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  4. #4
    Hyperactive Member Troy Lundin's Avatar
    Join Date
    May 2006
    Posts
    489

    Re: [2005] "Show desktop" not affected

    Prefix has no suffix, but suffix has a prefix.

  5. #5

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: [RESOLVED] [2005] "Show desktop" not affected

    In what event do i have to check if it is iconic or not and if yes maximize the form?
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] "Show desktop" not affected

    This isn't really a question for the VB.NET forum because this will have to be done with unmanaged code. We can tell you how to declare and call Windows API functions in VB.NET, but to know which functions to call is really a question for the API forum.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: [2005] "Show desktop" not affected

    I went looking before i post that last post and i find this: IsIconic. In other words the IsIconic API already exists in VB.Net so it isnt unmanaged code. Since there isnt any event called WindowStateChanged, I just need to know in each event i can check if the form was minimized. i know the code to check if it was minimized or not. Like i said in the first post
    Quote Originally Posted by Lasering
    I want my program that when u click on "shop desktop" it doesnt disapear.
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] "Show desktop" not affected

    When you minimise a window its SizeChanged event is raised, so you can check the WindowState in the SizeChanged event handler.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Click Here to Expand Forum to Full Width