Results 1 to 2 of 2

Thread: Minimizing a Loaded Application and More

Hybrid View

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    1

    Minimizing a Loaded Application and More

    Hi, this is my first post on this forum. I am teaching myself VB, so bare with me.

    For my first application, I am writing something called Ignition.exe.

    I intend for this program to autoload at startup. The program will load a bunch of programs I use often, but not every day. This way, I do not have to go through and manually load them all.

    Some programs I want to load on certain parts of the screen.
    Other programs I want to be minimized after loading.

    I've scoured the web and I'm at a dead end, I could use some help.

    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?

    My next question may prove more difficult. If I want the gadget to load on the top left corner of my screen, how would I code that?

    Thanks

    Here is my code so far:
    ----------------------------------
    Module Module1

    Sub Main()



    MsgBox("Would you like to Ignite?", vbYesNo, "Ignition")
    If MsgBoxResult.Yes Then


    Process.Start("K:\Program Files\Core Temp\Core Temp.exe")


    Process.Start("K:\Program Files\Core Temp\CoreTempGadget2.7.gadget")

    Else
    MsgBox("Okay, So Long!", vbOKOnly, "Ignition")

    End If



    End Sub

    End Module
    ----------------------------

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    81,248

    Re: Minimizing a Loaded Application and More

    Use the overload of Process.Start that takes a ProcessStartInfo object as an argument and set its WindowStyle property to Minimized.

Posting Permissions

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