in the caption for the command button put an & sign in front of the letter you want to be the hotkey, then you can use "alt-letter" to activate the button
David Moore
dm7941@sbc.com
I just wrote a dirty bit of code for another question on the same thing :-)
On Error Resume Next
AppActivate "Notepad"
If Err.Number = 5 Then
Shell "notepad", vbNormalFocus
End If
Err.Clear
It uses the error returned by the appactivate to tell if an instance is already...
If you want a really dirty quick way, you can use the error returned by appactivate when a window does not exist
On Error Resume Next
AppActivate "Notepad"
If Err.Number = 5 Then
Shell "notepad", vbNormalFocus
End If
Err.Clear
If notepad is already open, this sets focus...
I grabbed this out of the MSDN, hope it helps:
Setting the AccessType Property: Using a Proxy Server
In order to make any kind of connection to the Internet, you must determine how your computer is connected to the Internet. If you are on an intranet, you will probably be connected to the...
You can also use the FileSystemObject Object
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.fileexists("filename.txt") Then
'Insert Code Here
EndIf
David Moore
dm7941@sbc.com
I need to connect to a remote data source via code using specific login name and domain. I can do it brute force using a call to a command prompt and net use:
net use f: \\computername\sharename password /user:domain\user
I can use the MPR.DLL to connect to resources, but I have not figured...
No, and No. Socket 370 is for celerons. Socket "A" is for athlons. There is a number designation for socket a, but the number escapes me right now. . .472 maybe? There are going to be dual athlon motherboards soon. The amd 760 chipset will do it, but it's expected sometime next...
Windows 98 is a plug-n-play OS, while NT is not. You will have to make sure your bios is configured for "non-pnp OS" so the modem will be given hardware addresses by the bios. Then you should be able to manually add the COM port and address the modem. This is assuming it is not a...
I grabbed this out of the "DIR" function of VB in the MSDN
This should do the trick for you. I'm not sure how high it is on the "elegance" scale :-)
' Display the names in C:\ that represent directories.
MyPath = "c:\" ' Set the path.
MyName = Dir(MyPath...
You could shell to the "kill" command. Very ugly, but if you know the process name or number it could be very effective.
David Moore
dm7941@sbc.com
I know of a reason the icons dissapear, but I don't really have a good solution. The icons dissapear when the print spooler goes bye-bye. The only solution I have found is to replace the spooler files. As for how to replace them, I user a good old fashion windows re-install. In the case of...
hehe, isn't microsoft getting sued for things like this? I hate to even say this because I personally used to LOVE netscape, but *gasp* you may be FORCED to use IE. I have had very poor luck with the latest versions of netscape, so much so that I finally gave up trying. I still run in under...
what is your current "KEYBOARD=" line in your system.ini? I'd bet that whatever file it points to should be replaced. I'd extract the appropriate file from the windows CABS. David Moore
dm7941@sbc.com
hehe, I answered this question in the NT server forum, here it is again.
there is a utility called con2prn.exe in the microsoft Zero Admin Kit. You can get the kit here :
http://www.microsoft.com/ntworkstation/downloads/bin/zak/zak.exe
it will let you connecto to printers from a batch file...
gpwolf is right. Its a specific issue with AMD k6-350 and up. With 350's it happens 30-70% of boots, with faster processors it quickly gets to 100%. It is really a microsoft issue, and they released a patch. The link is...
1. you could run a WINS server
2. you could run a DHCP server and configure the clients to use DHCP for wins resolution
3. you could also run a true DNS server, but that one I can't help you much with. Every one I have set up has been connected to the internet and I used the "defaults"...
There are a couple possibilities I can think of. If you have one or both devices set as cable select or you have a bad IDE cable you can get the yellow explanation mark. You could also try changing the bios to user type HDD instead of auto, if you have not already. You could also experiment...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.