UserControl Events


OS: Windows XP Pro
Lanaguages: C#
Program: Visual Studio .NET 2005

hi ppl. im lookoing for help, i have a problem. i created my usercontrol and it has nothing on it but a listview that is filling my whole user control.. and some little pictureboxes arround it... what ever that does not matter... the thing is that when i add the control to a form that im using i use an event... "Enter" ... so when it become ActiveControl or the focus enter,,,it trigger the event... but that never happens... then i knew why.. and thats cuase the listView is getting that event,,, and not the usercontrol...so im looking the way to merge the listview in my usercontrol so when u click the listview that my usercontrol contains my control trigger the enter event....


Answer this question

UserControl Events

  • jonsanity

    thanks for the help man but im lost :( im desperate i cant understand how it works :'(... been reading it over and over ,, also found a tutorial on microsoft but i cant make it work... i dont know how i can make that when u click my listview it calls the event enter of the user control ... im looost :(

  • LMiranda

    hi,

    you can take a look to this article

    http://www.codeproject.com/csharp/delegatesandevents.asp

    hope this helps



  • pongopiprakash

    :( does anybody knows how to help me on this issue :(

  • Kal_Torak

    thanks man, i thought i have to do that but i dont know how :( ... i looked arround in google how to trigger events manually and i didnt found much help ... do u know how can i do it :)

    thx

    mig16

  • rajuraju

    fire your self the event..

    in the enter event of the listview fire your control enter event..


  • UserControl Events