I'm trying to get hotkeys to work in my application (to make it visable if its minimized). I got it to work except that they only work once... the second time you try it does nothing.
here is the code i was using
Public Enum HotKeyModifiers As Integer
MOD_ALT = &H1
MOD_CONTROL = &H2
I have an application which uses hotkeys which are to be defined by the user. It is a combination of 2 keys, either CTRL, ALT, SHIFT as one hotkey and the F* Function keys as the other (e.g. CTRL + F1, ALT + F2 or SHIFT + F8) As stated these are then chosen by the user before a global keyhook is put in place to listen for them and trigger an event. In my app I have all my function keys as follows:
Public Const VK_F1 = &H70 Public Const VK_F2 = &H71 Public Const VK_F3 = &H72
I recently had to format my PC, So I moved my project files and build files to my External Hard Drive, and continued to work on my project..I started to receive emails saying that the application is saying "Cannot download the application. The application is missing required files. Contact application vendor for assistance." After clicked view details, I found this:+ Downloading file:///C:/Users/myuser/Downloads/Browser.application did not succeed.I was confused, the .application file is not in Downloads, its supposed to download it from my website. And if I were to open my project on a computer with it already installed, it won't check for updates - it opens really quick without the "Viewing Application Requirments" window.
I recently had to format my PC, So I moved my project files and build files to my External Hard Drive, and continued to work on my project..I started to receive emails saying that the application is saying "Cannot download the application. The application is missing required files. Contact application vendor for assistanc
I've written an application using Visual Basic 2008 Express. It's intended for widespread use on individual PCs running Windows XP (Service Pack 2) and later. It has been found to work nicely with XP, Vista and Windows 7. The queston: Will it work on the Windows operating systems used on tablet/slate computers - particularly Windows CE 6.0R3 and Windows 7?
I am calling a stored procedure that calls a bcp command from a visual basic 2005 application to export data to excel. When I publish the app on my machine the procedure works fine. However when I attempt to install on another users machine when I push the button to call the event ..the export does not happen. I am trying to install from a network and the other modules work fine.
My application is looking for .Net Framework 4.0 but I only have 3.5 on my machine so I get an error.How can I get my application to work on 3.5 only?Is there some code which is 4.0 code only? which creates this error?As this is corperate computer I can't upgrade to 4.0 myself either.
I am trying to construct a data management application for work. I had this working fairly well then moved over to VS 2008. When I am submitting my data via the button it is giving me a null exception error on the call sub.. Here is the code.[code....]
I have an application developed in VB 6.0 and VBA that uses latest Office 32 bit version. But since this application is 32 bit, it does not run on systems where 64 bit Office versions are installed. What is the best strategy I have to adopt to port this application to 64 bit. We have a mandate to use VB.NET and minimal (as much as possible) code modification from VB/VBA to .NET 64 bit. Please suggest the best option I can use so that I can leverage all best practices for this porting.
I have creating timekeeping application, I was used drag and drop for my datagridview. During build I can add, edit and delete records. But when I published and run there was an error saying (see below).
I have consume for almost 2 days to fix this problem but no luck.
I've developed a small windows form application in Visual Studio 2005. I have tested the application on a completely fresh install of Vista 32-bit as well as Vista 64-bit and it works fine... But when I copy the application onto an XP machine the following problems occur:The application no longer has its icon, just the default .exe console box icon Whenever I try to open the application, absolutely nothing happens
I've almost finished a binary clock, but I have one problem. The user should choose between two different backgrounds, named binary.jpg and binary 1600.jpg
Dim Bild1 As New Bitmap(Application.StartupPath & "/Bilder/binary1600.jpg") Picturebox1.Image=Bild1
I just completed building an application that reads and writes to a MS Access database located on a network drive. It works great on the computer that I created it on, but when I try to run it on another computer it fails to initialize. I'm not sure if there's a setting in the database I need to change,
In an other post of mine, a discussion was going on to change the extensions of mdb so user does not recognize it as Access DB (this is important for me) I tried this and changed extension to xrd, ran the application and it gave error. Off course it could not find my mdb. How to handle this? Do I need to make all the connections again?
The following is an application sample downloaded from the Microsoft website.It shows how to use the serial port.However, it does not work as written.It sends data OK.When it receives data from the serial port and attempts to display it in textBox2, the program locks up and eventually shows an error message having to do with a thread error..Does anyone understand why this "sample program" written by Microsoft does not work?I see many posts about problems attempting to read the serial port and generating thread errors,[code]
I seem to have a bit of a problem with the ICShartEditor text editor. It works fine for me in a Windows Forms app, except that if I have a button (or any other control) on the same form that defines a hotkey (like ALT-S for a Save button), then whenever I try to type 'S' in the text editor (or whatever the hotkey might be), then it triggers the hotkey rather than adding the character to the text.What appears to be happening under the hood is that all the ProcessMnemonic() methods for all controls of the form run, so those methods kick in and handle the keypress, which I would think should only happen if a key like the ALT-key is pressed.
I'm writing a program where there's a toolbar at the top, and to hide the toolbar you click "Hide Toolbar", but I need to create a hotkey to make it come back.
I have a code to detect Flashdrive USB insert. It works, but how can I detect a disconnect? You can google for any code to detect usb flashdrive insert, it's easy, but how disconnect.I needed to have a hotkey for a button function. I made an insivible menustrip with the code with the hotkey. How can I make the hotkey work EVEN if I alt tab out of the program (As long as it runs background)?
Now my question is, is it possible to use Hotkeys and ScreenCapture in a Fullscreen game?If so, how?What im acutaly trying to do is a program to take a screenshot ingame (for some reason, this game doesnt have an option to take screenshots ingame.. Bad Company 2)
I have been trying over the past few days to make a program sit open on the computer, waiting for a key press (which will be the hotkey). When the key is pressed, it will execute a peice of code and minimize itself. Im really sorry if this is too simple but im stumped over this one. I have searched google alot but no luck
So: I need to know how I can have the program 'monitoring' or 'looking for' a certain key press while it is doing something to tell it to stop, bearing in mind when the program actually starts it will minimise and stay minimised untill this hotkey is pressed that makes it maximise itself and stop the program.
I've written a simple WAV player in VB 2010 - a Windows Form App with no menus. I'm trying to create a hotkey, like CTRL-D that would make a text box visible. Typing the correct password in the box will expand the form and show some Administrative functions. I'm having issues creating the hotkey with more than one key.I've got the following code, but it does not work. I do have KeyPreview set to True.
Private Sub _KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Control And e.KeyCode = Keys.D Then txtPWD.Visible = True
I've also tried
If e.Keycode = Keys.ControlKey & e.KeyCode = Keys.D
and many other variations including changing to ALT and SHIFT but nothing seems to work. If I remove one of the Keys, it works just fine.