Representative Line
-
Was tracking down a bug in a winforms app that boiled down to this:
public SomeClass(){ // snip standard constructor shit SendKeys.Send("%A"); }
-
So, presumably, it performed a Select-All at some point?
Seems like a reasonable thing to do, for some definitions of All. Although, I daresay there is a better way to highlight/select stuff in code.
-
-
@eViLegion said:
So, presumably, it performed a Select-All at some point?
That's the code for Alt+A though.
-
Surely that depends entirely on what it is that is being constructed, and what point during construction that the keys are sent.
Without any other other info, such as what that class inherits from, what that class is supposed to do, the logic for why it is constructed, etc, there is no wtf.
-
Oh yep, ... right you are... What does Alt-A do in your app?
-
If you must know it's a constructor for another form. It's called by a couple different forms and none of them have a control responding to Alt+A, so it plays a ding sound, which was the bug I was trying to hunt down.
-
I'd have replaced it with SendKeys.Send("%A%A"), and closed the bug as "Resolved - More Cheerful"
-
@eViLegion said:
Resolved - More Cheerful"
I tried really hard to turn ("%A%A") into an emoticon, but I failed. \( x _ x)/
-
@dhromed said:
@eViLegion said:
Resolved - More Cheerful"
I tried really hard to turn ("%A%A") into an emoticon, but I failed. ( x _ x)/
oAo looks kinda like a very short dick...