Tag | VB.NET Posts

If you're interested in writing .NET apps for FaceBook, here's your chance: http://www.codeplex.com/Fac... (My favorite part of this: We are going to start by trying to maintain both the vb.net and C# code bases. Hallelujah guys!!) And of course, if you're in Chicago, and interested in learning more about how to do it, and seeing it done firsthand: CNUG Downtown Meeting (www.cnug.org) Date: Wednesday, November 7th Time: Pizza/discussion: 6:00, Presentation 6:30-8:00 Location: 1 N. Franklin ...
Ever since attending the C# 3.0: Beyond LINQ presentation at Desert Code Camp (excellent presentation Donald), I've been a little more wary of a couple of the new features introduced by C# 3.0. I wanted to go over them and point out some of the pitfalls that they can lead to. Note that I'm not trying to discourage its use - BUT - if you know how something works in the underlying technology, you're more likely to choose the correct techniques for a given situation. All static code analysis and time ...
As a VB.NET MVP, I love seeing stuff like this from the VB.NET product team: (I can't share most of the email, since it's NDA, but here is what I can share.) Also, here are some data points that make us confident in VB’s momentum. This is the kind of thing I share with other teams when I engage them about “speaking vb”. We’ve made the decision that you can freely talk about these data points in public (not under NDA) : ---non-NDA--- Visual Basic is the #1 .NET language (as reported by Forrester Research) ...
Michael Dunn is getting ready to show of his kick ass robot and how he was able to develop interfaces using the Microsoft Robotics SDK. This robot (as you can tell from the picture) is hella-kewl. Chris just informed me its actually "Domo Arigato" (and had to correct me a few times in my typing of that). Chris says Hi. Mike is having some keyboard issues...but OMG...his mouse, monitor, and keyboard is connected to the robot...which is running XP Pro! Very kewl. He has two different batteries...one ...
I'm sitting in on Chris Williams XNA session...looking forward to it. This room has NO projector...but instead, his laptop is hooked up to a connection that broadcasts his screen to all the computers in the room. Cool, but I agree with him: I'm used to seeing a big screen to reference off of too. Chris is showing us a picture of sprites...explaining what sprites are and how they're the main thing you'll work with in a 2D game. Sprites are/can be everything: characters, monsters, items, backgrounds, ...
earlier today, someone I respect very highly asked the following question: "Is this a REAL problem… Do we really need to worry about being VB Developers or not ?" I've given this a lot of thought and I believe it's a problem when the "great VB / C# divide" keeps me from using technologies that are of great interest to me. This isn't just about missing code samples anymore. I am a VB.NET developer. Before that, for many years, I was a VB Developer. Prior to that, I was a BASIC developer, in all it's ...
Chris Williams discusses with us what XNA is and how to get started with it. We tried getting Chris to discuss the C# vs. VB.NET in XNA issues, but he would not go there (but he would here). George, you have to listen as we give you a shout out. Chris recently started, with Jason Bock and Michael Dunn, a new XNA User Group in Minnesota at the Magenic offices. Check out the site here. Listen to Chris discuss XNA and Game Development! Technorati tags: HDC, XNA, Geekswithblogs.net, Chris Williams ...
In this post http://community.softteq.co... Nick Randolph makes reference to Bill McCarthy's unfortunate choice of words in his blog and on a VB community list about how Microsoft treats VB. The short version is, Bill dropped the N word, and got rightfully smacked around for it, and he wrote up a blog post attempting to explain his choice of the word in a more politically correct context. and now lots of folks are talking about what a shame ...
Write a method that takes two parameters, both positive integers, and returns each prime number that falls on or between these two numbers. Each number printed out should be on its own line, so that if the parameters were 1 and 20, the results would be: 2 3 5 7 11 13 17 19 The method must be able to handle both parameters being the same number. It should also be able to handle the first number passed being bigger or smaller than the second. EVERYTHING must happen within this method. Your Main should ...

What topics am I interested in?

Agile in the Enterprise

How and when to bring DSLs into a program

Listening to what everyone has to say.

Seeing what tools everyone is using.

Basking in the pro-agile, pro-get stuff done environment.

