Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

How do I programmatically click on a button?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-29-2006   #1 (permalink)
Philippe Lavoie
Guest


 

How do I programmatically click on a button?

I want to programmatically click on a button. How do I do this?

The obvious approach of my_button.Click(); doesn't work...

Thanks

Phil

PS It might be one of those cases were it's so obvious, you can't see it.

My System SpecsSystem Spec
Old 03-29-2006   #2 (permalink)
Andrew Ahearne
Guest


 

Re: How do I programmatically click on a button?

I think the approach to take is my_button.RaiseEvent(new
RoutedEventArgs(ButtonBase.ClickEvent) or something like that.

"Philippe Lavoie" <philippe.lavoie@cactus.ca> wrote in message
news:uBjFHZ1UGHA.6084@TK2MSFTNGP14.phx.gbl...
>I want to programmatically click on a button. How do I do this?
>
> The obvious approach of my_button.Click(); doesn't work...
>
> Thanks
>
> Phil
>
> PS It might be one of those cases were it's so obvious, you can't see it.



My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
start button right click - no response Damien Vista performance & maintenance 0 02-17-2008 01:42 PM
after we click button E-Mail is not junk Haidar Shubbar Vista mail 2 12-05-2007 08:18 AM
Force validation on button click Oleg Ogurok Avalon 0 10-16-2007 02:00 PM
Slide Show button does not do anything when I click on it Queviko Vista General 1 04-30-2007 10:39 PM
How to click a mouse button Jon Vista General 4 02-11-2007 09:29 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51