Geeks With Blogs

News INETA Community Speakers Program WTFNext's hosting!

View Stacy Vicknair's profile on LinkedIn

WTF Next? Dev ramblings from a master of nothing. VB.NET There are 15 entries for the tag VB.NET
Extending the behavior of MVC AuthorizeAttribute for activity-based authorization
If you’re familiar with NetSqlAzMan or CanCan, you know that checking permissions based on a user’s activities is easier to manage and more flexible that working with the roles a user is in. Whatever method you take to add activity based authorization, if you are working in MVC you will run into the issue that AuthorizeAttribute only cares about Users and Roles. The good news is that you can inherit from AuthorizeAttribute and easily adapt it to account for activity-based authorization. If you didn’t ......

Posted On Sunday, December 30, 2012 1:10 PM

Describing Dependency Inversion: Icing on the cake
Authors deserve more credit than they get. Coming up with a simple example to illustrate a principle is harder than it looks. Good authors have to do this all the time. They provide the examples that become anecdotal when describing the concept to a friend or colleague, and most of us, myself included, never take the time to think about the process. That was until today when I needed an example of Dependency Inversion to help explain the concept to a classmate. I must have thought up 10 or so bad ......

Posted On Monday, August 10, 2009 9:59 AM

List of influential VB’ers on Twitter
Antonio Chagoury, VB MVP, has constructed a list of Twitter accounts for VB MVPs, VB Team members, and others who are influential in the VB.NET community on his personal blog, CTO v2.0. This list has many great people who are not only talented in VB, but also who have great talents in many aspects of the .NET framework. I’m listed as a VB MVP, but if you don’t want the full list you can still check me out at However, I’d recommend checking out the rest of these guys too, ......

Posted On Wednesday, July 1, 2009 4:04 PM

How To: Create a plugin architecture in VB.NET
Creating a plugin architecture in .NET can be achieved in a few steps using the .NET framework. All it takes is a little time, a common interface and reflection. In this blog we’re going to look at how to make a simple plugin that performs basic integer calculations. As a disclaimer, this method is not CLS compliant. If that is necessary for you, then stick around and I hope to have a new version that maintains compliance posted. The code in this blog is mostly illustrative, and the full code is ......

Posted On Wednesday, May 6, 2009 1:19 PM

.NET Tip: Using String Constructors
When we use string so often for its value-like behavior, it is easy to forget that the String class comes with its own constructors, and that there are some tasks you can achieve with the string constructor that you might have overlooked otherwise. Repeating characters One of the more useful overrides of the String constructor is the ability to easily repeat any character a number of times. Here’s a brief example: Dim horizontalRule As New String("-"c, 100) Console.WriteLine(horizonta... Subsections ......

Posted On Monday, May 4, 2009 9:31 AM

Look Ma, I’m an MVP!
I’ll tell you, I never imagined it would happen this quickly, but I was nominated for the first time this quarter and also received the MVP Award for my contributions online and offline to the VB.NET community. I’m very honored and very thankful to everyone involved in getting me mobilized within the community, including Zain Naboulsi, J Sawyer and PJ Forgione (who nominated me). Also, I’d like to give some thanks for other great individuals I’ve met through becoming active in a great community: ......

Posted On Wednesday, April 1, 2009 11:21 PM

What Programming Language Should I Learn, In Response to Bill Tudor
A fellow GWBlogger, Bill Tudor, recently blogged about the progression he would suggest for someone who is getting started or looking to further themselves as a developer. Some small changes I’d suggest is that when it comes to learning an object oriented language, VB.NET is viable object-oriented, managed runtime language. Sure, the syntax is a bit different, but VB.NET is a competitor too. Also, an alternative to Scheme and Haskell could be F#, still leveraging the .NET framework. However, all ......

Posted On Monday, March 2, 2009 9:41 PM

Head First Design Patterns – VB.NET code examples on CodePlex
For those of you looking to get started with design patterns but reluctant because of language barriers, I started a project on CodePlex for the Head First Design Patterns book. The original code examples are in Java, and they have been made available in C# and C++ as well, which are all available on the book’s online page, Currently the project is only Chapters 1-8, but pending the big game on Sunday I will be finished up sometime next week. This is one ......

Posted On Friday, January 30, 2009 10:24 AM

Looking at regular expressions, behind and ahead.
This post is mostly inspired by a question I came across in the MSDN forums. Basically, say we had a set of data in a string that looked something like this and we just HAAAAAD to use regular expressions to get the info out (I’m insinuating maybe string.split would work better in this situation…) Dim dataToSearch As String = "-Cat-Dog-Meese-Chardonnay-" Well, the pattern is simple right? Just throw in a regex for "-[A-Za-z]+-" and we’re good to go. Dim reg As New Regex("-[A-Za-z]+-") For Each m As ......

Posted On Saturday, January 17, 2009 12:37 PM

WindowsClient.NET How Do I Videos for WinForms
As you may know, I do mostly WinForms development at my current position. Altogether, I do have an affinity for WinForms development over web development, mostly because simple websites were easy to make when I was young, but making a windows application was something I didn't do until much later on. Well, is a great Microsoft resource for those interested specifically in smart client applications, and the even better news is that the bulk of the videos for WinForms in particular ......

Posted On Friday, January 2, 2009 3:19 PM

Year 2008 wrap-up and my hopes for 2009
So, this post is probably more for my personal benefit than for anyone who may read, but I'm just going to highlight the good or bad of 2008 for my personal life and then visit my hopes for 2009. This year really marked the beginning of my involvement in the .NET community. I consider myself somewhere around a junior level developer, and by giving back to a community that has given so much to me, I know I have grown and learned more than had I just waited for knowledge to come to me. I got involved ......

Posted On Friday, January 2, 2009 12:48 PM

Free VB Coding Standards Reference Document
Clint Edmonson over at put together a collection of language specific coding standards reference documentation. This is a great starting point for your organization or a good resource to evaluate your current standards. View the article and get the goods here: Technorati Tags: coding standards,VB.NET,C#.NET ......

Posted On Monday, December 22, 2008 2:46 PM

.NET Tip: Match.Groups starts at 1 not 0
I'm currently studying for my first Microsoft certification exam, the 070-536, and during the process I came across this small quirk. Although most object arrays or collections in VB.NET start at 0, the Match.Groups collection starts at 1. This could potentially be a small frustration for those who don't use regex that often (especially with the added need to extract the information instead of just validating it). So, if you are extracting information using regex in the future, keep in mind your ......

Posted On Monday, December 15, 2008 1:37 PM

.NET Tip: Getting information from DataTable.DefaultView using RowFilter
So it may make sense to you how to fetch information from a DefaultView using RowFilter by binding the view, but what about when you just need to extract a value? After applying a RowFilter, the first inclination might be to use the DefaultView.Table.Rows to get information that is filtered. Well, that is ultimately wrong. The DefaultView.Table returns the table the view had originated from. The table you get does not have the RowFilter restrictions applied, and therefore returns the whole table. ......

Posted On Tuesday, December 2, 2008 12:38 PM

A quick look at VB10
As you may have noticed (perhaps on the Visual Studio Start Page), there’s a section of the MSDN reserved for the future of VB. The page is fairly bland at first glance, but there is a great reference to the new features of Visual Basic 10 available in the downloads that I dare say you should investigate. Of the upcoming news, some that stand out are multiline lambda expressions, “implicit line continuation” (AKA goodbye to the underscore, mostly), Auto-implemented properties (one line of code for ......

Posted On Friday, November 14, 2008 2:41 PM

Copyright © Stacy Vicknair | Powered by: | Join free