Hi, i am having a bit of trouble condensing some basic drag and drop code and i am hoping that someone can help me. to reduce code i have created a subroutine to handle the proces, however i still have a large number of event handlers calling this process. I am aware that i can create my own event handler and make it handle a number of different objects. However the process requires a paramater pass of the initiating object, which i assumed was the sender object of the event handler, however i can not access any of the properties of the sender object. Can anyone please tell me how to do this.
FallenPaladin
0
Junior Poster in Training
Recommended Answers
Jump to PostYou can handle the click event of many controls (TextBox, Buttons,... etc) with just one method what you need is to identify the sender (Who's?) Button or TextBox or what and then decide what to do!!
All 4 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
FallenPaladin
0
Junior Poster in Training
Ramy Mahrous
401
Postaholic
Featured Poster
Ramy Mahrous
401
Postaholic
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.