Geeks With Blogs

News INETA Community Speakers Program
GeeksWithBlogs.net: WTFNext's hosting!

View Stacy Vicknair's profile on LinkedIn


WTF Next? Dev ramblings from a master of nothing. VB .NET These posts relate to VB .NET, at least partially.
Exam 70-486 Study Material: Developing ASP.NET MVC 4 Web Applications
As a follow up to the post I made in preparation of the 70-480 exam, I’d like to continue the series now with a look at the 70-486. Just like last time, we’ll look at a list of resources based on the individual exam criteria! General Resources Microsoft Hands On Tutorial: http://www.asp.net/mvc/tuto... Building Web Apps with ASP.NET Jump Start: https://www.microsoftvirtua... Pluralsight ......

Posted On Wednesday, May 29, 2013 4:17 PM

How to access a WCF Service behind ISA Server 2006 Forms Based Authentication
I ran into this particular issue and didn’t find any answers to this specific question online. Here’s how I was able to accomplish this. A couple notes about my scenario: I used slsvcutil.exe to generate my service. I could not get connected to a service through “Add Service Reference” when connecting from outside the ISA server protected connection. This connection was tested and successfully retrieved data from a Windows Phone 7 device. I figured on the scale of success this was the platform that ......

Posted On Tuesday, January 31, 2012 10:25 AM

Test Data Builder pattern with object initializers in .NET
Test Data Builder Pattern When unit testing we often need to fill any POCO objects with enough data to satisfy the needs of the test. Redoing this in every test can quickly become a burden and slow down the testing process. Test Data Builder is a pattern that’s meant to help in just that situation. With test data builder you build a fluent interface that allows you to build out your POCO objects by only replacing the properties that you need specific values for. The other values are set to defaults ......

Posted On Sunday, October 9, 2011 6:59 AM

.NET XPath Returns No Results
When using XPath in .NET one of the gotchas to be aware of is that all namespaces must be named, otherwise you’ll end up with no results. Default namespaces that are specified with xmlns alone still need to be recognized in the XPath query! Say I had a bit of XML like what is returned from the QueryService web service in Sharepoint: 1: <?xml version="1.0" encoding="UTF-8"?> 2: <ResponsePacket xmlns="urn:Microsoft.Search... 3: <Response> 4: <Range> 5: ... 6: <Results> ......

Posted On Thursday, March 10, 2011 2:57 PM

Increase your Visual Studio 2010 keyboard kung-fu! Shortcut charts are available for VB.NET, C#, F# and C++
Get them now! Technorati Tags: VS2010,keyboard,shortcuts ......

Posted On Friday, April 16, 2010 1:28 PM

