Forum guidelines
What does sender mean?
Posted By atf747 on 17 Oct 2004
Hi All, I am beginner of VB.NET, pls can anyone tell what sender mean in the code below. Thks Dim trkSpeed As TrackBar = CType(sender, TrackBar)
Re: What does sender mean?
Posted By Adam Erstelle on 18 Oct 2004  
In the .net documentation, you will find that CType will take an object as first argument (in your case it's sender), and get/return the object type identified as the second argument (in your case it's TrackBar).
Download Free eBooks


Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.