I created a little application that enumerates all possible hotkey combinations and calls the registerhotkey api on each one to see if it's available (of course cleaning up afterwards).
This successfully lists all hotkeys in use, but it doesn't tell which application (for example, Winamp global...
I created a little application that enumerates all possible hotkey combinations and calls the registerhotkey api on each one to see if it's available (of course cleaning up afterwards).
This successfully lists all hotkeys in use, but it doesn't tell which application (for example, Winamp global...
That appears to be the thread class. How are you starting the new thread? Do you use the Thread class or a BackgroundWorker (preferred by Microsoft)?
____________________________________________________________________________
There are only 10 types of people in the world. Those that know...
Hi, thanks for reading.
I need to read all the icons on the desktop, whether it's a file or a shortcut to a file (or program) into a bitmap.
I have searched google but come up empty handed. How do I read the icons (real files or programs And shortcuts to files and programs) into bitmaps in...
I guess for the record I'll say what I did to fix it.
I forgot that the TextRenderer.MeasureText makes a direct api call, and therefore you have to trim after the null char with something like:
Strings.left(result, instr(result, ControlChars.NullChar)-1)...
This is code to draw on a bitmap:
Dim bit As Bitmap = New Bitmap(Me.Width, Me.Height)
Dim g As Graphics = Graphics.FromImage(bit)
Dim myPen As Pen = New Pen(Color.Blue, 3)
g.DrawLine(myPen, 0, 0, Me.Width, Me.Height)
This draws a blue diagonal line of width...
Have you looked at this?
http://vbforums.com/showthread.php?t=184384
____________________________________________________________________________
There are only 10 types of people in the world. Those that know binary and those that don't
Brent
Hello again,
I am programmatically creating ToolStripMenuItems and I have it all working except when I assign it text. I first pass a path to the PathEllipsis function to make it fit in a smaller space and then assign the return to the Text property.
My problem is that when I step through the...
I'm using VB 2005
I've noticed if you click in a listview on something other that an item (assuming it's not full) then all the items get deselected. How do I prevent items from getting deselected?
I come from vb6 and I'm not used to this happening.
Thanks!
Brent...
I've had poor luck with built in sendkeys. I have a class wrapper called cSendKeys wqhich can be found at http://www.vbaccelerator.com/home/VB/Tips/SendKeys_using_the_API/article.asp .
It works for me, I hope it works for you...
You could try subclassing your window and seeing if the grid is selected and an arrow key is being pressed, then run your code.
____________________________________________________________________________
There are only 10 types of people in the world. Those that know binary and those that...
I guess for the record I'll state the workaround I used, and it works, becuase it uses equivalent functions.
Instead of using the JournalRecord hook with a GetMessage, I used a Keyboard and a Mouse hook separately. I had to change the code a smidge, but now it doesn't kill windows :)...
I just type tmpbook.Windows(1).visible = false
____________________________________________________________________________
There are only 10 types of people in the world. Those that know binary and those that don't
Brent
I've actually used this same code in other programs just fine. The procedure it's in is kind of long, I wonder if that could have anything to do with it. But why only the volume keys?
____________________________________________________________________________
There are only 10 types of...
You do need the getmessage hook or there is no way of detecting if the journal gets removed. If you'd like me to paste the code, I can, but it's nothing special, just standard hook code
____________________________________________________________________________
There are only 10 types of...
I am using a JournalRecord hook to monitor the keyboard and mouse, and a GetMessage hook to monitor if that hook gets removed with ctrl-esc or ctrl-alt-del so I can reinstall it. Everything works great except:
Small problem: hit the volume key on the keyboard and the entire system freezes, and...
Thanks combo, I added that last night and it worked perfectly!
____________________________________________________________________________
There are only 10 types of people in the world. Those that know binary and those that don't
Brent
Maybe I wasn't clear.
The problem is upon opening ANOTHER workbook while my program is ALREADY ACCESSING one. It is hidden until then, but opening another makes both visible.
Specifying the particular workbook my program is using to remain hidden is the only way to get past this issue...
Thanks for the reply, but someone in the VBA threads helped me.
The command is [Workbook Name].Windows(1).Visible = False
____________________________________________________________________________
There are only 10 types of people in the world. Those that know binary and those that don't
Brent
Thanks for the quick reply, I have a question though.
Will that prevent the other excel windows from being shown too?
____________________________________________________________________________
There are only 10 types of people in the world. Those that know binary and those that don't
Brent
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.