Click here to Skip to main content
15,915,788 members
Home / Discussions / C#
   

C#

 
GeneralRe: One event, two different controls Pin
leppie16-Nov-02 3:47
leppie16-Nov-02 3:47 
Unfortunately no, unless you redefine the event in an inherited class, but that will be too much work. Best is just to make a common method and call that, and thats what you probably have already Smile | :)

Now here's a tip (maybe it will work for you): Instead of using a ImageButton, just use an LinkButton and add HTML to the Text property for the pic iow <img src="nudiepic.jpg"> Smile | :) . Then use the Click event of that. Now both are using the same event handler and Paul can be happy again.

Hope it works (all theory) Smile | :)

PS: start shouting for zim!

"I dont have a life, I have a program." Also, I won't support any software without the LeppieRules variable.
GeneralRe: One event, two different controls Pin
Paul Watson16-Nov-02 3:52
sitebuilderPaul Watson16-Nov-02 3:52 
GeneralRe: One event, two different controls Pin
leppie16-Nov-02 6:48
leppie16-Nov-02 6:48 
GeneralRe: How about WINAPI-SendMessage? Pin
Masaaki Onishi16-Nov-02 5:42
Masaaki Onishi16-Nov-02 5:42 
Generalfile list and list box problem Pin
djkno315-Nov-02 12:16
djkno315-Nov-02 12:16 
GeneralRe: file list and list box problem Pin
David Stone15-Nov-02 12:29
sitebuilderDavid Stone15-Nov-02 12:29 
GeneralRe: file list and list box problem Pin
djkno316-Nov-02 0:54
djkno316-Nov-02 0:54 
GeneralRe: file list and list box problem Pin
David Stone17-Nov-02 17:28
sitebuilderDavid Stone17-Nov-02 17:28 
QuestionHow to ignore events? Pin
Delegate15-Nov-02 8:27
Delegate15-Nov-02 8:27 
AnswerRe: How to ignore events? Pin
David Stone15-Nov-02 9:15
sitebuilderDavid Stone15-Nov-02 9:15 
AnswerRe: How to ignore events? Pin
Mark Conger15-Nov-02 9:16
Mark Conger15-Nov-02 9:16 
AnswerRe: How to ignore events? Pin
Martin Haesemeyer16-Nov-02 1:05
Martin Haesemeyer16-Nov-02 1:05 
GeneralRe: How to ignore events? Pin
Delegate18-Nov-02 6:46
Delegate18-Nov-02 6:46 
GeneralSocket.SetOption throw an exception on NT4 Pin
Sebastien Curutchet14-Nov-02 23:18
Sebastien Curutchet14-Nov-02 23:18 
GeneralMore DataGrid hassles. Pin
Christian Graus14-Nov-02 22:22
protectorChristian Graus14-Nov-02 22:22 
GeneralRe: More DataGrid hassles. Pin
Christian Graus14-Nov-02 22:37
protectorChristian Graus14-Nov-02 22:37 
GeneralRe: More DataGrid hassles. Pin
Mazdak16-Nov-02 5:36
Mazdak16-Nov-02 5:36 
GeneralRe: More DataGrid hassles. Pin
Christian Graus16-Nov-02 10:29
protectorChristian Graus16-Nov-02 10:29 
Questionhow to call a window application? Pin
Segal14-Nov-02 21:09
Segal14-Nov-02 21:09 
Generalpass an array from C# to a COM object Pin
gharrison14-Nov-02 21:05
gharrison14-Nov-02 21:05 
GeneralRe: pass an array from C# to a COM object Pin
Oleksandr Kucherenko15-Nov-02 3:21
Oleksandr Kucherenko15-Nov-02 3:21 
Questionusing "this"? Pin
zhoujun14-Nov-02 19:08
zhoujun14-Nov-02 19:08 
AnswerRe: using "this"? Pin
Christian Graus14-Nov-02 19:37
protectorChristian Graus14-Nov-02 19:37 
GeneralRe: using "this"? Pin
Kevin McFarlane15-Nov-02 2:17
Kevin McFarlane15-Nov-02 2:17 
GeneralRe: using "this"? Pin
MStanbrook15-Nov-02 4:40
MStanbrook15-Nov-02 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.