Tag | VB.NET Posts

I am glad to inform the release of SmartCodeGenerator CTP 2.0 in both .Net1.1 and .Net2.0. As a result Templates can be generated both in VS2003 and VS2005. Please download from Codeplex:http://www.codeple... Notes:1. I am not using the Asp.Net Profile object in the core api to generate user interface, instead introduced a Custom class "TheProperties". Please refer to tutorials at www.smartcodegenerator.com for more details.There are some other changes made to ...
It is so much easier to create, raise and handle events in VB.net than C#. In VB, it is simple: Public Event MyEvent()RaiseEvent MyEvent()Private Sub MyEventHandler() Handles MyObject.MyEvent In C#, I have delegates and protected voids all over the place! Thankfully, VS takes care of the code creation for handling the events, otherwise I would pull my hair out trying to match method signatures. I'm sure there is a good reason for making this so difficult. I know that it is possible to fire events ...
I decided at HDC 2006 that it was time to make the switch from VB.net to C#. Not because it is better, but because all the presentations I go to are in C#. I hate having to convert languages in my head and since I give presentations every now and then, it's not fair to my audience to make them convert in their head. I've come to my first road block in migrating to C#. I really like the My. namespace that VB provides and C# doesn't have anything like it. I need to access the My.Computer.Network.IsAvail... ...
According to the RSS specification, the pubDate element (when the item was published) must be formatted like this : Mon, 28 May 1979 19:45:32 GMT I've posted an article with C# / VB.NET functions that will accept a DateTime object and return a string properly formatted to meet the pubDate specification. Technorati tags: RSS, pubDate, Code, .NET ...
Hi everybody its my first post here... I am here to meet new people of good caliber ..( off course same or high than mine), and sharing out my experience about tech ASP.NET 2.0 / SQL server 2005 ,Software engineering Methodologies and Process Improvements. I have had enough blogs running at different places (I goggle to find out my subscriptions throughout www) :) , I just have a feeling that geekswithblog is much better place to be known along. I can be found at wiki even. Believe me I didn’t did ...
Via Paul Ballard: "Microsoft has just dropped a set of Visual Studio 2005 PowerToys. Here's what you get: Source Code Outliner : The Source Outliner tool is a Visual Studio extension that provides a tree view of your source code's types and members and lets you quickly navigate to them inside the editor.Visual C++ Code Snippets:The Visual C++ Code Snippets tool lets you insert snippets in your code by using a pop-up menu that contains programming keywords. VB.NET and C# languages have this functionality ...
"75 ways to improve Your C# and VB.NET Programs", that's what is written on the top of the cover of the book .NET Gotchas by Venkat Subramaniam. This book was first published in May 2005 by O'Reilly Media. ISBN 0-596-00909-7. Click here for the Table of Contents.The author has taken 75 gotchas and documented them with code samples, explanation and if relevant work-arounds. What is a gotcha? According to the definition in Wikipedia a gotcha is a feature of a system, a program or ...
Interesting discussion going on over at Panopticon Central about whether VB.NET will ever be compiled by (you guessed it...) VB.NET. Also, other interesting nuggets can be found in the comments... such as the fact that Mono VB currently compiles itself.
I will probably get myself in trouble with this post, but a recent ARCast just irritated me like walking through poison ivy in a pair of swimming trunks. C# or VB.NET. The battle rages on. I will say that I prefer C#, but I spend a lot of time writing VB for clients who have that as their standard. In the podcast Ron's guest Bill McCarthy talks about how great VB.NET is. The funny thing is that what he points out as its strong points are exactly what I dislike about VB. Specifically things like the ...
Partial class is a new functionality that is included in Visual Studio .Net 2005 and is supported in ASP.Net 2.0. This new functionality helps you to split a single class into multiple partial classes. These partial classes can be in different individual files. In the earlier versions of Visual Studio .Net 2005, while you create an ASP.Net application, you might have seen that a single class has to be in a single file. You will be beginning a class and ending that class in the same file. It was not ...
Worked on HA! some last night and today. In case they weren't hard enough, Trolls now regenerate and display the appropriate messages (if you are close enough to see the regeneration occurring.) Currently there is no distinction made between regular damage and fire/acid/magic damage. I have created a tracker ticket to remind me to address this. Also noteworthy, VB.NET guru extraordinaire, Paul Vick has rewritten the Random Number Generator for HA! in VB.NET. For those of you just tuning in, it was ...
Code translation came up today when somebody asked me if they knew of a tool for translating VB.NET to C# code. There are probably quite a few tools. But, there is an online one that's easy to use and the price is right (i.e. free). The translator can be found at: http://carlosag.net/tools/c... I recommend that you copy and paste code into the textbox, because the translator tries to translate as you type and that can be slow. I haven't really used the tool to readily, because ...
I have coded in VB.net and C/C++ and now C# and me and C# have a love hate relationship. I like alot of the ways it handles things so much easier than C++ but just as powerful, however some things are just a headache, im not going to go into specifics im sure anyone that has used C# and C/C++ can follow my line of thought, Some of the things I like about C# are the fact that everything is a class.. however the part I hate about c# is that everything is a class.. I believe that not EVERYTHING should ...
…about ASP.NET 2.0 Data Access, but were afraid to ask. This article on www.asp.net has 15 different tutorials on the subject in both VB.NET and C#. This should be required reading for a beginner and well worth a look for the more advanced. You may download the code, and PDF’s are also available of all the tutorials for offline viewing. ...
I’ve been forced in to using vb.net for a windows service project which scans a folder of xml files, they need to be processed in order of the files modified date & time. Directory.GetFiles() returns an array of filenames in alphabetic order, I could find precious little information on the net so I thought I’d share what I came up with :- Imports System.IO Public Class clsCompareFileInfo Implements IComparer Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer ...
Resume – Senior, Hands-On, .NET, C#, VB, ASP, XML, SQL, SharePoint, Crystal, Reporting Services Developer, Team Leader, Hard-Core Coder Rodney Vinyard, 29 Windermere Road, Montclair, NJ 07043 rodney.vinyard@gmail.com · Seeking North NJ/Manhattan .NET/SQL developer job. · Hands-on .NET, C#, VB, SQL, ASP, XML, XSLT, Reporting Services, Crystal. · 30 years of productive, software engineering experience. · Inventive, focused, hands-on software designer, engineer & coder. · Effective leader, writer ...
Welcome to Basically Basic! About Me Hi, I'm Alex Loret de Mola, and I'm a VB programmer. I know the last two words in that sentence sound contradictory to some people: and indeed, I can't blame you for feeling that way. However, I'm hoping that this blog will help to change the perspective of VB doubters, and help those who have already succumb to temptation. On this blog, I'll be talking about how you can perform advanced security, set up complex data structures, manage large scale projects and ...
As a developer always we want to have the opportunity to write the codes properly, along with programming language specific words and keyword to be highlighted in to different colors. Also VS.NET developers enjoys an IDE features named “Intellisense”, where while wring codes, a list of probable class or object name appears in a list and can be inserted to the code segment, just by selecting the appropriate item from the list. This becomes EXTREMELY useful, when we have to use long class ...
You often need to create a report? Sure the following 20 problems seem well-known to you. Please see how StimulReport.Net solves them. 1. You are tired of sub-reports? There is no need for you to use sub-reports for rendering complex hierarchical reports. All you should do is to put some bands with data one after another. Everything is so simple and visual. No coding required. See Flash Video 2. Do you want users of your programs to create and change reports by themselves? Report designer with simple ...
The most important functionality of generics is to generate errors at compile time for typecasting exceptions that without generics could occur at runtime. Generics are also available in VB.NET. But VB.NET as a language has a history of being very forgiven when it comes to typecasting. How the VB compiler reacts to possible typecasting errors is configurable trough the OPTION STRICT flag for the project. By default (even in VS2005) it's OFF by default. With OPTION STRICT OFF the compiler ignores ...
Similar to Scott, I felt pretty aimless after finishing off my game. I've been pouring so much work into the game contest in the evenings and the weekends that not having anything to work on felt pretty odd. So, to take advantage of my current "work horse" mentality, I'm going to attempt to provide some Managed DirectX tutorials for those interested in developing 2D games. These tutorials will be created using Visual Basic.NET (the express version) which is a language seriously lacking in Managed ...
With Office 2007 release looming, I thought i'd better check out compatibility with previous versions when it comes to automation. I've got apps in vb6, vb.net and c# that link to Word and Excel. I remember I had a few coding changes to do between versions 9 (Office 2000) and 10 (Office XP) of the PIA's and also had to apply a registry hack and update references and recompile exes between versions 10 and 11 (Office 2003). Good news though, all of my software works fine with Office 2007 beta, cool. ...
This was a question in one of my interview with American Express, and this was how I understand the question: that I In VB.NET, I found there are a lots methods passing object parameter by value. For example, Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click It's impossible in vb6.In vb6, the object is always passed by reference. How come we can pass object byval in .NET? An object in both VB6 & VB.NET is a Reference Type! ByVal & ...
As I wandered the net this morning for my usual tech tips and such, I always found that I can be a sucker for lists. I came across this blog post 10 tips on writing reusable code in which Hosky elaborates upon what he feels should be concentrated upon. The basic list boils down to this: 1. Don't repeat code 2. Make code do one thing 3. Break down logic by test case 4. Remove business logic from frameworks 5. Hide code dependencies with abstract classes and interfaces 6. Code for extensibility with ...
This is cool, sexy stuff: “Microsoft, together with the upcoming LEGO® MINDSTORMS® NXT, will help further amplify the impact of robotics,” said Søren Lund, director of LEGO MINDSTORMS at the LEGO Group. “The MINDSTORMS robotics toolset has enjoyed a strong community of users since 1998, and the launch of our next-generation platform includes many built-in features that further the community’s ability to take MINDSTORMS programming out of the box. In combination ...
Check out www.netfx3.com. Its the community site for everything 3.0 in the framework. To tell you the honest truth I spent some good time trying to understand this 3.0 business. "I mean you take the 2.0 Framework, you add Avalon, Indigo etc and then call it .NET Framework 3.0. But in fact its nothing more than .NET 2.0 (Compiler, run time etc.) with additions." So overall when you get the .NET Framework 3.0 you will not be getting the language enhancements in C# 3.0, VB.NET 3.0, you will not be getting ...
With today being Father's day, I of course did what every dad dreams of doing. I attempted to program a Gauntlet style game in Managed DirectX with VB.NET using Visual Studio Express. I'm sure most of you did the same. I made some really excellent progress and it felt VERY good. The coding isn't pretty, but this is jut my first pass at it. I code similar to how you are supposed to write a college paper. First I start with notecards (a myriad of sheets of notebook papers with scribbled thoughts and ...
To add a task to the Task List of Visual Studio.NET 2003, you can insert a TODO Comment. The C# syntax to do this is: // TODO information to show up in the task window assocated with this item. The VB.NET Syntax to do this is: ' TODO information to show up in the task window associated with this item. By default Visual Studio.NET 2003 will only show Build Errors in the Tasks Window. If you also wish to see TODO items and HACK items, you may follow the procedure below. Right-click in the task window ...
Look at me, I got a new blog ;-) Before starting to post more technical things, I'd like to say a few words about myself. My name is Laurent, I am swiss, born in Lausanne in 1971. Currently I live not far from Zurich with my wife and my 2 daughters. I work as a software engineer for Siemens since 1996. My work has made me touch a lot of different programming languages and environment, starting with embedded C, and moving to embedded C++, then Java, and for the last 4 years working with .NET technologies. ...
Microsoft screwed up big for customer confusion on this one. First it was the attempt to explain the "red and green" model for compatibility in .NET 3.0. Now, it is announcing that .NET 3.0 will not include C# or VB 3.0, but will be an "additive release". Do you understand that? Even with pictures, you have to wonder what they were thinking. Everyone Microsoft is just bubbling over with support and entheusiasm. Customers are much less so. The general belief is that .NET is now heading down the evil ...
Sent Sage £1500 and got 4 cds and a thank you letter in return, nice. This entitles me to use their development SDK for a whole year so the sooner I get my programs linking to it the better. I've decided the best approach will be a windows service which runs on one machine and polls a folder every x minutes and reads in xml documents which my various programs will create. Given that the Sage SDK is actually an ActiveX class library at the time of writing called SdoEng120.dll, this service is ...
I still am not ready to post any code. (crossing my fingers for this weekend). But here are some screenshots of the progress I have been making. Currently, I have a few of the menu options hooked up. Basically, when the game starts, you can select Storymode or Freeplay. Going into storymode immediately starts you at the first level, but selecting Freemode gives you the ability to select a particular "level" or gametype you want to play. Currently two of the "levels" are just about playable. Follow ...
Deep in the lair of my arch-nemesis... It's going to take more than curly-braces and wishful thinking if you want to win THIS contest. Let's face it... 42* days from now, VB.NET will be the clear winner. * yeah, that's right... I said 42. The magic number. The answer. Move along ...
I get asked this question a lot that what are the advantages of using different languages in the .NET envirnment. The .NET framework does not care what language you use and compiles the code into the IL (Intermidiate Language). From there the IL is converted to the native assembly code. The main advantage of using different languages is to give the developer more flexibiltiy in creating the application. The VB (VB6) developer might be more comfortable with the VB.NET syntax and can create cool UI ...
Update: Put a comment in if you want the C# version of this code and I will get it to you In my previous lesson, I gave a brief overview of the Background Intelligent Transfer Service. Today we will dig a bit deeper into some of the API as well as give reasons why I chose Managed C++ over a C# implementation. First off, there was plenty of reading to do from the last time. If you want to read more about the uses of BITS as well as the key technologies behind it, please check out this link: http://msdn.microsoft.com/l... ...
Greg asked me to upgrade the VB.Net source project to Visual Studio 2005.  Here it is (source and binary).  Read more about the project here.

