VB help

Hi all, Hope someone can help me. I was doing some VB6 programming for a co-worker. I'm just learning this from the book so I don't know much. Here's what I did. I created a simple quoting matrix gride and the forms/formula works fine.

Windows Software 5498 This topic was started by ,


data/avatar/default/avatar15.webp

114 Posts
Location -
Joined 2001-02-27
Hi all,
Hope someone can help me. I was doing some VB6 programming for a co-worker. I'm just learning this from the book so I don't know much. Here's what I did. I created a simple quoting matrix gride and the forms/formula works fine. The only problem I have is that whe the form is open it overide all application and always place itself in the forground. What I mean by that is this VB program will not let any other apps be the active program. If I click to other apps, about 5 seconds later it force itself to be the active one. This is probably so easy for some of you to fix but what do I need to do to fix this?

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar06.webp

760 Posts
Location -
Joined 2001-11-10
Hi VB Guy,
For the record the best place to get coding help is probably Protonic if you want to ask a question. If you want sample code then head on over to PlanetSourceCode.
 
Actually it sounds like you have done something programatically to make that happen. By default VB applications are never modal. In fact it isn't even an option unless you're coding in VB 4.0 or lower and you've written a 16-bit application.
 
Make sure you're not using "AppActivate" or "SetFocus" using a timer. Also I suppose this could be the result of a dialog box set to vbSystemModal, does a dialog appear when the app hops back on top of everything else.
 
Another workaround would be to minimize it and or pause it's processes when it loses focus or is minimized.
-Christian[/url]

data/avatar/default/avatar15.webp

114 Posts
Location -
Joined 2001-02-27
OP
Thanks for the link. Got it figure out. Was using the timer and never told it to stop. Anyway thanks again, I'll be heading over the link to check it out.

data/avatar/default/avatar06.webp

760 Posts
Location -
Joined 2001-11-10
Ahh it's the old I forgot to stop the timer routine . I'm sure I've done that one too, but my personal specialty is never starting it in the first place .