Visual Studio 2008 VB.NET

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
Comments
22
Possible solution:
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.
I've already tried all of it :(. Seems like something is wrong with services. I managed to get keys to work apart from 'space', which is all I need tbh lol.

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.

:(
Parent
Don't have VS2010 installed atm so can't test for shit. Have you tried the following?

SendKeys.Send("^{ }")


Edit: I'd suggest using KeyPress instead though if possible.
Parent
probably just a problem with your screensize
try to enable 4:3 in your screen menu
VB.NET :X
its like playing a 8 years old game...oh wait
If {tab} works then try {whitespace}, I've never used that feature tho in VB but in coding its called whitespaces, not just spaces. Worth a try ^^
I have Visual studio 2008 :
System.Windows.Forms.SendKeys.Send(" ")

DOES work ...
Not for me :s...
Parent
I don't know what to say then - but I just tested it and it works fine :/ does it crash when you run through it?
Parent
Nope, just does nothing... everything is correct like I said. Some weird bug or something. You know how to shell and application and control it? For example entering text into textbox on external app?
Parent
Visual Studio 2008 VB.NET

kill yourself
why is that my friend?
Parent
move to c#, problem solved.
arent virtual key codes same for any language? http://delphi.about.com/od/objectpascalide/l/blvkc.htm

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..
I had no internet when so had to use 2008. I agree, 2010 is nice, but it's a pain in the ass trying to get 2010 solutions to work in 2008, seriously.
Parent
thought u were using C# mate? :p

should make a version of ur slac launcher in python so that the nix version comes out it will be easier to make :p
Parent
I done a lil bit in it :p, just Windows apps I use VB :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.
Parent
well that makes sense i expect that chaplja doesnt want people messing around with it

if i knew how to make python gui's i'd give it a go
Parent
xD, youtube > tutorials ;)
Parent
Back to top