Tag | VB.NET Posts

I presented “What's new in silverlight 3.0” at Teched, Delhi on roads and got overwhelming response for it. Actually there was two events. The venue for the first event was Microsoft office, Gurgaon, Delhi. I must admit i had to change gears because most of the attendees were new to “Silverlight” itself; and i was introducing them to Silverlight 3.0 version!! So i was back to questions like Why Silverlight? What silverlight means to Developer Architect Manager End user It did generated lots of interest ...
This past weekend was pretty awesome; the second annual St. Louis Day of .NET conference went underway. 2 DAYS! Can you believe it? It is 2 DAYS of (almost) all-you-can-eat technical sessions; and all for a minuscule $100 (or $125 for those late registrations). First off, some disclaimer: my comment on STLDODN ‘09 will be biased. Why? Because I participated in it and I’m rather involved in it, so of course I can’t quite badmouth it :). Organizers for the St. Louis Day of .NET 2009 are: Kevin Grossnicklaus, ...
*Moved to: Updating the Command Line ParserI had previously created a Command Line Parser from Ray Hayes codeproject article Automatic Command Line Parsing in C#. I had adapted it to VB.NET and upgraded it to .NET 3.5 but I recently ran into the problem with wanting a single command prompt application to handle multiple processes and multiple parameters. This would allow you to group all of a particular tasks commands into a single application. With the advent of Power Shell this format is increasingly ...
For a while now VB.net has has given us the ability to specify parameters in our method signatures as optional and provide a default value. Here is an example. 'Optional parameter using VB.net Public Function Add(ByVal Num1 as Integer, _ ByVal Num2 as Integer, _ Optional ByVal Num3 as Integer = 0) _ as Integer Return Num1 + Num2 + Num3 End Function The use of the Optional key word and by specifying a default value for Num3 means that when this method is called a value for Num3 can be omitted. This ...
Authors deserve more credit than they get. Coming up with a simple example to illustrate a principle is harder than it looks. Good authors have to do this all the time. They provide the examples that become anecdotal when describing the concept to a friend or colleague, and most of us, myself included, never take the time to think about the process. That was until today when I needed an example of Dependency Inversion to help explain the concept to a classmate. I must have thought up 10 or so bad ...
Recently we have to create methods that will manually compare 2 objects and see if they are equal – essentially check if all their properties / fields are equal. Some of the fields are Nullable Types, which have been available since .NET 2.0 (VS2005). It is a nice construct to have, especially to represent database fields that can also be null – this makes coding simpler because a nullable type can also contain null as a valid value. Interestingly, talking some some people that have done .NET for ...
Visual Studio 2010 and the .Net Framework 4.0 started getting the heat...Recently I saw a nice article on the new featurs of the VS 2010 and .Net framework 4.0. here is the list of new features. New Features in the Visual Studio 2010 IDE and .Net Framework 4.0 Call Hierarchy of methods A New Quick Search Multi-targeting more accurate Parallel Programming and Debugging XSLT Profiling and Debugging The XSD Designer New ASP.NET features Static IDs for ASP.NET Controls The Chart control Web.config transformation ...
This show is a bonus edition. It includes a brief overview of the announcements this week around Azure at the Worldwide Partner Conference in New Orleans and then a 30minute interview recorded at Qcon 2009 in London earlier this year. This time around, I am the interviewee for a change. Many thanks to Ryan Slobojan and InfoQ for letting me take the original video interview and create a podcast from it. If you prefer, you can watch the video on the InfoQ site. I was asked the following: Eric, what's ...
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, ...
I was speaking with a colleague earlier today about a potential threading issue in his code. I suggested serializing access to his object to ensure two threads are not using it at the same time, as that could corrupt the processing. Being a relative “old-timer” who’s largest mutithreading applications were written in Visual C++ v 5 and 6, I remember heavy use of the CriticalSection, and wrapping the lock/unlock of critical sections in a class to ensure that every lock eventually got unlocked. We ...
You just finished that BSP, developed all required drivers and low-level code, configured hive-based registry, defined your device's memory layout... and now it's time to develop your application to leverage all that low-level/OS code and provide great services to your device's end users. You may want to use visual languages like C# or VB.Net to develop it, using the power and ease of usage of the .NET Compact Framework or, you want (or need) to use C and C++ but you want to use advanced libraries ...
Learn how Culpepper and Associates created a Web based Job Maintenance Application from their previous MS Access tool. Read the full article... Culpepper was in need of an easy way to update the job descriptions and job-level hierarchy for all of our jobs and this article explains how Visual WebGui made building this application very easy, while allowing quick development process and ease of use by the management and end users. The initial release took about 2 weeks to develop rather than the 4-6 ...
Back in March I presented at Qcon 2009 in London which is a great conference. I also was interviewed which is now up on InfoQ. TBH – it isn’t a bad interview yet at the time it felt awful right from the first moment when after agreeing the opening question before the camera rolled, I got asked something completely different :-) Then it went pretty broad :-) You can watch the video on the InfoQ site which includes a transcript. The questions I was asked were: Eric, what's going to be coming up in ...
DotNetNuke Co-Founder, Nik Kalyani, has added some new webinars to attend. The most popular is a demonstration of DotNetNuke. Here's the webinar information on that one: DotNetNuke is the leading open source solution for website content management and web application development on Microsoft ASP.NET. Nik will demonstrate how easy it is to create and maintain your website using DotNetNuke. He will discuss the flexible open framework and show how easy it is to add functionality to your website by adding ...
Here is one way to have data load only when a TabPanel is clicked. In my example I have an aspx page with a TabContainer, two TabPanels both with their own ObjectDataSources that fill GridViews. The first tab’s ObjectDataSource and GridView will run on the page load and that is fine since it would be the first thing a user sees. The overall idea is to have the ObjectDataSource for the second tab to not run on the page load and then have the GridView on the second tab databind only when the tab is ...
Introduction: .Net 3.5 has some interesting string functions. I almost admire their usage. Following are those functions that we will be discussing here. String.IsNullOrEmpty() String.Split()(Available from .Net 1.0) String.Join()(Available from .Net 1.0) Reference Links String.IsNullOrEmpty - http://msdn.microsoft.com/e... String.Split() -http://msdn.microsoft.com/... String.Join()-http://msdn.m... ...
Having written about the new features planned for VB.NET 10, I’ve been meaning to write about what to expect in ASP.NET 4.0, specifically what is happening around webforms. Well, Mike Ormond has written an excellent blog post on just that subject so I like to him instead: ASP.NET 4.0 Webforms Enhancements Enjoy ...
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 ...
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 ...
Dynamic query building is most often used in the enterprise world for search screens and other operations. I remember writing code very tediously night and day for a very big search screen. Those days where the nightmares, but good experiences we got. Now these things are made very simple by means of Microsoft's Ado.Net entity framework. ADO.Net Entity Framework is an ORM extension from Microsoft. This is something similar to Linq to Sql . But this one is having some good features and we will be ...
Silverligth 3 is the most awaited release of Microsoft. I found the download’s from the page Silverlight 3. The following are the utlities that can be found in this download page. Silverlight 3 Beta Tools for Visual Studio Microsoft Expression Blend 3 Preview Silverlight Toolkit .NET RIA Services Silverlight 3 Beta Documentation In this list the most attracting one is the RIA services which is making wonders with Silverlight now. I will be discussing about them in the later posts. Now I am going ...
You can use the following Free Online Code Converter below just in case you need to convert C# codes to VB.NET or vice versa. Telerik Code Converter Developer Fusion Code Converter Technorati Tags: General ...
I created a listview with two columns as part of a text C# solution to test the use of structures. This list was created with the IDE. When creating a list where you want to show multiple columns, set the listview's view property to Details. I use the IDE to define the columns by selecting columns from the properties list. To fill in the listview before displaying it, I programmatically add the items in the form's LOAD event. BTW, I'm moving from VB.Net to C# and adding events to the form is different ...
I’ll tell you, I never imagined it would happen this quickly, but I was nominated for the first time this quarter and also received the MVP Award for my contributions online and offline to the VB.NET community. I’m very honored and very thankful to everyone involved in getting me mobilized within the community, including Zain Naboulsi, J Sawyer and PJ Forgione (who nominated me). Also, I’d like to give some thanks for other great individuals I’ve met through becoming active in a great community: ...
Asynchronous (or multi-threaded) applications are common place on the desktop and have been for decades. Without this ability, most of our favorite productivity tools would be non-existent. As soon as one moves off the desktop and onto the Internet, the standard changes to one that is highly, if not exclusively synchronous (or single-threaded). Of course, since Internet-based applications have historically served as simple content delivery mechanisms, the need for more robust, asynchronous-based ...
14 marca 2009 odbyla sie darmowa (a jakze!) konferencja Community 2 Community, jednak z racji faktu, ze na poprzedniej mnie nie bylo, moge opisac jedynie tegoroczna edycje. Najwiekszym problemem byla rejestracja internetowa – konkurencja byla niesamowita, w turze zamknietej dla grup miejsca na sciezke .Net skonczyly sie w kilkadziesiat minut, a w turze otwartej dla wszystkich w okolo 10 minut. Lokalizacja konferencji Sama konferencja zaczela sie od rejestracji – juz podczas niej dal sie we znaki ...
Wow... that's a lot of capitals and acronyms to squeeze into a single title (well, ok... one acronym, and two initialisms, if you want to split hairs). Anyhoo... after roundly dismissing the WPF WebBrowser control in an earlier article, I now find it's (ahem) not quite so bad after all. I needed to create a WYSIWYG HTML editor in WPF for a project I'm currently working on. There are quite a few commercial WYSIWYG editors based on the Windows Forms WebBrowser control, and also quite a few examples ...
Stephanie Grima’s Curriculum Vitae Introduction As a person, I consider myself as capable to work alone and with a team easily. I am very hard working, and do whatever I set my mind to doing. I am currently at MCAST ICT, during my last year of my studies reading my Higher National Diploma. I also hold an A-Level in IT as well as a National Diploma in Computing. I see myself working in IT as a web developer or software programmer while I continue furthering my knowledge by doing exams such as MCTS ...
A fellow GWBlogger, Bill Tudor, recently blogged about the progression he would suggest for someone who is getting started or looking to further themselves as a developer. Some small changes I’d suggest is that when it comes to learning an object oriented language, VB.NET is viable object-oriented, managed runtime language. Sure, the syntax is a bit different, but VB.NET is a competitor too. Also, an alternative to Scheme and Haskell could be F#, still leveraging the .NET framework. However, all ...
All right, all you developers out there... let's see a show of hands. How many of you delight in finding new ways to solve a problem? You. Yes, you in the back. Get your hand up. You can't call yourself a developer if you don't enjoy finding a new (preferably somewhat convoluted) to solve a problem. I've been doing some work that involves converting C# code to VB.NET code. I was sitting in the speaker lounge at VS Live, shortly after getting into San Francisco. I'd played a little bit on the plane ...
I'm starting a new RPG project, using XNA and targetting the XBOX 360. I'll be doing the project in C# although I'm leveraging a lot of the code and work I did in VB.NET & Heroic Adventure. I got some interesting ideas from the RPG in a week page (here: www.gamedev.net/reference/a... though I won't be doing mine anywhere near that fast. I spent a few hours over the weekend doing some basic design and coding the inital data structures. So far things are going pretty smooth. ...
Here's an example (One Way) on how are we going to calculate the time difference between two give time: C# DateTime dFrom; DateTime dTo; string sDateFrom = "11:56:00"; string sDateTo = "12:12:00"; if (DateTime.TryParse(sDateFrom, out dFrom) && DateTime.TryParse(sDateTo, out dTo)) { TimeSpan TS = dTo - dFrom; int hour = TS.Hours; int mins = TS.Minutes; int secs = TS.Seconds; string timeDiff = hour.ToString("00") + ":" + mins.ToString("00") + ":" + secs.ToString("00"); Response.Write(timeDiff); ...
Probably everyone has at one time or another had a form that needed some sort of date to be entered. If you are like me and use ASP.Net and want to use the ASP calendar control the asp validators don’t work. Well without some work arounds to the calendar control. However if you just needed to validate if the user clicked on a date in the calendar control you can just use the regular calendar control and a customvalidator like this. The calendar control: <asp:Calendar ID="caltest" runat="server" ...
This book applies to VB.NET developers, although some of it can be applied to C#. It was an average read. I'd recommend this to developers now getting into refactoring. Introduction. Part I: Introduction to Refactoring. Chapter 1: Refactoring: What’s All the Fuss About? Chapter 2: A First Taste of Refactoring. Chapter 3: Assembling a Refactoring Toolkit. Chapter 4: Rent-a-Wheels Application Prototype. Part II: Preliminary VB Refactorings. Chapter 5: Chameleon Language: From Weak Static Typing to ...
Last Thursday evening (Feb 5th), SSE sponsored a local developer bootcamp covering VS.NET 2008. We had a great turnout and a lot of great discussion and questions. If you are in the St. Louis area and interested in being invited to these bootcamps please drop me a line at kvgros@sseinc.com. First, I wanted to thank everyone on my various teams who contributed ideas for the talk. While I did do a lot of research for the event, many developers contributed some good ideas that found there way into the ...
One of the new language features coming in C# 4.0 is Optional Parameters. In large part, this is due to Microsoft’s plan of co-evolution with C# and VB.NET since VB.NET has had this feature for a while. Personally, I’m still somewhat undecided about this feature and there has been much written about method overloads versus optional parameters. For example, Considerations in Overloading Procedures. Ultimately, I do think there will be some scenarios where this will be useful to make code more concise. ...
I just wanted to swiftly share some useful links if you choose to extend a Visual Basic 6.0 application including a new article I commissioned in the UK – which turned out rather good. Firstly links to the toolkit download and some of the best existing articles. The Interop Forms Toolkit 2.0 which you need to download Interop Forms Toolkit 2.0 Tutorial on Code Project which includes an example of using a WPF control inside a Windows Form as part of a Visual Basic 6.0 application Using the Toolkit ...
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 ...
Sorry for not posting more regularly but I've been working on a side project that has been taking up much of my time and probably will for at least another month or so. For a couple years now I have used, at least in some fashion, CSLA.NET to build applications and the creator of the framework announced last September that he was discontinuing the VB.NET version of the framework going forward. While I prefer c# I do have to use VB.NET on some projects and really don't want to be without CSLA if possible. ...
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 ...
I am a big fan of using XML comments in code and actually have a few Visual Studio macros which allow me to “inherit” the documentation from an overridden member. Every once in a while, I end up pulling in a comment with a filterpriority XML tag. This tag is very prevalent in the BCL but I have never been able to find documentation on what it actually means. To see what I mean, let’s take a look at part of the definition for System.Object. In the XML comments, you will see that the class itself has ...
Lately I've had a few people approach me after speaking engagements or conferences and ask for some advice on becoming a .NET developer. Sometimes this has been moving into IT from an unrelated field or other times it's just been a transition of existing development skills into .NET. Now if you have been in this industry for awhile (and had any success) you have apparently demonstrated at least some capability to migrate your skills from one newly released technology to the next. In 2009 it's hard ...
I have been playing with both the iHttpHandler and iHttpAsyncHandler lately, and I came across some interesting information. There are a couple of blog posts out there explaining when to use one over the other (see Mads Kristensen's post here, or Vlad Hrybok's post here) So when does it make sense to use Async? Consensus seems to be that it makes sense to use the iHttpAsyncHandler for long running operations, so while it probably doesn't make sense to use an iHttpAsyncHandler for say, loading images, ...
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 ...
So, this post is probably more for my personal benefit than for anyone who may read, but I'm just going to highlight the good or bad of 2008 for my personal life and then visit my hopes for 2009. This year really marked the beginning of my involvement in the .NET community. I consider myself somewhere around a junior level developer, and by giving back to a community that has given so much to me, I know I have grown and learned more than had I just waited for knowledge to come to me. I got involved ...
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 ...
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 ...
First of all, as a computer science trainer for many years, I'm biased to classroom training. As a trainer, you can see someone's eyes and determine if your students are learning concepts that you are teaching. I will adjust my presentation if needed so that the majority of the audience understands. There's always that minority that needs more help. Also, as a student, getting one on one help is the best way to learn. However, as you might know, there might not be a class in what you need to learn ...
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. ...
Following the PDC, there has been a whole host of announcements about the new features we’ll be seeing in .NET 4.0. I’d like to take a moment to look at some of the features that will be coming to VB.NET 10. Auto implemented properties When this feature came to C# it created real language envy among VB developers. In those instances where all you need a property to do is hold a value (i.e. where a public field would do the job nicely if it wasn’t evil), C# 3.0 allows the developer to write the property ...