Visual Studio 2008 VB.NET
•
26 Jan 2011, 10:06
•
Journals
Does anyone know what the code for SPACE is for VB.NET? I've only ever used SendKeys using VB6.0 and having trouble finding workable keys.
I have all the A-Z working, and also {Tab} works just fine, it's just space isn't working. I'm using Windows XP so it's not admin/uac.
System.Windows.Forms.SendKeys.Send("{Tab}") - fine
System.Windows.Forms.SendKeys.Send("{Space}") - no
System.Windows.Forms.SendKeys.Send(" ") - no
System.Windows.Forms.SendKeys.Send("13") - no
Simple problem, and I think it may be something with install or services I disabled...
Anyone know anyhoo?
Cheers
I have all the A-Z working, and also {Tab} works just fine, it's just space isn't working. I'm using Windows XP so it's not admin/uac.
System.Windows.Forms.SendKeys.Send("{Tab}") - fine
System.Windows.Forms.SendKeys.Send("{Space}") - no
System.Windows.Forms.SendKeys.Send(" ") - no
System.Windows.Forms.SendKeys.Send("13") - no
Simple problem, and I think it may be something with install or services I disabled...
Anyone know anyhoo?
Cheers
http://stackoverflow.com/questions/3313435/vb2010-keydown-events-not-executing
All of that send key shit:
http://msdn.microsoft.com/en-us/library/8c6yea83%28v=vs.85%29.aspx
Also why don't you use C# instead? It's so much better than VB.NET I'm glad they dropped VB.NET after 1 year and gave C# instead while I was studying.
VB6.0 works straight away.
I have tried c#, it was nice, but my main focus is on VB.NET, I also do some C/C++ coding, but that's very poor tbh.
Don't understand why this problem is bothering me tbh, I've just written around 150 lines and it worked without even having to debug, then it comes to sendkeys (lol) and it errors, without giving details. Even catching the error displays NOTHING.
:(
SendKeys.Send("^{ }")
Edit: I'd suggest using KeyPress instead though if possible.
try to enable 4:3 in your screen menu
its like playing a 8 years old game...oh wait
System.Windows.Forms.SendKeys.Send(" ")
DOES work ...
kill yourself
but ppl are right.. why code in vb, also think about upgrading to 2010 it has naice improvements + wpf powered so v responsive. Although it matters what .NET version you are compiling to not the VS version like some people here seem to think..
should make a version of ur slac launcher in python so that the nix version comes out it will be easier to make :p
That SLAC launcher is becoming so complicated lol... SLAC is annoying also, doesn't like me interacting with it whatsoever, always freezes on me.
if i knew how to make python gui's i'd give it a go