In my VS 2005 installation,  these snippets are available out-the-box  for VB.Net but not for the C#.  We have to manually download and install from here....

http://msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx

The new refactor features of VS 2005 are nice. It wasn't until I tried using them when working on a VB.Net project that I realized....they're not there? It seems my installation of VS.Net 2005 doesn't provide the same refactor options available to C# developers out the box, at least in my installation of it. However.. a search on MSDN brings this link to download Refactor! for VB.Net as an additional plug-in. http://msdn.microsoft.com/v... ...
A question was posed to the Arizona Groups list about how to prevent double-posting to a form on a web page. My favorite solution to do this is set up a variable to track if the submit has happened yet or not. The HTML needs to end up looking like this:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD><title>Fo... <body> <script language="javascript"> var haveSubmitted=false; function FirstSubmitOnly() { ...
The move is done, the new job started. Initial thoughts... I love the new house. It's significantly bigger than my previous residence (over double) for basically the same (within $50) monthly. The cost of living here is much lower and there are mountains (and I'm on one of them.) I also have all my arcade games in one place now, instead of in different rooms and houses (Mom and Dad were "hosting" the Tower of Doom game for a bit.) Also, picked up some new machines during the move (literally mid-move.) ...
I came across a msdn page today which is about transforming the code to 64-bit programming. I was wondering how native code based applications can be ported to 64-bit computing. I know 32 bit .NET code can be executed with out any modifications in the 64 bit environment, read below the excerpt, In most cases, applications developed using the 32-bit .NET Framework can be ported to the 64-bit version of the .NET Framework and executed as 64-bit native applications without any source code modifications. ...
I taught MOC2310B (ASP.NET bilingual class - VB.NET & C#) this week. Like most Microsoft 5 day courses, it can easily be delivered in 4 days without sacrificing any content. Instead of delivering the training from 9am - 4pm Monday through Friday, I deliver it from 8:30am - 4:30pm Monday through Thursday. I've done this with a few classes and the students seem to prefer it this way. This week in particular really stands out for me because it was probably the most rewarding class I've taught in a while. ...
I find it really exciting that Microsoft are investing so much still into Visual Basic. VB.Net 2005 has only been out a since November and we are already talking about the next version. Visual Basic 9 is actually going to be a very exciting language as it incorporates LINQ, if you don't know what link is I'll let Don Box and Anders Hejlsberg explain from their whitepaper that can be found here. "After two decades, the industry has reached a stable point in the evolution of object oriented programming ...
This is the best thing since sliced bread type-of-deal: http://msdn.microsoft.com/m... Now I can use all the C# code samples out there and not spend time rewriting them in VB.NET on my own. Awesome ...
All I heard about for weeks... pack your parka... pack an umbrella. HA! It's not raining, and hardly even cold. The flight was uneventful although painfully crowded. Flying into Detroit on Superbowl Sunday was interesting. That is one HUGE airport. Then we had to sit on the tarmac for about 40 minutes waiting for them to de-ice. That sucked, but the flights were pretty easy. Got to Seattle, hopped a shuttle and hoofed it 4 blocks to my hotel only to find out that they only booked me from Wednesday ...

This isn’t about to be a replacement for Infragistic’s NetAdvantage, but still worth a look.  Especially since it costs a lot less than NetAdvantage.

TriStateTreeview in VB.NET - The Code Project - VB.NET

Here's an interesting place, part jail, part armory, where the Crown Jewels are currently displayed. The Tower of London: Lots of history behind this place, often involving imprisonment and beheadings. In happier news, as promised here's the ASP.NET TreeView sample, which is written in VB.NET in VS2005: Jonathan_Treeview.zip It demonstrates the new TreeView control in ASP.NET 2.0, how recursive routines work, and how to extend the standard TreeNode class to support enhanced functionality. ...
Linear regression http://www.stat.yale.edu/Co... is often used in trying to generalize data, correlate data, and find outliers. Something I had written some time ago in C# though it also includes VB.NET translation... It can easily be dropped into a datasethelper class and will regress two columns within a dataset returning major variables including Pearson's R http://davidmlane.com/hyper... PLEASE NOTE THIS IS NOT PRODUCTION CODE AND IS HERE AS AN EXAMPLE. public ...
Well, I have finally found time to get my object repository editor working well. It's what I call in a "internal tool beta" state, which means it's not very pretty but works well. Since there will be only two of us using it, seems like a fine state. I know, I know....any code worth writing is worth writing nicely. However, given the timeframe in which I've had to work, I've done a fair job. Now, that's not to say it won't benefit from some nice refactoring. As a matter of fact, I've refactored a ...