|
Does the underscore not require the shift key to have been pressed also?
|
|
|
|
|
I try that too
Private Sub Key_US_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Key_US.Click
SetActiveWindow(8975651603260375040)
keybd_event(VK_SHIFT, 0, 0, 0)
keybd_event(&H5f H2D, 0, 0, 0)
keybd_event(&H5f H2D, 0, KEYEVENTF_KEYUP, 0)
keybd_event(VK_SHIFT, 0, KEYEVENTF_KEYUP, 0)
|
|
|
|
|
That won't work. The keyboard, not the event system, decides what key is sent when shift is down or not.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
That work perfect for the at simble
Private Sub Key_AT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Key_AT.Click
SetActiveWindow(8975651603260375040)
keybd_event(VK_SHIFT, 0, 0, 0)
keybd_event(&H32, 0, 0, 0)
keybd_event(&H32, 0, KEYEVENTF_KEYUP, 0)
keybd_event(VK_SHIFT, 0, KEYEVENTF_KEYUP, 0)
End Sub
every key worked perfect
|
|
|
|
|
This looks nasty. Why did you do it this way, was it so you could have all control keys working ? You'd do better to store the character you're sending in the tag of the button and write one method to handle all event clicks.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Bob Beaubien wrote: the hex code for it H5F
That is the ASCII code, not the virtual key number.
Bob Beaubien wrote: SetActiveWindow(8975651603260375040)
that is horrible.
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Bob Beaubien wrote: SetActiveWindow(8975651603260375040)
You do know that the window handle for any window changes every time you create the window, right?
|
|
|
|
|
Hi Dave
No i dont no that the window handel change every time
so i guess i would have to check what it is every time and then use that ???
Thanks
Bob
|
|
|
|
|
you could use a variable and get the handle's value from Windows based on whatever it is you know about the window (or from the Process class if your app started it)
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Hi,
I have a Windows Form application that runs TopMost. In this application, there is a print function, which silently prints out a PDF file to the default printer.
At the load of the Form, since the TopMost property is set to True, the Start Menu is hidden, which is exactly what I want.
However, when the printing action is launched, the Start Menu pops up. This is triggered by the Taskbar (a little print icon is shown upon printing).
Is there a way to prevent this?
This application needs to run at an exposition, and will be launched on a touchscreen computer. The idea behind this, is that a customer can print a brochure of a product he's interested in.
Secondly, I want to disable all the default shortcut keys to close the application (like ALT + F4, CTRL + ALT + DEL, etc.).
Any ideas anyone?
Kindly yours
|
|
|
|
|
To prevent closing of your application just put e.cancel = true in the formclosing event of your main form.
You can't prevent it from being closed in the taskmanager.
As to keeping the taskbar hidden you can try to put me.bringtofront after the print code but I doubt that it will work.
I don't think there is much you can do against it.
|
|
|
|
|
Isn't there another way around?
Like, an auto closing MessageBox, displaying for example the text "Please wait. Your information is being printed", and when closing the MessageBox, returning to the startup page (which is also defined as TopMost)?
|
|
|
|
|
Visual Studio 2010 beta1 does not contains Crystal Report , any particular reason for that
Best Of Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Why not ask Microsoft, they will probably know better than the people here
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
tried, i thought beta 2 release might have , plus then what is the use of code project
Best Of Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
softdev_sup wrote: plus then what is the use of code project
Programming questions perhaps ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Actually i had some projects in vs 2005 in which i used crystal reports , so , if their is no Crystal reports in vs 2010 then i was thinking what to do for older reports should i go for the license for Business Objects etc. Microsoft or any other company will never say they did something wrong anyhow as told by "Dave" it could be bcz of Beta Version.
Best Of Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Probably because CR is not the product that is in Beta right now?
Just because it's in Beta doesn't mean that your looking at the final retail product package.
|
|
|
|
|
ok , thank you so much , i hope so it would be like that
Best Of Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Hi there,
I am working on projects which requires scanning data from scanner, format data,store selected data from scanned one to database. Any one with idea?
Thanks
|
|
|
|
|
Please only post your question in one forum.
Very rude!!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Yeah, you can start by defining your requirements better than this and working up a specifications document.
|
|
|
|
|
OCR maybe
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
I am currently trying to add a section of code to auto suggest the next message code (taking the message last one in the database and suggesting the next one to the user) in the text box. Any suggestions?
|
|
|
|
|
How are you presenting the suggested message to the end user?
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|