Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / November 2006

Tip: Looking for answers? Try searching our database.

Raising a button click

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max André Bündchen - 08 Nov 2006 16:27 GMT
A simple question: how to shoot a button click event from a method in a form
(assuming many events for a single button click)?
Herfried K. Wagner [MVP] - 08 Nov 2006 20:06 GMT
"Max André Bündchen" <nospam@microsoft.com> schrieb:
>A simple question: how to shoot a button click event from a method in a
>form (assuming many events for a single button click)?

Call the button's 'PerformClick' method.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

Kevin Spencer - 09 Nov 2006 15:29 GMT
Better yet, if you want code to execute via a Button Click, but also want
that code to run when other actions are performed, the code should not be
*part of* the Button Click Event Handler, but should be *called by* the
Button Click Event Handler. Unless these other operations necessitate a
programmatic click of a Button, a Click is not necessary.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.

> "Max André Bündchen" <nospam@microsoft.com> schrieb:
>>A simple question: how to shoot a button click event from a method in a
>>form (assuming many events for a single button click)?
>
> Call the button's 'PerformClick' method.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.