How to best leverage some of the new .Net 3.0 Compiler stuff (are there anon delegates in VB.Net 3.0?)

It's been two months since I set out on my 6 month self-improvement plan to being a better developer. During my last one month update, I set out some specific goals for month two that involved learning about Resharper, NDepend, F#, the Windsor Container, and the ROTOR codebase and then writing some blog posts about my efforts. How did I do this last month? First, I accomplished one major thing that wasn't even on my radar screen when I came up with my goal list. I resigned my position as an architect ...
I am playing around with vb.net lately and found myself wanting to make a pseudo webbrowser in the likeness of IE6 and thought ohh menustrip i should be able to use that for bookmarks like IE does. so I set out to do this. so far it loads the bookmarks from file and adds them as subitems to the menu. but i cannot for the life of me figure out how in the world to allow myself to click them I mean i dont understand how seems like only the main item allows click and so there is my delima hopefully someone ...
Last Friday I gave my two weeks notice at the bank that I worked at for the last 5 years. At first it was very difficult to tell people. When I told my boss, I had roughly the same anxiety level that I had when I broke up with my last girlfriend. It actually took me two attempts to tell the CFO, who I run with on a regular basis. Nevertheless, the anxiety gradually faded into nonchalance, which then quickly slid into boredom. I am now hovering at annoyance and feel that I am about to plunge into ...
I'm a little bit tired today because I stayed up late the last couple of nights working my way through the Boo Primer on codehaus. I think I first heard about this relatively young (2003), open source .NET language through various posts by Ayende and Hanselman. I was intrigued by the some of the adjectives that I commonly heard in relation to this language such as 'beautiful' and 'wrist-friendly', so I incorporated learning Boo into my 6 Month Roadmap to becoming a better developer. If nothing else, ...
*Moved to: Why I think VB.NET is a better choice than C#The reasons I think that VB.NET is better than C# are many, but I will try to put some of them down in a coherent manor unlike the usual C# developer that can only come up with "vb is a language for mediocre programmers...anyway looks ugly and smells ugly.." (Hmm, he must have thought long and hard to come up with that). Reason 1 - Business senseRead more...Follow my new blog on http://blog.hinshelwood.com ...
Its definately been a while since my last blog update. (sometime in September of 06) and I still have nothing to blog about, I am back at school again, and in VB.Net (introduction to) class and bored out of my mind. Well its not all that bad, at least its not vb6 (eeww yuckk) anyway until next year (hopefully not)..
In-line checking of values during the evaluation of a compound IF statement in VB.NET can be done as a way of "short-circuiting" the IF statement in case further evaluation might cause errors. For example, Dim blah As Nullable(Of Integer) = Nothing If blah.HasValue And blah.Value < 5 Then Console.WriteLine("Something really important") End If In this case, the IF statement will cause an error. The AND operator in VB causes all clauses prior to the THEN statement to be evaluated. So both the "blah.HasValue" ...
As part of my quest to become a better developer, I've been reading more tech books (ok I'm trying to finish ONE tech book without lapsing into a coma, but I digress.) The thing is, it's a Java book. Technically it's a design patterns book, but all the code is in Java, so call it what you want... Anyway, in my polylingual travels, I've been converting all the code in the book to vb.net for fun and to make sure I actually get what I'm doing. So today I stumbled across the Java keyword Volatile. I ...
To detect the version of AS, use ADOMD and connect using a connection string like "Provider=MSOLAP;Data Source=<server>;" where <server> is the name of your server. If you have the 2000 and 2005 providers on your system, the 2005 provider will attempt to connect to first and will then fall through to using the 2000 (v8) provider if the server is an AS2000 server. Once you have an open ADOMD connection you can check the value of the ServerVersion property of the connection. A value with ...
Recently I loaded up the 3.0 version of ReSharper and am very impressed. It made me realize how much I miss using that tool (since it's been years since I actually had a copy). They've came a long way since then and built a very nice suite of development productivity tools. So I had to give them some props on the blog (even though I represent no tool vendors at all I like sharing info on what I like as much as dissing the tools I don't) While teaching my .NET classes I mention tools like this every ...
My name is Kevin Grossnicklaus and I’m a 32-year old .NET architect and developer here in St. Louis, Missouri. I lead a software development practice for a consulting firm here in St. Louis called SSE (www.SSEinc.com) where my team's focus primarily on “Smart Client” applications written in .NET (so expect a lot of Smart Client related postings here). I’m also a part time instructor for a technical training program at Washington University in St. Louis called the Center for the Application of Information ...
Visit http://www.silverlight.net for more information, downloads, samples, etc. Silverlight is a browser plug-in that runs on IE, Firefox and Safari - Windows and Macs Silverlight is a vector rending engine that supports an upward compatible 2D subset of WPF graphic description language XAML Silverlight has built in media support for wmv, wma, mp3, jpeg and png files on both windows and MAC with a few lines of code and WITHOUT media player The 1.0 Version of Silverlight supports javascript client ...
There was a question on the forums a little while ago about what were the minimal libraries that would need to be installed in order to write a program that would allow someone to process a cube. Well it can be done with just the ADOMD.NET client libraries, which the user will need on their machine anyway if they are going to browse the cubes. Below is about the shortest VB.NET "application" that you would need to process a cube. It's a console application and all you need to do is to add a reference ...
Another book! I and some friends just finished a new release of our Visual Basic book. This is another book I wrote with the wonderful Kent Sharkey! :) We really cleaned up this version of the book. This book came together quite well and shows not only the core of .NET 2.0 in depth - but it also covers the new ground of .NET 3.0. The .NET Framework 3.0 includes the Windows Presentation Foundation (WPF), the Windows Workflow Foundation (WF), and the Windows Communication Foundation (WCF). The table ...
<disclosure>I was given this book by the publisher in exchange for reviewing it.</disclosure> First, I thought that this book would have been a more advanced book, but was sad to see it labeled 'Beginner-Intermediate.' It does however accomadate that audience very well. The book does a good job of taking a sample and slowly building it up to a more complex level. In the future I would love to see this topic at a more advanced level as well, and maybe not so hardware oriented (is that ...
Sheldon Cohen has organized a meeting at Host.NET on Thursday, May 31st.Tracy Wittenkeller from T-Worx www.t-worx.com will be presenting at this meeting. He'll be covering DotNetNuke skinning. Skinning is one of the main reasons why so many people have decided to use DNN, with it?s flexible architecture and layout. Please visit: http://dotnetnuke.meetup.co... to register. It is good to see other groups forming, a very good sign! Looking at MeetUp there are a lot of web and computer ...
Reference:- Click here to view Rajasekhar Chowdary's online profile. Introduction I have seen many developers looking for a solution to remove the url that will be printed whenever we print a webpage. Due to some security reasons some applications doesnt want to display the url in the printed documents. Even i faced this problem and i could able to overcome it with vb.net code. I have a window which displays a photo along with a print icon. whenever i click the print icon i am printing the page with ...
The war for which .NET language will reign supreme just got a little dicier folks. For a while now everybody has been slowly moving toward C# as the defacto .NET language of choice. Big names in the .NET world have been showing off coding samples in C# for a long time, books have been filled with C#-only samples...it seemed that we were all moving toward a new future where semi-colons and curly-brackets would reign supreme. That was...until now. The VB.NET team has launched a new weapon in its quest ...
Microsoft Babies Microsoft new baby yes I am talking about LINQ stand for Language-Integrated Query is now available as a integral part of Visual Studio Orcas. Microsoft releases the new Visual Studio with the name of Orcas and all Microsoft previous efforts (Windows Communication Foundation WCF, Windows Workflow Foundation WWF, Windows Presentation Foundation WPF, Windows CardSpace and LINQ) are integrated in this Studio. From last one and half years Anders Hejlsberg team done a tremendous job in ...
I recently finished going through ASP.NET 2.0 Illustrated by Alex Homer and Dave Sussman. This is an excellent book to have on your shelf as a reference, but its also a fantastic read for someone who wants to start learning ASP.NET 2.0. You need to understand the focus of the book though (or what I interpreted as the focus of the book): a walk through of all the features of ASP.NET 2.0 including web parts, security, controls, object model, masterpages, themes, etc. Excellent coverage and very easy ...
50% of my job is Web Development. The other 50% is managing a 2GB SQL database and web app (with about 1500 users). Part of that 50% is writing SQL Reporting reports. Up until the other day, I was having my users log into the web interface of S/RS and get their reports that way. I was talking to some other developers who use the same system, and they said that you can Proxy into reports using code. I dug into this a little bit, and in about 2 hours, whipped up a little VB.NET page that did the trick. ...
I uploaded this new article in the Unedited Section of CodeProject. AbstractThis article describes how we can use XML as a metadata source for SCG Templates. It also shows step-by-step instructions of how to generate strongly typed objects from XSD and use it in the templates to generate text based output. ASP.NET developers can also use this paper as reference to transform XML using ASP.NET scripts and avoid XSLT. Introduction We all agree that XML's primary purpose is to facilitate the sharing ...
Firstly I must note that this could mess things up pretty bad in your code so keep that in mind before getting all to excited.I am talking about custom operators for classes and structures, that if done with grace can help you a lot. I will begin with introducing the concept of operators first for those of you who might have forgotten about it and then I'll show you how to create your own. What is an operator anyway?The recognition of operators is universal, in maths as well as in programming. The ...
Today Microsoft announced that WPF/E will be named Silverlight in the future. Honestly Windows Presentation Foundation / Everywhere is much cooler as a name, not that it really matters. I think Silverlight actually will be a strong competitor to Adobe Flash. It has some neater features unlike Flash, like native 3D support most of the WPF features that's come with XAML. Another strong reason is that Microsoft will push really hard on this, it would be kind of embarrassing for them to release another ...
XSL stands for Extensible Stylesheet Language (OR XSL = Xml Style Sheet) and XSLT is the language to transform XML documents. Its a common practice to use XSLT to to transform an XML document into another XML document, or another type of document that is recognized by a browser, like HTML and XHTML. Normally XSLT does this by transforming each XML element into an (X)HTML element.But today we will see how we can use ASP.NET scripts to achieve the same. This blog post is dedicated to those programmers ...
So I haven' blogged in a few days, mostly due to my attempts at recovering from a serious lack of sleep. (i.e. I've been sleeping.) The summit rocked. I haven't gotten this much Microsoft lovin in a long time. Free books, free shirts, a trip to the company store, lots of gnarly NDA stuff that most folks won't see for another year... etc. The Orcas stuff is sweet, and I encourage you to play with the CTP to see it all. There's some "make my life easier" stuff in there, but also so cool new powerful ...
Day two of the MVP summit is over. We were at the Washington State Convention & Trade Centre all day, but will be decamping to the Redmond campus tomorrow. The day started with an unscheduled bout of ‘pre-match’ chanting from the Canadian MVPs. They are an excitable crowd, and have spent much of the day ensuring that we all know which country they come from (Canada, I believe). It appears that all Canadian MVPs (with the exception, I am glad to report, of Brian Loesgen) wear identical clothing. ...
This wraps up day two in Seattle for the MVP Summit. I got in Sunday afternoon, and went to the Party With Palermo (which was great... thanks Jeff!) There were a ton of people there, and I picked up some cool swag. Jason and George and I hung out with Rory for a bit as well as seeing some other familiar faces. Eventually we went to our respective hotels and I called it a night after drinking an entire pot of hot chocolate and surfing the web for a bit. After sleeping in a little (for the first time ...
I like Visual Basic.NET because… A professional picks a tool for logical reasons. As a professional business programmer, I pick VB.NET. Before I expound further on my choice, you should know whether or not I am qualified to have an opinion. Certified in C# and Visual Basic.NET, I was lucky enough to be chosen as Microsoft MVP in Visual Basic.NET in 2006. I founded and head up a 1500+ member .NET User Group in Charlotte, the Enterprise Developers Guild (www.DevelopersGuild.org). We routinely have ...
Convert VB.NET To C# Or Vice Versa There are tools to do this, but it is still useful to remember these tips. 1. Case sensitivity VB.NET No C# Yes 2. Comment VB.NET ‘ C# //, /* */ 3. Reference VB.NET Imports System Imports System.Web.Security C# using System; using System.Web.Security; 4. Inherit VB.NET Public Class MyClass Inherits System.Web.UI.Page C# public class MyClass : System.Web.UI.Page 5. Region VB.NET #Region " Web Form Designer Generated Code " C# #region Web Form Designer generated code ...
I had an opportunity yesterday to participate in Red River College's Directions business conference. I was part of roundtable discussions at the end of the day, where students were able to sit and talk with people from industry and get some perspectives on what the job market is like in Winnipeg and what they can expect. It was interesting hearing them have the same concerns that we did back in college: worrying about the co-op placements and whether grades were good enough to get a good gig, what ...
For years I have been avid (dare I type "obnoxious"?) about VB.NET over C# for one, and only one reason: case-sensitivity. I simply do NOT understand the need for a case-sensitive language (and probably never will but I'm from West Virginia...). The only remote reason that someone gave me was the background compiler and how it bogs the system on larger solutions. I can see this, and I agree but have never experienced. In fact, quite the opposite. I find that I really miss it when building C# solutions. ...
In quite a few projects I have to process delimited data in some form, either from App.Config settings or via interfaces to other applications and systems. Normally people use CSV formatting, separation by the comma character, however that makes life complicated if the data needs to contain commas as well. Export a Microsoft Excel worksheet as CSV and look at the complex rules about using double quotes to retain commas, thereby introducing issues when a cell contains both a comma and double quotes ...
There are many vendors who develop such tools. Below are two leaders in this domain that i know: 1. NDoc (Recommended my Microsoft) http://ndoc.sourceforge.net/ - NDoc generates class library documentation from .NET assemblies and the XML documentation files generated by the C# compiler - NDoc uses pluggable documenters to generate documentation in several different formats, including the MSDN-style HTML Help format (.chm), the Visual Studio .NET Help format (HTML Help 2), and MSDN-online style web ...
I spend about 95% of my time, when coding, in C#. So, recently rolled onto a project that had built a framework using VB.NET (that's the first indication of trouble). So, I see something like the following when trolling through the code: Public Class PoorClass Public ReadOnly Property BadProperty(ByVal aParm As String, ByVal bParm As String) As String Get Return "This isn't really a property anymore" End Get End Property I had no idea you could add parameters to a property. Turns out, it's only possible ...
As I referenced earlier the top 10 mistakes when developing AJAX applications, I'd like also to mention the top 10 mistakes in web design. Speaking of AJAX, check this free updated online AJAX Cookbook. It's pretty cool really. Note: I got a comment on my GridView databinding events article (the most read page on my blog according to Google!!) asking me to provide a VB.NET code for the article. Well, in fact I didn't think this was that important until I was asked (as it's not the first time). I'll ...

submain.com is offering free download of their VB.Net / C# coding guidelines, a 100+ page ebook.

More info at http://submain.com/blog/FreeCVBNETCodingGuidelinesEbookDownload.aspx

One of the basic consideration in web 2.0 concept is 'tagging' where any contents in the web can be associated with one or more tags, which can be shared among social community network. It lets others to find any content according to their chosen tag. Tag is nothing, but a way to categorize any web content. In real world, any visitor can quickly reach to a content thru it's associated tags, can thus get a basic idea about whether s/he will consider it to read/download etc. "Search" is older concept ...
OK so I’m not quite there yet! I have passed Web Apps and Windows apps and have one exam left to do (XML services and .net remoting which I must say is the hardest of all three – perhaps some of you out there who are already MCAD/MCSD agree?!?)These will soon be out of date as the new .net 2.0 exams are released and the certifications have changed slightly but I haven’t really looked in these a great deal. I actually started life as a software developer late on and put myself through further education ...
Good News for the Vb.Net developers.I recently added VSTemplate for VBVSTemplate: SCGCTP2.0vstemplateVbDotnet2 So you can start writing templates in Vb.Net as well.To work with Visualstudio2005TemplatesVb ===========================... SmartCodeGeneratorVb.zip from Visualstudio2005_Templates folder to your My Documents\Visual Studio 2005\Templates\ProjectTempl... folder.Copy SmartCodeGeneratorTemplateV... from Visualstudio2005_Templates to your My Documents\Visual Studio 2005\Templates\ItemTemplates ...