Tag | VB.NET Posts

I'm starting on a new project at work where we're developing for the Windows Mobile 2003 platform using VB.NET 2005. I was really pumped to see all the new controls, especially the editable datagrid becaue they HAD to put one in this time around! But to my shock and horror...the datagrid is STILL not editable! I couldn't believe it! How could Microsoft let me down?! Well, they didn't...sort of. By using all the nifty drag and drop abilities of VS.NET 2005, the IDE will actually create the datagrid ...
Been working on the tool I mentioned before to manage the object repository in a previous post. I dutifully fired up the VB.Net IDE, and began work. However, there are some snags: 1) The tool API is a COM object. Not a big deal, but a little unfortunate. Shouldn't be a problem, I was thinking. 2) The API was written to work in VBScript...not VB.Net Issue 1) isn't a huge deal, but 2) is. Why? Well, there are two things causing me grief: 1) One of the methods off of the main object accepts two optional ...
Someone at work noticed I was toting around a C# book lately and asked me “you're a VB guy, why the hell would you want to learn C#?” Before I could answer, he continued... “case sensitive? ughh... semi-colons? no support for edit and continue? no constant compilation? etc...” (he went on a for a couple minutes) To me, the answer was obvious. I'm learning C# for the same reason I learned VB.NET. Because I can. Because I don't want to limit myself to knowing a single language. ...
Eric Johnson picked up on a very interesting thing when he blogged about the Visual Basic Coding Conventions posted on MSDN. It would appear there are differences in Visual Basic and C#. Who knew??? I mean beyond the usual semicolon thing of course. And the Visual Basic Coding Conventions document tells us to embrace these differences. Such as using the Visual Basic Name space and instantiating objects with Dim x as New ... Eric points out that the other .Net languages (C#) do it differently. You ...
A customer recently requested that I provide them with Microsoft's VB.NET coding standard for their developers to use on our project. To prepare my document I referenced the Visual Basic Coding Conventions located on MSDN. While reading this article I found some surprising recommendations that I very much disagree with. Naming Conventions “Use namespace qualifications rather than adding Imports statements. If a namespace is imported by default in a project, you do not have to fully qualify ...
On Friday, December 16, I had a special visitor come speak to my programming classes. His name is Brandon McMillon. His official title is Academic Developer Evangelist. He lives in Tampa and covers Florida, Alabama, and Mississippi. He started working for Microsoft in 1996, working for the Visual Interdev test team. In 1999, he moved to the Windows product team, spending 5 years there as a program manager and lead program manager. He was involved with shipping Windows 2000, Windows XP, and Windows ...
Just for the record... Charles Petzold is a freakin' genius! (...but you already knew that, didn't you?) I'm still working my way through his Programming In The Key Of C# (I read it at lunchtime and at night before I crash) and I swear to you, I literally learn something new almost every time I pick it up. Not just something new about C#, mind you, but a little more of the Petzold way of programming... regardless of the language you choose. I'm talking about stuff that's so painfully obvious, after ...
ASP.NET Collapsible Draggable Panel Server Control - The collapsible panel extends the WebControl and it provides: A designer where users can place other controls inside (using the default ReadWriteControlDesigner), the collapsible panel can be nested and the panel is draggable. Building Client/Server applications with VB.NET for secure private file sharing - In this article, a simple client/server solution is presented for secure private file sharing. The security is provided through a symmetric ...
Hello World! I've been lurking around the blogosphere a little too long, and have a bad habit of posting long rambling discussions in other peoples' blogs. I guess I finally need a place to place my OWN rants and comments. I'll be making posts about: .Net, mostly VB.Net and a little ASP.Net MS CRM, I mean Microsoft Dynamics CRM SalesLogix, I mean Sage SalesLogix CRM (another mid-market CRM product, a competitor to MS CRM) and probably some other miscellaneous discussions of interesting stuff. One ...
This is an entertaining account of a C# fan boys first encounters with Java. It pretty much does demonstrate why there aren't many developers going in that direction and what Java has to do to get it's house in order. I personally loved Java until Microsoft caught up and took over, specially now VB.Net has got it's cool back with VS2005 ...
Crossposted from my Apress blog... I’m learning C#. As someone who has been using VB since version 3.0 (around 1993) and vb.net since the first beta, I’ve been on the fringes of learning C# for a few years now. Oh sure, I could read it pretty easy. Drop the semicolons and add a few keywords here and there… piece of cake. The problem was, I always tried to relate it back to VB. I never just absorbed it as C#. At some point, I decided to actually LEARN the language. Learn it, use ...
Crossposted from my Apress blog... I am, among other things, an upcoming Apress author. I’m currently working on a vb.net book titled Beginning Role-playing Game Development with VB.NET 2005. Writing games is pretty easy. Writing a book about writing games is not. Wow, was that the understatement of the decade, or what? Don’t get me wrong… I’m thoroughly enjoying the experience, and I can’t wait to get it published. I really really can’t wait, because it means ...
I am just started my journey in SQL Server 2005, and for a while I'm stuck because CLR is disable by default in my SQL Server 2005. Then I found this in google to enable CLR in SQL Server 2005: EXEC sp_configure 'show advanced options' , '1'; go reconfigure; go EXEC sp_configure 'clr enabled' , '1' go reconfigure; -- Turn advanced options back off EXEC sp_configure 'show advanced options' , '1'; go From here, we can create User Define Types (UDF), User Define Function (UDF), Table value Functions ...
Introduction:I thought getting used to C# 2.0 (as a programming language), ASP.NET 2.0(as web development platform) and SQL Server 2005 would be good enough of a thing as far as - understanding next release of .net framework (i.e. ver 2.0) was concerned. You bet! I was wrong. I felt like knowing INDIGO would be good enough for sure and I'd be able to use it whenever the time would come. I had read introductions about Avalon, Win FS etc and thought good GOD this .NET 2.0 is becoming massive as far ...
Kyle asked for it, so now on Where's Tim, you can get directions, and distance from anywhere to my current location. Push the "Get Directions to Tim" button, a dialog box will instruct you to select a location on the map, you click on the map where you currently are (you can still drag and zoom the map), and using AJAX, it will generate a Google map with driving directions and mileage from where you selected to my current location. Like I was talking about before, we want Where's Tim to resemble ...
Chris Williams posted a request on his blog (Blogus Maximus) for programmtic creation of virtual directories in IIS 6.0. Some time ago (actually, a long time ago, not even this calendar year), I wrote a small WinForms application in VB.NET to accomplish this very task. The reason for my client's need is that they don't install to the default Web and wanted a simple installation solution without buying an installation product. While researching this I became curious as to writing the code to perform ...
The information below is pretty wild. .NET 2.0 is really great. I have been teaching on this since Jan 2005 and using it in production since B2 came out around March. I must say I am really impressed with both performance and ease of use. Of course, I use VB.NET all the time. 1. NET vs. J2EE and IBM WebSphere Adoption for Mission Critical Apps: The IDC Study IDC-conducted study of adoption rates of OS and application platform/vendors for mission critical applications conducted in 8 countries (Asia, ...
Welcome to my blog! I am here as part of the growing community of support for Computer Science Teachers. This blog is a vehicle for relating lessons and experiences that may be helpful to others in teaching CS to high school students. In this post, I will introduce myself and provide some background info. I teach Computer Science and Astronomy at Pine View School in Sarasota County, Florida. I am in my 32nd year of teaching and 18th year at Pine View. I teach in a lab with 30 Dell computers running ...
I’ve been busy. Don’t ever seem to have enough time to write about my current projects. Time seems to fly when you are having fun. It started when I was at TechEd 2005, manning the INETA booth. I was approached by a guy who asked me if I was a User Group leader. I responded that I was and he introduced himself as an employee of Red-Gate Software. He told me that if I did a presentation utilizing the Ants Profiler, he would give me one and provide one as a giveaway during our meeting. ...
I've wanted to start this for awhile now. It just seems so hard to find time. But, I decided to just do it after realizing I spent way too much creative time thinking of reasons why I cannot start. I love C#. I started working with VB.NET over five years ago -- whenever the release candidate for 1.0 of the Framework was out. I switched a little while later. Originally, I just wanted to be ambidextrous with the languages, but I quickly found that I liked C# on every level and I haven't looked back. ...
During Sarah Blow's talk at DDD2 on Windows Mobile Development, she kindly plugged the RapidDB libraries which I have developed which are being made available as an open source project. It this sparked your interest you may want to find out more ... Basically, RapidDB is a set of libraries to provide a combination of; agnostic database access (SQL Server 2000, SQL CE 2.0, MySql 4.x, IBM DB2, Access MDB, Oracle 9i 'nearly there') a thin object relational model wrapper for communicating with the database ...
We’ll it’s been awhile, but I’m back to the ‘art’ of programming in VB.Net / ASP.Net.Today I was trying to figure out how to set data in a GridView to uppercase. Well, not finding any help out there, I decided to forge my own path. Below is what I’ve discovered.The first step is to create a function that converts the cells contents into uppercase...I want to convert the data in the 9th cell (column) – remember the grid cells are zero based, so visually this ...
I'm not implying that you shouldn't buy the full version VB.NET to C# conversion products if they have the functionality that you really need. However, I do think it would be silly not to take advantage of the free demo versions and/or the other free tools available for doing this if it will get the job done without having to purchase anything. So here are a few of the options I've found for converting VB.NET code to C# for free: TransKing (free demo version allows 600 lines of code per file)http://www.e-iceblue.com/ ...
Have you ever wondered what is the most popular programming language on the planet? Today this question came across my mind and I quickly found the answer at TIOBE Programming Community Index. This ranking is based on the wold-wide availability of skilled engineers, courses and third party vendors. The ratings are calculated using popular search engines like Google, MSN and Yahoo!. First thing you will note that during last year Java has finally dethroned the old king - the C language. It's interesting ...
One of the things I've been meaning to do for a while is set up a site that focuses on vb.net development. I've got several domains and websites floating around out there already, some of which I've been neglecting (shocker, I know!). One of the sites I started about 5 years ago (MysticTriad), has not been touched (by me or anyone else) in ages and is mostly just a conduit for people to spam me with Zo loft and Vi agra ads. I'm pulling the plug on it by the end of this month. Any blogging I do about ...
Some developer emailed me and asked that how can he extract TextBox text when the TextBox is inside the GridView control. So, I implemented few lines of code to access DropDownList, TextBox and also ListBox which are inside the GridView control. First you need to populate the DropDownList and ListBox object. // This method also Populates the ListBox should be called PopulateDropDownAndListBox() :) public DataSet BindDropDownList() { SqlConnection myConnection = new SqlConnection(GetConnection... ...
Just got back from a great MVP Summit... Gotta give some props to the VB.NET team for all their hard work and willingness to listen to and reply to our feedback. I don't know about the rest of the VB MVPs but I'm getting the distinct feeling that VB's mojo is starting to return. This is based on talking to other VB MVPs, checking out all the features of VS 2005, and comments made by the VB team about what to watch for in the future. I'll be honest, I've thought about switching to the dark side (C#) ...
Contents Introduction Advantages of both languages Keyword Differences Data types Differences Operators Differences Programming Difference New Features of both languages in 2005 version Conclusion Introduction Some people like VB.NET's natural language, case-insensitive approach, others like C#'s terse syntax. But both have access to the same framework libraries. We will discuss about the differences in the following topics: Advantages of both languages Keyword Differences Data types Differences ...
Problem I wanted to create the sourcecode for a class which inherits the service class in the webservice proxy which is generated by adding a webreference. The new class should define all the functions/subs which are webmethods excluding the beginXXX, endXXX (for asynchroous calls) and the functions like GetHasCode and ToString. As there were about 80 webservices an automated generation system was needed. The option of analyzing the WSDL by examining the XML was to complex for the time foreseen. ...
As with so many of these debates we never seem to draw conclusions. I would like to take this opportunity to do that as this is an old debate and one that really needs finally putting to rest.I started this debate here on Channel 9 because this old issue hasn't really been resolved as VB does encounter a lot of FUD.A good example is that many UK companies will hire a C# developer for approx £5000 more than a VB.NET developer, this is because the HR guys have been steered by us, we have created ...
Before I paste the code. I like to thank Longhorn for providing me the code in VB.NET for opening the pdf file. The code is given below: private void ReadPdfFile() { string path = @"C:\Swift3D.pdf"; WebClient client = new WebClient(); Byte[] buffer = client.DownloadData(path); if (buffer != null) { Response.ContentType = "application/pdf"; Response.AddHeader("content... Response.BinaryWrite(buffer); } } powered by IMHO ...
Can anyone tell me why a VB.net Boolean reserves 2 Bytes of memory, as opposed to 1 bit (0 or 1) or some other amount (smaller than 2 Bytes)? Thanks!
I built a test application this morning to prove a concept. While writing it, I decided to keep everything within one class and not worry about good separation of code and objects. This was "quick and dirty" all the way. When I compiled the code, I kept getting an error telling me about how the static reference was not correct. Silly me, I forgot to copy the error down so I could show it off here. But after some review, I realized I had the following: static main(){string doSomething = doThis()} ...
I used reflection to accomplish a task involving converting structures in VB.NET to parameters for a SQLClient.Command. 1. Get the type and loop trough the fields of the struct to obtain the name, the value and the type through .GetMembers. 2. For setting values in the struct you have to assign the struct to a variable of the type ValueType and use the InvokeMember methods.Dim MyStruct As New MyStructType MyStruct.aName = "Claeys Kurt" MyStruct.aDate = System.DateTime.Today MyStruct.aNumber = 17876 ...
Thank you Julia Lerman for finding this one and returning it to me after it got lost... The title of my book was done ages ago, I'm writing the actual book now. It's just slowwww going. I have a full time day job of course, and a chronic inability to say no to extra projects. In addition to my day job, I'm also: - working on a fairly lucrative sideproject for a local company - teaching programming a couple nights a week at the local high school - preparing to deliver a weeklong vb.net MOC course ...
My company is hiring 2 web developers immediately for my project. Title: Web Developer Technical Skills: VB.NET & VB6, ASP.NET & ASP, Oracle / PL-SQL, Agile Development Techniques Location: Scott Air Force Base, IL Area Code: 314, 618 Job Description: The DataTech Group is looking for an experienced Web Developer for design and development of Telecommunications Inventory and Billing Application for Department of Defense. The position requires ELIGIBLITY for DOD secret clearance. US Citizen ...
Last I heard, there were something like 50% of the VB developers out there that were still using VB6 and writing and maintaingn VB6 code. Based on the feedback and uproar of the developer community over the discontinuation of the VB6 support by Microsoft, there are still TONS of folks out there in VB6 land (present company included). Face it there are thousands of companies out there with lots of time and money invested in millions of lines of VB6 code. Can they upgrade it all over night and move ...
Using LDAP to authenticate users is common, fast, and easy way to do. A while back I wrote a tutorial about how this can be done in a web app using the IP*Works! LDAP component. This particular article was written using VB.Net code samples. Some people ask me for classic ASP code samples, here you go. Lots of people ask about how to change an Active Directory (orADAM) user password over LDAP. With Novell, SunOne, and OpenLdap, its not so difficult as long as you have the administrator permissions ...
Many people had been inquiring how they can use their existing .NET skills to develop applications for Linux. Mono was what got people excited but I have seen all the interest and enthusiasm recede as soon as people get a glimpse of how they can go about developing applications using Mono. I believe its primarily because most .NET developers are Windows users and don't have enough Linux skills to get started on Mono. Enter Grasshoper, the Visual Studio .NET IDE for Linux. You DO NOT actually have ...
I feel like a lot of progess has been made this week. Thanks to Chris Williams making the code for HA's dungeon mapper availalbe, I can now display real dungeon maps instead of just random tiles (see snapshot below). Integrating Chris' VB.NET code into my C# application took less than an hour...don't you just LOVE .NET! I fleshed out more of the Character and Tile classes as well as adding a handful of new classes for Features. Features will manage things like openings, doors, stairs, traps, etc. ...
Some people in the Aqua-Soft forum had questions about how to call the Windows Desktop Search API from VB .NET. There are two ways to do this right now, using our beta SDK. 1) Download the SDK and Sample (see my post below) files. Reference WDSQuery.dll and include QueryBuilder.cs in your project. Then you can instantiate a QueryBuilder object and use that (the comments in that file, or IntelliSense, will guide you). It's pretty simple. OR 2) Use the COM API directly. Here's what I posted over there: ...
Well, I've finally joined the blogging community. I'll try to restrict comments to useful information but I'm relying on you guys to let me know if I ramble on too much. Starting this blog is aimed to coincide with the release into the open source community of a rapid database development system for .NET which I have worked on over the past year. The goal is to provide generic database access to SQL Server 2000, MySql, IBM DB2, Oracle, Access MDB and SQL Server CE, complete with code generation in ...
I was pleasantly surprised to find how many people actually read my posting Installing MSDE with your .NET application, in that posting I talked about how to install MSDE with your Setup and Deployment created MSI. How to edit it with Ocra so it will actually work. In this posting I will talk about how to configure an initial database for your MSDE app. I wrote this code in VB.NET and used Carlosag.net to translate the code from VB.net to C#, this tool does a great job but I can not guarantee the ...
The Portland Code Camp is coming up in less than 2 weeks, and I'm pretty excited to be a part of it. Not only is it my first Code Camp that features a Game Development track, it's also my first trip "out west"... Yes folks, that's right... the mighty worldwide explorer (I sailed the Atlantic, the Persian Gulf, the Mediterranean & the Caribbean) has never set foot west of Texas... oh the shame! Anyway... these are a couple of the tracks I definitely want to hit... A Business Developer's Journey Into ...
I will be speaking at Tamp Code Camp on July 16th, this is a one day free developer event for developers by developers. if you are in the area I highly encourage you to attend. you can find out more about it here. http://www.tampacodecamp.com/ here is a list of the speakers Jeff Barnes Architect Evangelist - Microsoft Jeff Barnes, MCSD, MCDBA, MCSE – Microsoft Architect Evangelist for the Gulf States District. BizTalk 2004 for Developers Kevin Barnhill Web Architect - Wilson Miller [ www.naplesdot.net] ...
I am teaching a Ascend class on VS2005 in Paris now (June 27,2005).

Started a VB vs C# discussion.

One of the guys said VB.NET used to gen noop lines in msil and it bloated the exe in 1.1.

So he tried it in 2.0. Now VB does not do it but C# does so the C# exe is larger than the VB one.

3 cheers for the VB team.
Extensive Examination of User Controls Extensive Examination of the Datagrid control Understanding Session State Modes Mastering Entity Classes Formatting DateTime in Microsoft Asp.net Code translator from C# to VB.NEt and Vb.net to C# Request Validation - Preventing Script Attacks Unit Testing the Data Access Layer Retrieving images from database Asp.net 2.0 Quickstarts Image Generation Service using Asp.net 1.x SQL Injections ...

The VB.NET / C# wars are a ridiculous waste of time; Still, I found it interesting to note that not one session that I attended during my five days at Tech Ed used VB.NET...

 

A while back I attended a Microsoft internal briefing moderated by Erick Dasque (Erik@novell.com). This was a very informative presentation and I am grateful to Jeff Brand for getting me involved with the call. Here is an overview of some of things discussed during the presentation. What is mono? Open source implementation of .NET Cross platform Unix Family – Linux, solaris, etc Windows Family Embedded systems Open Source compilers and tools Today: C#, Java, Nemerle Preview: VB.NET Jscript, ...
Since it was our very own Ken Spencer doing a presentation on Secure Apps, it didn't matter that it started at 0'dark thirty -- I had to be there. And I'm glad I went, even though I ended up traversing the main hall at least twice to get breakfast and get back to Ken's venue. Main hall treks are only noteworthy because the main hall is about 10 miles long. By the way, somebody warn Bill Plummer that the food was not worth the walk. Without grits how can you warm up your cold eggs? But back to Ken ...