msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Vbhide not hiding window

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB WinAPI
Author Message
G8oR



Joined: 27 Jan 2008
Posts: 1

PostPosted: Sat Jan 26, 2008 9:46 am    Post subject: Vbhide not hiding window Reply with quote

I have a problem for some reason with Vbhide on one XP computer. I have some
code running on 30 XP machines and it runs fine, but one XP machine doesn't
want to hide the window when executed.

The below code is an example of the line of code that opens the window and
does a task. (Dir is just an example)

Shell("command.com /c dir", vbhide)

On the 30 computers it works on, this code executes behind the scenes and you
don't see anything. On the one XP you see the command prompt window open, the
task runs then closes when finished.

Any ideas what could be causing Vbhide not to work on that one computer?
System setting, registry values, anything...

Thanks
G8oR

Archived from group: microsoft>public>vb>winapi
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 1081

PostPosted: Sat Jan 26, 2008 10:59 am    Post subject: Re: Vbhide not hiding window Reply with quote

"G8oR" wrote in message @uwe...
>I have a problem for some reason with Vbhide on one XP computer. I have
>some
> code running on 30 XP machines and it runs fine, but one XP machine doesn’t
> want to hide the window when executed.
>
> The below code is an example of the line of code that opens the window and
> does a task. (Dir is just an example)
>
> Shell("command.com /c dir", vbhide)
>
> On the 30 computers it works on, this code executes behind the scenes and
> you
> don't see anything. On the one XP you see the command prompt window open,
> the
> task runs then closes when finished.
>
> Any ideas what could be causing Vbhide not to work on that one computer?
> System setting, registry values, anything...

Check for a command.pif file which may have some settings; also, if you open
a command window and click the system icon in the upper left the menu will
have "defaults" and "properties" options which can be used to configure the
size and layout of the window. Doing that creates registry entries although
I don't remember the exact path offhand.

Keep in mind that the window style argument passed to the Shell function is
a request only; the app you start is always free to ignore it and make the
window hidden or visible and set the windowstate as it wants to. If the
user has configured their system to show DOS windows a certain way then you
shouldn't be changing that. It would be better to replace whatever you are
using the DOS commands to do with something under your control.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Hiding a Window In other forums, I have seen people state that hiding a window by class name is a bad habit because class names are always subject to change. But what other methods are there to hide a window? I use the ShowWindow or AnimateWindow APIs to hide a window,

Shell command not hiding window My shell is opening up a command line with arguments and executing it perfectly; however, regardless of what parameter I use for displaying the command window, i.e. vbHide, etc...it does not seem to be working. I've tried the above tw

Hiding Cursor Hi, I am trying to hide the mouse pointer. I assumed the API call was ShowCursor however this only seems to hide the cursor when it is over my form. I want to be able to hide it system wide. Any ideas? My code is as follows: Declaration: Public Declare Fu

Hiding disk drives Hello, How can I hide/show disk drive letters? Examples? Mika

Refreshing the screen after hiding a DLL form I am using VB6 (+ SP5) to make a program. I 'm using main EXE file that calls a DLL file. When I'm calling the DLL file I show Full screen form and on the top of it a small dialog form. after the user click on OK button, i need to hide the two screens of
Post new topic   Reply to topic    msvisual.com Forum Index -> VB WinAPI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group