[Mono-winforms-list] SendKeys
Martin Hombauer
martin at fony.sk
Fri Feb 16 17:00:57 EST 2007
Hi,
I started to program in c# just a month ago, that means i am not really
good at it.
I thought SendKeys send a keystroke to an application, no matter what
type of toolkit or what application window it is. I'll take a better
look at this problem.
Thanks for your advise.
Andreia Gaita wrote / napísal(a):
> On 2/16/07, martin at fony.sk <martin at fony.sk> wrote:
>> Hi
>
> Hi there!
>
>> so 1.2.3 version is here and I tried to implement SendKeys.Send() into my
>> application, but it doesnt work.
>
> Hmm, from what I see in your snippet there, looks to me like you're
> mixing up toolkits. You seem to be using Gtk on your app, but then you
> try and use the SendKeys method from WinForms. These are two
> completely separate and unrelated gui toolkits. Invoking methods from
> one toolkit for controls on another toolkit will, if you're lucky,
> accomplish nothing, and if you're not, result in a nice *boom*, along
> with a pretty display of fireworks.
>
> Assuming my gtk premise is right, that you're seeing is the SendKeys
> method quietly ignoring your request because there is no winforms app
> running there. :p
>
> shana
>
>
More information about the Mono-winforms-list
mailing list