Results 1 to 3 of 3

Thread: Problem with Shell command [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2005
    Location
    Wollongong. NSW. Australia
    Posts
    470

    Resolved Problem with Shell command [RESOLVED]

    G'day,

    On pressing F1, my program shells to Notepad.exe

    On windows 98, it appears on top, over the program, but with XP, it is minimised on the task bar. What causes this and how do I make it come to the front.
    Last edited by Supremus; Jan 16th, 2006 at 05:39 AM.
    My reputation is in tatters. Don't bother trying to repair it.

  2. #2
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Problem with Shell command

    G'Day

    This will make notepad maximised.
    VB Code:
    1. Shell "notepad.exe", [B]vbMaximizedFocus[/B]

    and this will make it normal
    VB Code:
    1. Shell "notepad.exe", [B]vbNormalFocus[/B]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2005
    Location
    Wollongong. NSW. Australia
    Posts
    470

    Re: Problem with Shell command

    Thanks Andrew
    My reputation is in tatters. Don't bother trying to repair it.

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