CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Dec 2008
    Location
    Step Into(F11)
    Posts
    465

    Re: Minimizing a Loaded Application and More

    You will see I used the Process.Start function to load a program. The gadget is what I want to appear on my desktop, it is fed data by the Core Temp.exe. Hence, after I load Core Temp, I want to minimize it, as it is not necessary on the desktop. So, pretty simple right? How do I minimize it?



    try the following ! .
    Code:
    Module Module1
    
    Sub Main()
    dim x as string
    
    
    x=MsgBox("Would you like to Ignite?", vbYesNo, "Ignition")
    if x=vbyes then
       Process.Start("K:\Program Files\Core Temp\Core Temp.exe")
       Process.Start("K:\Program Files\Core Temp\CoreTempGadget2.7.gadget")
    
    Else
        me.windowstate=vbminimized
        MsgBox("Okay, So Long!", vbOKOnly, "Ignition")
    
    End If
    End Sub
    
    End Module
    Last edited by firoz.raj; August 31st, 2012 at 05:38 AM.

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

Featured