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).
Infragistics jQuery Controls


JetBrains ReSharper Ultimate
.NET code analysis, refactorings, navigation, unit testing, code coverage and profiling in Visual Studio, a bonus for C++ devs, bundled at 50% off.