borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (\'Quick Mixer\' added functionality? Please help.)Next Topic (putting text in textbox of .exe program) New Topic New Poll Post Reply
AndreaVB Forum : API : Showing VB Form Normal Size
Poster Message
matt_1ca
Level: Scholar

Registered: 27-03-2005
Posts: 42

icon Showing VB Form Normal Size

Does anyone know how I can make my my VB form show normally in the screen instead of being minimized?

I have created this VB executable which is triggered from a shell command from AutoCAD's built in VBA.

It does everything it is designed to do but it is a little bit annoying the first time it runs.

The reason is that when it runs the first time it is minimized and the user has to always find it and click it just to see it on the screen at normal size.

I have figured out how to make it stay on the screen (normal size) after the first time the user clicks it from a minimized size but the continued necessity for that first click just to make that minimized size show up at normal size on the screen is really the one that is making the program not completely pleasant to use.

I do not know how to do it     -- but I am pretty sure there is someone who knows.

Thank you so much for all the kind help you can give.

Matt

29-03-2005 at 01:27 AM
View Profile Send Email to User Show All Posts | Quote Reply
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 246
icon Re: Showing VB Form Normal Size

can you explain my more about

quote:
I have created this VB executable which is triggered from a shell command from AutoCAD's built in VBA.

i think i can help you

[Edited by humberto on 29-03-2005 at 08:41 AM GMT]
29-03-2005 at 07:40 AM
View Profile Send Email to User Show All Posts | Quote Reply
matt_1ca
Level: Scholar

Registered: 27-03-2005
Posts: 42
icon Re: Showing VB Form Normal Size

Thanks, I was able to figure out the solution to the problem about 10 minutes ago:

I realize now that I needed the vbNormalFocus as the second argument to the Shell function.

My previous code left that second argument blank which caused my program to be minimized.

Said code called from VBA of AutoCAD is shown below:

Sub traversing()
Dim dblS As Double, q As String
q = Chr(34)
dblS = Shell("C:\AUTOCAD-SETUP\Lisp_2000\traverse.exe", vbNormalFocus)
End Sub


Matt


quote:
humberto wrote:
can you explain my more about
quote:
I have created this VB executable which is triggered from a shell command from AutoCAD's built in VBA.

i think i can help you

[Edited by humberto on 29-03-2005 at 08:41 AM GMT]

29-03-2005 at 12:45 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Showing VB Form Normal Size
Previous Topic (\'Quick Mixer\' added functionality? Please help.)Next Topic (putting text in textbox of .exe program) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder