-
VB 2005: Don't declare a form MustInherit if you will be inheriting the form
If you create a form to be inherited and you try to declare a function or procedure as MustOverride: Protected MustOverride Function MyFunction() As String you need to declare that form MustInherit: Public MustInherit Class MyForm But doing this will prevent you from inheriting the form because you won’t see this form on the Inheritance Pi... Read More
-
VB 2005: Code generation in Visual Studio 2005
Visual Studio 2005 generates some code for us when we create our projects. Code generated by this tool can be found in a separate file with .Designer.vb extension. The code we make are saved in a file with .vb extension only. This is possible with the use of partial class. Let’s take an example, say Form1.vb. Code generated by Visual Studio... Read More
-
VB 2005: Building applications in VS 2005 IDE
Build Configurations New in VS 2005 IDE is the ability to choose which build configuration you want to use to build your applications. You can create your own build configuration besides the Debug and Release build configuration that VS 2005 IDE already provides. To choose which build configuration you want, you need to display the settings f... Read More
-
SQL Server 2005: Understanding decimal, numeric, float, and real data types
Since I came from a VB background, I get confused when I encounter these data types in SQL Server. In VB if I need to use a variable that can hold a number with digits to the right of the decimal point, I declare the variable as single or double. In SQL Server, you have decimal, numeric, float and real to choose from. So what is the differenc... Read More
-
SQL Server 2005: Query window in Microsoft SQL Server Management Studio
The query window has a lot more to offer than just outputting the results to grid. You can also output the results in text format and also save the results to a file. If you are in the query window, you may notice an additional toolbar on top of it similar to the one below: There are 3 buttons there that let you specify how you want your o... Read More