﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / API  / Why vbhide don't work in Windows Vista? / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 29 Jul 2010 18:46:50 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Why vbhide don't work in Windows Vista?</title><link>http://www.a1vbcode.com/vbforums/Topic23790-5-1.aspx</link><description>That's nice work man..&lt;br&gt;Thank you for sharing this with us....&lt;br&gt;May Lord bless you ...</description><pubDate>Fri, 07 May 2010 02:52:22 GMT</pubDate><dc:creator>borrows123</dc:creator></item><item><title>RE: Why vbhide don't work in Windows Vista?</title><link>http://www.a1vbcode.com/vbforums/Topic23790-5-1.aspx</link><description>Welcome to A1vbcode &lt;STRONG&gt;simrita&lt;/STRONG&gt;.  &lt;IMG src="http://www.a1vbcode.com/vbforums/Uploads/Images/a557d579-cfdc-4c03-8aca-39a3.gif"&gt;&lt;P&gt;&lt;div class="Quote"&gt;&lt;b&gt;simrita (9/30/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;The next code works in XP but not in Windows Vista:&lt;BR&gt;&lt;BR&gt;Shell "c:\windows\system32\calc.exe", vbHide&lt;BR&gt;&lt;BR&gt;In XP execute the calculator (hide)&lt;BR&gt;but in windows vista show the window's calculator.&lt;BR&gt;&lt;BR&gt;Private Sub Form_Load()&lt;BR&gt;ShellExecute hwnd, "open", "C:\windows\system32\calc.exe", vbNullString, vbNullString, vbhide&lt;BR&gt;End Sub&lt;BR&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;You don't need to full path to Calc.exe because its in the Windows path.&lt;/P&gt;&lt;P&gt;Shell "calc.exe", vbHide&lt;/P&gt;&lt;P&gt;According to &lt;a href="http://www.vbforums.com/showthread.php?t=500993&amp;amp;" target="_blank" class="SmlLinks"&gt;this&lt;/a&gt;. You can not hide the calculator in either XP or Vista with &lt;STRONG&gt;Shell&lt;/STRONG&gt; or &lt;STRONG&gt;ShellExecute&lt;/STRONG&gt;. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Tue, 30 Sep 2008 07:23:17 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RE: Why vbhide don't work in Windows Vista?</title><link>http://www.a1vbcode.com/vbforums/Topic23790-5-1.aspx</link><description>I've replied to your other topic in the main VB forum. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Sat, 15 Dec 2007 15:01:50 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>Why vbhide don't work in Windows Vista?</title><link>http://www.a1vbcode.com/vbforums/Topic23790-5-1.aspx</link><description>The next code works in XP but not in Windows Vista:&lt;br&gt;&lt;br&gt;In XP execute the calculator (hide)&lt;br&gt;but in windows vista show the window's calculator.&lt;br&gt;&lt;br&gt;I tried in Windows Vista as administrator, but I get the same result.&lt;br&gt;&lt;br&gt;Please, help me.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Private Declare Function ShellExecute Lib "shell32.dll" Alias _&lt;br&gt;"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation _&lt;br&gt;As String, ByVal lpFile As String, ByVal lpParameters _&lt;br&gt;As String, ByVal lpDirectory As String, ByVal _&lt;br&gt;nShowCmd As Long) As Long&lt;br&gt;&lt;br&gt;Private Sub Form_Load()&lt;br&gt;  ShellExecute hwnd, "open", "C:\windows\system32\calc.exe", vbNullString, vbNullString, vbhide&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Sat, 15 Dec 2007 00:43:17 GMT</pubDate><dc:creator>microtroyan</dc:creator></item></channel></rss>