by
bill via
@ Head - Bill McCarthy - VB
on
1/5/2009 12:56:32 AM
XML is very flexible and somewhat permissive in what it allows. Consider this piece of XML: el = < item > some values < first > one </ first >< second > two </ second ></ item > The element named item can contain both child elements and a text value. Thankfully this kind of XML is rare: it poses a heap of whitespace formatting issues, and the value itself can reside in any co ... [ read more ]
|
|
by
jwooley via
ThinqLinq
on
1/3/2009 3:32:00 PM
A couple months ago I added a feature to this site to build a Site Map for this site dynamically based on the information from the database for posts and files for the downloads. If your not familiar with how Sitemap files can help your site searchability, Google has a good documentation about Sitemaps in their Webmaster tools.
The SiteMap Protocal is a rather simple XML document consisting of a set of url nodes that consist of the following:
loc - URL for the page link
l ... [ read more ]
|
by
bill via
@ Head - Bill McCarthy - VB
on
1/3/2009 2:15:54 AM
When I’ve started new Visual Studio projects on my Vista x64 box, the Company field would always show up as “Microsoft”… somewhat presumptuous and definitely annoying. At first I thought the problem was with the templates, but upon inspection they had the correct template parameters, $registeredorganization$. A quick look in my registry and those keys looked right; then it dawned on me. Visual Studio runs as a 32 bit process, not 64, so it effectively looks in : HKEY_LOCAL_MA ... [ read more ]
|
|
by
VBTeam via
The Visual Basic Team
on
1/2/2009 6:31:32 AM
On behalf of the Microsoft Visual Basic team, I'd like to wish all of our readers a happy & healthy new year. We truly enjoy getting to know you through your comments and emails, so here's an opportunity to say "thanks"! As we move forward to 2009, I thought it would be interesting to take a look back at "the best of 2008". Here's a list of the most popular posts each month (based on the # of aggregate vie ... [ read more ]
|
|
by
VBTeam via
The Visual Basic Team
on
12/31/2008 11:51:00 PM
MSDN Magazine Editor in Chief, Howard Dierking, announced a number of changes to the magazine in the January 2009 Editor's Note . Among that list of changes was the following excerpt:
"Furthermore, we recently began moving all of our article code samples to MSDN Code Gallery . This will allow our team to be much more agile in managing and updating code samples as needed. In that agility, we are now also able to translate all C# code samples into Visual Basic."
* GOING FORWARD, AL ... [ read more ]
|
by
Mike McIntyre via
Mike McIntyre
on
12/31/2008 11:35:00 PM
One puzzle SQL developers face from time to time is creating a calendar containing a series of days.
Below is some SQL code that will create an in-memory calendar for every day from a begin date to an end date.
By adding more columns to the #Calendar table you could store more information about each day, store hours and pay rate to do pay calculations, or other data you need to capture and process in a series of days.
The example creates a calendar for 2009. Happy New Year!
... [ read more ]
|
|
by
Julie Lerman via
Julie Lerman
on
12/30/2008 8:13:49 PM
After a lot of head scratching, I was finally able to accidentally duplicate a mapping
issue reported to me by a reader of the Rough
Cuts version of my book, Programming Entity Framework . Then after a lot more head
scratching, I was able to discover the pattern and workaround for this problem, which
has also surfaced a number of times in the forums.
The issue is when creating associations where one of the ends is a 0..1 (zero or one)
and one of the entities involved is derived from anoth ... [ read more ]
|
by
VBTeam via
The Visual Basic Team
on
12/30/2008 5:00:00 PM
It's common that you want to launch an external process but supply input and capture the output. Here's one attempt:
' BAD CODE
Using p As New System.Diagnostics.Process
p.StartInfo.FileName = "cat"
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.StartInfo.RedirectStandardInput = True
... [ read more ]
|
by
bill via
@ Head - Bill McCarthy - VB
on
12/30/2008 2:51:36 AM
When I was going through the snippet editor code to put it on CodePlex, I wanted to grab a screen shot of the snippet schema. immediately I was confronted with there being no visual designer for schemas in VS 2008, but the worse part was I could have sworn there use to be. To clear up that confusion here’s an illustrated history lesson on schema views in Visual Studio. In earlier versions of Visual Studio the schema designer was a bit like the early dat ... [ read more ]
|
|
by
ljw1004 via
Lucian's VBlog
on
12/29/2008 9:23:00 PM
Sometimes you want to launch an external utility and send input to it and also capture its output. But it's easy to run into deadlock this way...
' BAD CODE
Using p As New System.Diagnostics.Process
p.StartInfo.FileName = "cat"
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.StartInfo.RedirectStandardInput = True
&nb ... [ read more ]
|
by
VBTeam via
The Visual Basic Team
on
12/29/2008 8:46:14 PM
It's a new week, and the 10-4 video podcast series continues! The topics for this week include an overview of VS 2010, and a special focus on the Start Page. Here's a description of the episode, from the creators: 10-4 Episode 2: Welcome to Visual Studio 2010 In this second episode of 10-4 , we’ll take a very high-level look at Visual Studio 2010. We’ll discuss what types of features you can expect to see in Visual Studio 2010 and .NET Framework 4.0 depending on what ty ... [ read more ]
|
|
by
bill via
@ Head - Bill McCarthy - VB
on
12/28/2008 9:13:22 AM
I’ve just finished uploading the Snippet Editor to CodePlex http://www.codeplex.com/SnippetEditor It includes some minor bug fixes from the previous release. Enjoy :) And Merry XMas :)
|
|
by
VBTeam via
The Visual Basic Team
on
12/27/2008 4:00:00 PM
The first episode of the 10-4 podcast series is about downloading the VS 2010 CTP. We had blogged the instructions before, but this video will take you through the process. Download now, and start trying out all the new features! :)
Episode 1: Downloading and Using the Visual Studio 2010 September CTP
For this first episode of 10-4, we’ll look at how to download and use the Virtual PC image of the Visual Studio 2010 September CTP. We’ll give you tips on how to download this massive ... [ read more ]
|
by
VBTeam via
The Visual Basic Team
on
12/27/2008 3:00:00 PM
Back in seventh grade, I had a pretty heavy crush on a girl named Melissa. She was a good friend of mine, and so I had no problems talking to her. However, being painfully shy back then, I was far too nervous to ever ask her to “go with” me. (For those not steeped in American traditions, to “go with” a girl or boy in junior high school meant that you were publicly asserting that the two of you were somehow romantically involved, whatever that actually meant when you wer ... [ read more ]
|
|
by
VBTeam via
The Visual Basic Team
on
12/25/2008 4:00:00 PM
The Visual Studio and .NET Framework evangelism team has announced 10-4 , a new video podcast. 10-4 will feature different capabilities of Visual Studio 2010 and the .NET Framework 4.0 every week! To get the episodes, visit the show's new home on Channel9:
http://channel9.msdn.com/shows/10-4/
There you will also have the option to subscribe to the RSS feed of your choice, depending on the media format you’re interested in.
|
|
by
Mike McIntyre via
Mike McIntyre
on
12/24/2008 6:39:00 PM
VIsual Basic contains some useful functions not available in the .NET class library.
This post is about one of those functions, the Join(string array,string delimiter) function.
The Join function concatenates an array of strings into a delimited string using a specified delimiter.
Here is a method that includes the Join function:
Private Function GetDelimitedString( ByVal strings As String (), ByVal delimiter As String ) As String
& ... [ read more ]
|
|