PC Review


Reply
Thread Tools Rate Thread

How to connect Click-Event with a user-control on a form?

 
 
Jan Liße
Guest
Posts: n/a
 
      11th Dec 2003
I have a previously selfcreated user-control which contains a picturebox and
some additional code, also included is a method that changes the displayed
Image in the Picturebox
on Clicking. This works fine so far. Now I place this user control on a new
form and i want it
to fire a Click-Event on my form when a user clicks it. The Image in the
Pictuebox changes on clicking but the Eventhandler on my form doesnt fire
anything on clicking! I need a possibility for the users of my
user control to write their own code for a click-event on that control.
I read something about user controls being special with events but i dont
get to the point yet...
Thanks in advance for your help,
Jan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Event for Form on a tab control: Force User to Click Save button Jinjer Microsoft Access VBA Modules 7 7th Oct 2009 07:00 PM
Click Event for User Control Latha Microsoft Dot NET 1 17th Sep 2007 04:35 AM
GridView Control Image button: How to connect to a click event keithb Microsoft ASP .NET 1 6th Jun 2006 12:07 AM
User Control Button Click event not firing when placed in a Web form ~~~ .NET Ed ~~~ Microsoft ASP .NET 2 7th Mar 2005 02:12 AM
User control Click Event handling Tamir Khason Microsoft C# .NET 2 23rd Nov 2003 05:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 AM.