Justin Cooney

Web Development Tips and Examples

Category: VB.NET

  • Recently I was looking into some old VB6 code and for my own reference decided I’d put together a simple summary of how VB6 data types map to .NET data types. This is nothing new, but I thought it would be handy to have a quick comparison chart available. I obtained the information for this chart…

  • Introduction: Visual Studio allows developers to quickly put together a WebForms page simply using drag and drop options from the Visual Studio editor. Binding form controls is mostly a simple matter of attaching a DataSource and setting your controls to reference the correct field in the DataSource. Binding a GridView control can sometimes get tricky when…

  • VB.NET supports several type conversion functions. Widening conversions are handled by the compiler and don’t need to be explicitly written, but narrowing conversions require use of VB.NET’s type conversion functions. The three type conversion functions are: DirectCast CType (and CInt, CStr,…Cxxx) TryCast The compiler may not report an error if you code a narrowing conversion…