Contents tagged with visualbasic
-
Recursive FindContol (Of T As Control)
I just posted code to allow recursive search for a control anywhere on the page. Here is the VB (Visual Basic) version:
-
Getting a GUID string during design time
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 thing, and assigned a keyboard shortcut to the macro (ALT-G).
-
Getting into shape
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’ is an abstract method. I ask the question “If you create a ‘shape’ with a ‘draw’ method… what will the shape look like?” Of course, shape is too abstract to know the answer.