Browse by Tags

All Tags » visualbasic (RSS)

Recursive FindContol (Of T As Control) by Palermo4

I just posted code to allow recursive search for a control anywhere on the page. Here is the VB (Visual Basic) version: 1 Public Shared Function FindControl(Of T As Control) _ 2 ( ByVal startingControl As Control, ByVal id As String ) As T 3 Dim found...
Filed under: , , ,

Getting a GUID string during design time by Palermo4

If you ever need a GUID generated during design time (serviced components, unique ids), you could always use the [Tools]-[Create GUID] menu options in Visual Studio .NET 2003. However, I find that it is too many steps. I created a MACRO to do the same...

Getting into shape by Palermo4

Last week I was teaching a VB.NET class at Interface , and a student in the class took my classic illustration of abstraction and polymorphism to the next level. I always like using ‘shape’ as an abstract example, where ‘draw’...
Filed under: ,
More Posts