|
-
Sep 21st, 2007, 12:16 PM
#1
Thread Starter
New Member
[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
-
Sep 21st, 2007, 12:44 PM
#2
Re: Maximise a 2nd vb6 app from a 1st one
Can you be more specific please? How do you launch your apps?
-
Sep 21st, 2007, 12:51 PM
#3
Hyperactive Member
Re: Maximise a 2nd vb6 app from a 1st one
Have you tried to use APIs to do this?
-
Sep 21st, 2007, 01:01 PM
#4
Thread Starter
New Member
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
-
Sep 21st, 2007, 01:57 PM
#5
Re: Maximise a 2nd vb6 app from a 1st one
If you are shelling it then simply specify the second argument:
Code:
Shell "my second app's full path goes here", vbMaximizedFocus
-
Sep 21st, 2007, 03:42 PM
#6
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.
-
Sep 22nd, 2007, 01:17 AM
#7
Thread Starter
New Member
[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
-
Sep 22nd, 2007, 08:45 AM
#8
Re: Maximise a 2nd vb6 app from a 1st one
Good to know you resolved it. However, thread won't be resolved until you edit title in the first post manually or from the Thread Tools menu.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|