Archive for the ‘VB.NET’ Category

Manipulate TFS from VB.NET – a starter

Here is a quick script which demonstrates how to connect to TFS and get projects. Make sure you add reference to necessary dlls - Microsoft.TeamFoundation.Client and Microsoft.TeamFoundation.WorkItemTracking.Client

Imports Microsoft.TeamFoundation.Client
Imports Microsoft.TeamFoundation.WorkItemTracking.Client
Imports System.Net
 
Public Class Form1
Dim nc As NetworkCredential = New NetworkCredential("user", "pass")
Dim tfsurl As New Uri("http://192.168.0.2:8080")
Dim [...]

Leave a Comment

Simple WPF ViewModel implementaion with VisualBasic.NET

This is my trial for applying View-ViewModel concept in WPF Windows application. I do not have a Model for this sample so omitting that word
This is the XAML code which I used. Here I tried to do text binding with a TextBox and Command binding with a Button.
File 1: Window1.xaml

<Window x:Class="Window1"
[...]

Leave a Comment

C# typeof equivalent in Visual Basic

Visual Basic.NET equivalent of C#’s typeof is GetType and NOT TypeOf

VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Article: One…Two…Three… Start! LINQ! - A quick start guide

Read my article about LINQ at Kidoos.net
URL: http://kidoos.net/content/StartLINQ.aspx
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

DataSets vs. Collections

There is a good article on DataSets vs. Collections by Dino Esposito
If you read this article, you will start using (Generics) Collections instead of DataSet/DataTable for database access.

Here is the URL: http://msdn2.microsoft.com/en-us/magazine/cc163751.aspx
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

C# & Visual Basic Language Specification

C# 3.0 Language Specification Word Document can be downloaded at http://download.microsoft.com/download/9/5/0/9503e33e-fde6-4aed-b5d0-ffe749822f1b/csharp%203.0%20specification.doc
Same way, you can download Visual Basic 9.0 Language Specification at http://go.microsoft.com/fwlink/?LinkID=102846
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

System.Net.Mail exclusive

I just gone through an interesting website which is exclusively for System.Net.Mail!
http://www.systemnetmail.com/
Also, there is another website from them - http://www.systemwebmail.com/ which is for System.Web.Mail (.NET Framework 1.1)
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

System.ArgumentException: The serialized data is invalid

Some of you may faced this nasty error. May be while setting up a new web server or after upgrading an ASP.NET project. Well, I didnt not find any 100% good fix for this issue yet. As far as I know, this error occurs only for who have low-speed internet connection and those who [...]

Leave a Comment

How to initialize image in the resource with code

[VB.NET 2005]
Add images to Resource first.

PictureBox1.Image = My.Resources.Imagefile

VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment