Results 1 to 8 of 8

Thread: [Resolved]Maximise a 2nd vb6 app from a 1st one

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Location
    England
    Posts
    8

    Thumbs up [Resolved]Maximise a 2nd vb6 app from a 1st one

    Hello, I was starting a VB6 interface which would configure some .ini files prior to running an exe.

    I created another VB6 interface which would ascertain the amount of time some software has been installed. The problem is when I acknowledge the fact that the main interface app can be executed, when I try to start the main HCI it does not start 'maximised', just in the taskbar. Is there a way I can maximise the second interface upon execution? Or do I have to embed the new days installed checker as another form within my main HCI app?

    Thanks in advance...
    Last edited by marksvb6er; Sep 22nd, 2007 at 10:34 AM. Reason: Resolved

  2. #2

  3. #3
    Hyperactive Member rplcmint's Avatar
    Join Date
    Jan 2001
    Location
    Stockton, CA
    Posts
    333

    Re: Maximise a 2nd vb6 app from a 1st one

    Have you tried to use APIs to do this?

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Location
    England
    Posts
    8

    Cool Re: Maximise a 2nd vb6 app from a 1st one

    my call within my date checking app is done like so:-

    If days_left >= 50 Then
    'run vb6 interface
    ChDir App.Path
    '######### remove the following once works#########'
    MsgBox (days_left & ">50,At the following Path" & App.Path & " looking for a_VB6_GUI_v116")
    '###################################################'
    Shell ("a_VB6_GUI_v116")
    End If

    whether I run my day checker app, or run the main interface first - they both start maximised as long as they are the first one to run. It is only when I run my 2nd vb6 app, from my days installed app that the 2nd one starts in the task bar. Ideally I would like it to be maximised.

    Not very informed on the APIs front..... how hard are they to get to grips with ?
    Last edited by marksvb6er; Sep 21st, 2007 at 01:05 PM. Reason: more info

  5. #5

  6. #6
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Re: Maximise a 2nd vb6 app from a 1st one

    I'd just like to add that applications are allowed to ignore the second argument if they want, so it might not work. For example, Windows Calculator (calc.exe) always ignores the second argument when you shell it.

  7. #7

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Location
    England
    Posts
    8

    Resolved [Resolved]: Maximise a 2nd vb6 app from a 1st one

    Thanks, vbmaximisefocus led me to vbnormalfocus which worked a treat
    Last edited by marksvb6er; Sep 22nd, 2007 at 01:18 AM. Reason: spelling

  8. #8

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