Automating SQL Server 2000 based database generation with OSQL in .NET
This week I had a need for NUnit based unit testing against a class that depended on a provided SqlConnection. Up to this point I had been able to mock external objects and their behavior based on interfaces, but with a SqlConnection I could not mock. There are some options for mocking the SqlConnection such as TypeMock, but I needed a realistic connection to test against. This also proved as a good method for building the expected DB interface. The solution that worked best for my environment (only ......

Posted On Friday, August 14, 2009 11:55 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 http://twitter.com/svickn. 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

How NUnit and TDD helped me today
My work environment is usually an anything goes, wild west of development sort of place. There are no rules imposed, just a “get things done” attitude. Because of auditing, source control was a necessity that got added to the mix. We use SVN through VisualSVN Server and TortoiseSVN as a client. Well, as a part of self improvement and to produce better more reliable code, I’ve taken up learning TDD for myself. Our current methodology of testing here is based mostly on WTFs per minute and copious prayer. ......

Posted On Wednesday, March 11, 2009 4:26 PM

Visual Studio 2010 and .NET Framework 4.0 CTP available once again
Maybe you’ve already noticed, but the download links are once again active for the VS2010 .NET 4.0 CTP. Tackle yourself some new team oriented features here: https://connect.microsoft.c... Technorati Tags: Visual Studio 2010,.NET 4.0 ......

Posted On Sunday, November 2, 2008 9:31 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, http://www.headfirstlabs.co... 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

Passing the 070-536 Revisited
So, yesterday I passed the 070-536, and I wanted to revisit my list of helpful insights. I wanted to add a couple new insights to the mix in particular. Here are the additional insights, and these will probably remain steadfast for all .NET exams: Go in with a deep understanding of core operations. If something is often used or is referenced in the training kit, get a really good grip on it. Isolate the differences in each answer. Look at what could be wrong, and use your best judgment. Finally, ......

Posted On Tuesday, January 20, 2009 9:27 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, WindowsClient.net 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

Free VB Coding Standards Reference Document
Clint Edmonson over at http://www.notsotrivial.net 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: http://www.notsotrivial.net... Technorati Tags: coding standards,VB.NET,C#.NET ......

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

Microsoft Exam 070-536: How I've prepared
Tomorrow I'm taking the 070-536 exam. This will be my first Microsoft certification exam, and I'm hopeful to pass but I won't be terribly surprised if I do not. From what I've seen around the forums online and other blogs, this exam is not one that is a breeze. So, here's a look at how I've prepared, and maybe some helpful links for those of you looking to take this exam in the future. After I take the test tomorrow I will review how I could do better, and what might be better advice to those looking ......

Posted On Friday, December 19, 2008 10:03 AM

.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

The improvements I take for granted in .NET 2.0 or greater
Sadly, our web server here at work is still running ASP.NET 1.1. Sigh. This hasn't been a problem for me, but this latest project requires a lot of work that we've done in newer versions. Also, I'm growing soft and using the improvements often. As a result, here's a list of improvements I really miss now that I'm having to work in 1.1 again: Code Snippets. I was working on a class to decrypt our query strings, and all of a sudden my snippets are completely missing! Not really, they just didn't exist ......

Posted On Tuesday, December 9, 2008 10:10 AM

.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

How-To: Enumerate the Internet Explorer Installed OpenSearch Engines
For my recent Launcher project, I was constructing a ribbon that would allow the user to search the web via their engines installed in Internet Explorer. The engines themselves are an XML document following the OpenSearch schema. For firefox, these xml documents just get stored locally. What does IE do with theirs? Well, IE sticks them in the registry. Why? Maybe someone else can answer that. Here's a brief look at how to get the search engines out of the registry. The following snippets of code ......

Posted On Wednesday, November 26, 2008 1:27 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

.NET Tip: Must initialize My.User before use in console based applications
If you make use of the My.User object in a WinForms application, you can just dive right into it and start using it right away, however, if you add this to a new console app it returns a blank response for My.User.Name: Console.WriteLine("User: {0}", My.User.Name) Console.ReadLine() And you'll see this when you run it: To get around this problem, all it takes is an initialization that gets called automagically in WinForms: My.User.InitializeWithWindo... Put that before you use the object for ......

Posted On Thursday, November 13, 2008 4:25 PM

BRDNUG Meeting this Wednesday, November 5th
Just a reminder about the upcoming BRDNUG meeting. We'll be looking at ADO.NET data services. The whole summary is available here: http://www.wtfnext.com/arch... Technorati Tags: BRDNUG,ADO.NET Data Services ......

Posted On Tuesday, November 4, 2008 9:58 AM

October Baton Rouge .NET Users Group Meeting (in November)
NOTICE: Due to a scheduling conflicts as Halloween activities the October meeting has been moved 1 week to Wednesday, November 5th. Sorry for any inconvenience. .Net User Group Meeting location: At Lamar Advertising Wednesday, November 5th, 2008 5:45 PM - 8:15 PM Sponsored by: Portico Learning Solutions Presenter Jeremy Beckham BIO: Jeremy is a Senior Developer for High Power Consulting, Inc. and has over 5 years of experience in .Net and SQL Server development. He's worked on projects ranging from ......

Posted On Tuesday, October 28, 2008 11:16 AM

RegularExpressionValidator will not stop the empty string
I’ll be honest that this did happen to me, and thankfully the MSDN straightened me out. For those of us who normally program for winforms, sometimes the switch to an ASP.NET project can prove to be a whole new world. For instance, I was working on a straightforward single page in ASP.NET 1.1 so that members of the same project could gather some information easily. The form itself had one field, and I wanted to ensure that the field was a number only. I added a RegularExpressionValidator and pointed ......

Posted On Friday, October 10, 2008 8:45 AM

Custom Code Snippets Series Part 2 of 3: The “Easy” Way
Here we are at part two of the Custom Code Snippet Series. In the previous part we covered how to make your own snippet by creating an XML .snippet file and adding to it the necessary content to get a custom snippet up and running. This time around, we’re going to cover the “Easy” method of creating custom code snippets: through a GUI. Thankfully, the MSDN itself has a Code Snippet Editor for both Visual Basic 2005 and 2008 available at the following links. This tutorial will make use of the Visual ......

Posted On Monday, October 20, 2008 10:58 AM

Custom Code Snippets Series Part 1 of 3: The “Hard” Way
In this brief series I’m going to go over creating your own custom code snippets for use in Visual Studio 2005 or later. We’ll be using the XML Schema from Visual Studio 2005, but I assure you it works for both. This series will contain three parts: The “Hard” Way The “Easy” Way Practical Example of an XML Snippet The reason we’re going to call this version the “Hard” way is because there are snippet generator apps available, including one made by the teams themselves. So before we begin, I’d like ......

Posted On Tuesday, October 14, 2008 1:12 PM

Mono 2.0 Released
For those Linux devs who don’t have something adamantly against Microsoft, Mono 2.0 has been released! From the release notes: Mono 2.0 is a portable and open source implementation of the .NET framework for Unix, Windows, MacOS and other operating systems. Release Date: October 6th, 2008 Major Highlights Mono 2.0 is a major milestone in the Mono project, and it supports the following features: Microsoft Compatible APIs ADO.NET 2.0 API for accessing databases. ASP.NET 2.0 API for developing Web-based ......

Posted On Tuesday, October 7, 2008 1:09 PM

Snippets as a natural progression
If you use Visual Studio 2005 or later and you don't use snippets, you are missing out on yet another time saving feature. Snippets effectively allow you to drive your programming experience even further via Intellisense and keyword combinations, making repetitive tasks such as defining properties, encrypting and decrypting information, and connecting to data as easy as a few keystrokes. Yesterday I was thinking about how much snippets make sense from the perspective of programming. I remember when ......

Posted On Tuesday, October 7, 2008 8:43 AM

At what level is Source Control Management unnecessary?
I work on a two programmer team for a federal credit union. I’ve been here for six months now, and I’d like to explain the problems that I have with working here to you guys. Limited design experience. I have two years professional programming experience, and I’m finding road blocks when I try to learn more from the “Lead” programmer. For me, programming is a passion and something I want to know more and more about. For him, programming was a means to a job that he doesn’t want to get more out of. ......

Posted On Monday, October 6, 2008 1:21 PM

Wondering how to deploy an App in Express Editions?
So you’ve got your free fancy express edition for VB or C#, you’ve created your new godlike application that you’ve just got to get out to the world and then the heavens rain all over your parade because you can’t find those other templates necessary to deploy your application. Now is not the time to give up, you can still get the job done with Click Once deployment, and Mary Lee over at the Visual Basic Team’s blog has got the tutorial to show you how. http://blogs.msdn.com/vbtea... ......

Posted On Friday, October 3, 2008 10:05 AM

Microsoft to share its secure development practices
I just checked my google reader, and got a very interesting update from Zain Naboulsi, the Developer Evangelist for the louisiana, texas and arkansas region. According to Steve Lipner, Microsoft's security development lifecycle will be presented to a collection of consultant agencies at first, and then broadened to envelop more and more training after its inaugural year. In addition, Microsoft's SDL Threat Modeling tools will become freely available in November. To read the Q and A with Steve, check ......

Posted On Wednesday, October 1, 2008 9:21 AM

The road to functionality paired with simplicity!
Hey all, So here I go, to make my blog more effective, less costly, and overall updated more frequently, I am relocating. You don't have to relocate so much, the website still has the same address. Just in the background I'll be fueled by geekswithblogs, providing myself a free blog hosting service that focuses on operability and overall freedom, without me having to write it all personally. There will be some changes to how the blog operates because of this. 1. No more specific sectioning for tutorials. ......

Posted On Tuesday, September 30, 2008 1:25 PM

Copyright © Stacy Vicknair | Powered by: GeeksWithBlogs.net