Tag | VB.NET Posts

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 ...
If my previous posting was kind of sophisticated, this one is a lot more down-to-earth and basic... I've been struggling during the morning trying to use the "Call Orchestration" feature of BizTalk. A pretty straightforward feature. But, I couldn't just get it to work. If the called orchestration was in the same project as the calling orchestration, it worked Just Fine<tm>, but as soon as I tried to put the called orchestration in its proper place, it just failed. The solution? Well, I got ...
At a client's request, I've been porting my Tablet PC labs to VB.NET. In the process, I've learned some lessons that might be helpful to others who have to make this sort of a port. This is strictly programmer geek stuff, so I'm hiding it. The rest of you may prefer to look at the cute baby llama. I'm ready for programmer geek stuff... Note: In no way is this intended as a slam against VB.NET. Anything I can do with C#, I can do with VB.NET, and vice versa. It's simply a pair of lessons to keep in ...
As you may have noticed (perhaps on the Visual Studio Start Page), there’s a section of the MSDN reserved for the future of VB. The page is fairly bland at first glance, but there is a great reference to the new features of Visual Basic 10 available in the downloads that I dare say you should investigate. Of the upcoming news, some that stand out are multiline lambda expressions, “implicit line continuation” (AKA goodbye to the underscore, mostly), Auto-implemented properties (one line of code for ...
It's been a three or four days now since I returned from PDC. After seeing all the other bloggers give detailed descriptions of the sessions and parties I didn't feel too obligated to add too much of my own spin on topics heavily covered by others. Instead, I thought I'd wait till the recordings were available and share links to the highlights I was witness too. As to my thoughts on having the recordings available so quickly after the conference and of such a high quality, I can only say I am very ...
I was recently combing through my code and adding HTMLEncode()s where necessary. By the way, don't leave this to the end - you have no excuse since you're reading this post. The first thought that comes to mind to add this is simple, add a central function, perhaps a shared (vb) or static (c#) function to handle this. It'd likely look something like: Public Function HTMLEncode(ByVal s As String) As String Return If(Not String.IsNullOrEmpty(s), System.Web.HttpUtility.Html... s) End Function ...
Introduction Creating custom controls is not as difficult as they actually appear, but before we go creating custom controls lets first look at the difference between Custom Controls (CC) and Custom User-Controls (CU). Simply put Custom Controls (CC) are skinable, themable and reusable controls that once created can be used by simply loading the assembly in any project, where are Custom User-Controls are user controls that can be reused but they can't be skinned or themed. Technically they are both ...

There is a lot of online content available for Silverlight 2 Unleashed!

Read the rest of this entry »

The lex tool is defined in Wikipedia as follows: lex is a program that generates lexical analyzers ("scanners" or "lexers"). Lex is commonly used with the yacc parser generator. Lex, originally written by Eric Schmidt and Mike Lesk, is the standard lexical analyzer generator on Unix systems, and is included in the POSIX standard. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language. The tool accepts an input file that ...
I can just say that I'm happy to say good bye to Blend 2.5, it was really a pain to use to different Blend versions (2.0 and 2.5 as I mostly work on WPF) and since already bought the Expression Studio I was wondering if I had to buy Blend 2.5 just for Silverlight but now I am happy. I might bring new tutorials and now that we have a stable version it will be better I was just waiting for the final and stable release so as to kick start developing commercial Silverlight applications. I must add that ...
Great new downloads for SharePoint developers at the MSSharePointDeveloper site. MSSharePointDeveloper site or "introduction to SharePoint Development site" has been around for a few months now. It's a great resources for developers that are looking to get into SharePoint development. Here's the new stuff you can find there. The VM's have been updated to Visual Studio 2008, which is awesome! Downloadable WSS Dev VPC Image Updated to Visual Studio 2008 (previously Visual Studio 2005). Smaller download ...
So I’ve been trying to do some custom build numbering for my Team Build project and was confronted with a lot of let’s say “uninformation” and some great information also. I really didn’t want to create a custom task that I would need to maintain so I set on a long search for the Truth… needless to say I didn’t find it. But here is the information I found that should get you you to the right place. There is a great custom task created by the MSBuild team that used to be on GotDotNet but is now MSDN ...
I am still working on the GAGame when I get some time, but it's been tight lately. I am indeed working in CSLA, and I am using VB.Net for grins. I have most of the db done, and wanted to get started working on some of the plumbing in CSLA (read as: refresh my memory on how it works). I d/l the most recent version of CSLA, but it is radically different from what I was using previously....so I d/l the version with which I am familiar. I want to get my game working on a CSLA platform to which I am used, ...
I am currently working with a client to bring .NET support to the FLEXnet Publisher Licensing Toolkit version 11.6. The toolkit, as shipped, is very tightly tied to the C language, and it is designed for use with client applications written in C. My client, however, wants to use the toolkit from VB.NET 2.0 applications. I set out, therefore, with a vision that stated "make FLEXnet look like .NET". My first approach to the problem was to use P/Invoke to write a wrapper in VB.NET 2.0. This wrapper ...
I felt with the amount of time I've had this, I should actually make use of this blog. My name's Max. I live around Philly and I write VB.net and C# at a non-consumer-oriented software shop around King of Prussia. I live and breathe database queries and web apps while I'm at work and I produce electronic music when I'm outside of work. In addition to coding, I'm gonna talk a bit about digital music in the computer age here. You know, the good stuff. Making things make sound that shouldn't and the ...
On his blog, Rocky states that we will soon see the VB.Net version of CSLA supported by a purely community effort rather than his own time. He'll continue with C#, but looks like the VB.Net community is on its own to figure it out. Truthfully, I've always suspected this would happen sooner or later given the complexity and time involved in CSLA. Some of people who comment on the blog have some certainty that VB.Net is a passing phase on its way out of scope. Rocky himself, however, indicates that ...
Here was a little issue that caused some frustration. I have an app with an UpdatePanel and inside that are two Textboxes each with their own RequiredFieldValidator. Both Textboxes had AutoPostBack set to True. Also each used an OnTextChanged event to trigger some checks from the code behind. The issue was after entering a valid value in Textbox1 you could not tab directly to Textbox2. When you hit the tab key the cursor would blink once in Textbox2 and then disappear. If you kept hitting tab the ...
There seems to be a suspicious lack of documentation for C++ and the new .NET features like Lambdas and Linq. I've tried several things that ALMOST work, but there's just one piece of syntax that seems to be missing that would bring final success. Also, it seems like MS is trying to kill C++. All podcasts (except for those with Kate Gregory) are talking about C# and VB.NET and ASP.NET only hosts (naturally) C# and VB.NET. If you REALLY want, you can create some supporting functionality in a library ...
It is my intention to discuss topics pertaining to my professional experience, specifically my current work with e.magination where I often get the opportunity to implement business solutions using the latest Microsoft technologies. It is my goal to give back to the community and help others out who may run across the same types of challenges I have run into and solved and to foster discussions pertaining to the viability of different approaches to solving technical problems. Since this is my first ...
Microsoft announced BizTalk Server 2009 today, and gave the green light to talking about the new version. It’s due for release in the first half of next year, and is shaping up nicely. Microsoft is casting BizTalk Server 2009 as a major new version in its own right, rather than just an updated 'release' of BizTalk Server 2006. This is an important move, and one I strongly welcome. There is certainly enough in BizTalk Server 2009 to warrant thinking of it as a major revision of the product, although ...
In the years since the .Net runtime was first released I've seen a number of ways of accessing a SQL database from within VB.Net (or C#). One person I worked with had a nifty utility which would take any database and generate all the code to access it. It has been on my list of jobs to do to implement my own such tool but like other jobs, such as winning the National Lottery or winning a high stakes poker game I have never got around to it. OK the poker game is something my wife will have to do - ...
Clint Edmonson called me out on this trip down memory lane and, since I want to use up as much of his Google juice as I can, I thought I would jump in.Initially, this very much reminded me of those "Surveys" that go around in chain e-mails and (gasp!) MySpace pages, but this idea quickly caught my interest. Here is the current link(ed) list: Michael Eaton (post) —> Sarah Dutkiewicz (post) —> Jeff Blankenburg (post) —> Josh Holmes (post) —> Larry Clarkin (post) —> Brian Moore (post) ...
Here is a great tool that changed the way I thought about .NET development... wait for it... Lutz Roeder's Reflector (link). Which uh apparently is now owned by redgate software, makers of SQL Refactor (very nice tool). All right how many people 'know' their language well enough to debate the merits whether it is VB.NET or C#? Are you thinking the differences between the 2 are too great to start a gentlemens discussion? Or simply feel your blood boil? Either way, I am not concerned about pluses and ...
Sometime in the past, a friend asked me how to update a control to show status while his code is doing a loop of stuff. Essentially changing the text of a label (or sophisticatedly we can say a text-based progress bar). In my past coding with MFC and WinForms, it's fairly easy enough, you just invalidate and do an update (Invalidate / UpdateWindow in MFC or Invalidate / Update in WinForms). This approach also coincides with how Windows UI operate, where you specify the region that needs to be redrawn ...
I have been switching between VBScript, C#, and VB.Net all day today. Normally, I do this ok, but today has been unusually rough.... Basically, I have come to detest the "Set" statement in VBScript. I cannot count the number of times I have forgotten this little keyword. Mostly, it's an issue with me changing code to use a reference type instead of a value type. Going back to change all the code to have a Set in front of it is making blood shoot out of my ears..... Oy ...
OK, I am NOT trying to bait an argument here...I like both VB.Net and C#. I really do. I am totally comfortable in either of them. However, I am working on a project the needs me to work in C# and use Word Interop. I am stunned to find this is actually much harder in C# than VB.net. Ironically, C# is usually a much less verbose (more concise?) language, but not in this case. If I want to open a word doc in VB.Net, it's a simple as: Pretty easy. C#? Not so easy.... That's a lot of code to open a doc! ...
Testing the Casino The July meeting of the Roanoke Valley .NET User Group was one of the best ever! During the summer months, user group attendance is usually low. Therefore, we try to have meetings that are a little less formal and require less preparation for the presenter. This July we not only had a HIGH ATTENDANCE but we had 100% MEMBER PARTICIPATION during the meeting. Here's the formula: Take the Black Jack Starter Kit Add Bugs Deliver a brief presentation on Unit Testing in Visual Studio ...
I mentioned a while back that I had something I was working on that involved a change in language, actually a pretty radical change. I have been working on vocational project written in VB.net and made heavy use of LINQ to SQL. I wasn't sure of LINQ to SQL for anything else other than RAD and to be honest I'm still not. Anyway, I'm not getting into that debate. Needless to say I went all the way and don't use a single sproc in this project. Some of you will know I play cricket every Saturday for ...
This piece of code is related to a previous post of JavaScript Window from Code Behind. The idea is the same; I needed to get some JavaScript to run from the code behind. For this example it was to open a new window. The real difference with this and the previous post is using ScriptManager instead of ClientScript. VB.Net Code Dim strScript As String = "<script language='javascript'>" strScript += "window.open('URL Goes Here');" strScript += "</script>" ScriptManager.RegisterStart... ...
A bit of a late announcement - I'm just returning to a schedule after my son was released from the hospital last night. This month’s meeting will start off with Pizza and then break into "The Adventures of Linq". Linq (or Lanquage INtegrated Query) is a new feature of the .Net 3.5 runtime that provides an elegant mechanism for querying data from within C# & VB.Net code. In this session, we'll move past the basic examples that occupy most introductions to Linq and examine the new .Net 3.5 functional ...
So TechEd 2008 was pretty awesome. I spent a lot of time at the VB.NET booth, interacting with members of the VB team as well as VB community influencers and talking with VB users who had questions. I also managed to hit a few sessions. The sessions I hit were really good, and informative, but I have to wonder... I think the real value of TechEd lies in the networking and the spur of the moment discussions that pop up everywhere. I think I learned more that way than I did in the sessions I attended. ...
ok.. So Silverlight Beta 2 was released on and it has some great new features. But what is the story about testing...? 1 Jeff Willcox blogged about a small change you will need to make in order to use the existing testing framework. It is essentially adding a cast to the initial startup code for the testing framework. He also posted new C# and VB.net projectand item templates. He also hinted that there will be a new release of the test framework and some samples of integrationwith a Continuous Integration ...
Tech Ed 2008 has been great so far. I've spent a fair amount of time at the VB.NET booth, talking to folks, answering questions and also hearing about some the cool stuff they've been doing in VB.NET. Lots of LINQ questions so far. Also caught some excellent sessions, including: getting published writing on "MS technologies", "XNA 3.0", "Silverlight" and "UX: Selecting the right technology." I also got a chance to chat with Brian Noyes, the author of the ClickOnce book I've been using on my current ...
After talking with Chris (Craft) about his project for the next 30 days, I asked if he would mind whether or not I took his C# code and converted it to VB.NET to post on my VB Mobile blog and he liked the idea. With that said look forward to having some updated code samples as quickly as I can convert them. See Chris' blog for the latest installments he's released ...
Install IIS, ASP.NET, .NET Framework 3.5, SQL Server 2005 Express /w Reporting Services, a Web Application, create the Web Application database, and Deploy Report files using a batch script... Possible? Yes!!! I often like to explore possibility and this was my challenge. So here's what I did... I knew I wanted to have a batch file to start the installation and get everything installed, but I wasn't quite sure how to accomplish such a feat. So after some Google searches I started to put the batch ...
One of these days I'll make it to a TechEd that's NOT in Orlando, but for now I'm just happy to announce that yes, The Great One, will in fact be at Tech Ed 2008 Developers in Orlando, FL. :) I'll be hitting the BillG keynote, some sessions (mostly the Developer Tools & Languages track), checking out the booths, talking VB.NET to anyone who wants to do so, and of course hitting the awesome TechEd MVP party at the House of Blues. (Unfortunately, The Great One will not be attending Party With Palermo ...
Avoid Much Talk I wrote about Resharper 4 performance improvements in an earlier blog post today showing my VS Color Scheme including use of R# nightly builds. My friend Mohamed Tayseer pointed me out that Resharper 4 BETA was released yesterday. If you already know Resharper, skip the blah blah blah talk and get to the download. Resharper, AKA R#, Who ??? Resharper used to be a must-have add-in for Visual Studio. It completes the features existing in Visual Studio like intellisense (not just smarter ...
One of the goals of a large state-wide multi-agency data sharing project my organization is participating in was to start with a partner designed WSDL and then implement it in the underlying technology of the partner's choice. For my organization this technology is Windows Communication Foundation. From it's inception the WSDL had to be simple and interoperable. This is the second time I had started with a WSDL and then created a conformant service. My organization was one of the few that actually ...
The web service limitations, along with the dynamic nature of most object graphs make the web service support provided by .NET Remoting inadequate for developing smart clients with the same capabilities as full Remoting clients. Expressions use VB.NET syntax and are technically very similar to Excel formulas. In Java, inner classes now come in two main avours, static (a term I don't particularly like) and non-static, see Object-Relational Mapping in accordance with Formal Specification. Object ...
Something that stumped me a few years ago was trying to code a Javascript window (i.e. alert, confirm) from the code behind. I’ve listed some code below on how I did it in VS2005 using VB. For VS2003 the idea is the same but use Page in place of ClientScript and remove the GetType(String) parameter. One thing you do lose when doing it this way is any execution control that goes along with let’s say a confirm window. The window will appear but the rest of the code in the code behind sub or void will ...
It is difficult to introduce both novice and experienced procedural programmers to the anthropomorphic perspective necessary for object-oriented design. Wherever possible we wish to illustrate the use of functional programming in the web domain. In this domain, expressions that involve mirrors of HTML and XML elements are the key constituents. We make new members part of the team through close training and interaction. Expressions use VB.NET syntax and are technically very similar to Excel formulas, ...
This article is for Silverlight 2 beta 1 Update: Corrado Cavalli translated the example in VB.NET. Thanks Corrado!! Apparently, one reader had issues declaring events for the User Control example that I posted earlier this week. He is programming in VB and unfortunately I don't have a lot of experience with VB.NET, so I first created a working example with C#, and my good friend and fellow MVP Corrado Cavalli translated the example in VB.NET (see below). The big difference between WPF and Silverlight ...
As a VB.NET programmer i only really use C# for XNA and other projects when i don't have a say on the matter. Recently i have begun to think about making a full blooded transition to C# after having some great success with it (specifically in XNA) and its not because VB.NET doesn't cut it. It is great but C# is also fantastic in my opinion, as it took features from some of the more distinguished languages avaliable, C++, Java and Object Pascal to name a few. Feature wise they are perfect for me no ...
There have been a couple of posts here on GWB about VB.NET vs C# stats. (It looks like the report includes VB and VB.NET together.) http://geekswithblogs.net/c... http://geekswithblogs.net/T... I write in both languages and I don't really have a preference for one or the other. The fact is the languages are equals. You can get anything done in both languages with the same amount of work. There are some differences but it mostly ...
I've got news for everyone out there: VB.NET isn't going away anywhere. I've got other news: C# is a great programming language. So is F#, and Iron Ruby, and Iron Python, and <insert language here>. In fact, now more than ever we have choices as to what language we can use for our development, and for some reason *that* fact has been lost in the noise of the language argument. Here are some facts: VB.NET has been a great language for those who were exposed to VB 6.0 and made for a very easy ...
Ok, so VB.NET isn't in 1st place (see this report) but it is ahead of that "other" .NET language. You know, that "other" .NET language that starts with the letter "c". You guessed it, COBOL.NET!! Kidding aside, it looks like VB.NET is making a VERY STRONG showing against some solid competition. VB.NET is in 3rd place behind JAVA and C and I think that ROCKS! VB.NET is kickin' some COBOL (and c#) butt! Tell all your friends, they probably won't care, but tell 'em anyway. Have a day. :-| ...
I don't think anyone will disagree that our thoughts can play a huge role in our emotions. One thing we have as human beings that sets us apart from every other species on the planet is self-awareness, the unique ability to analyze our thoughts and emotions and make adjustments to our behavior based on that self reflection. The following is for all the VB.NET developers who migrated to .NET from VB6 (or earlier versions). Close your eyes and imagine this scene in your head: Years ago, say in 1998, ...
*Moved to: TFS Sticky Buddy v1.0This is the first full release of the TFS Sticky Buddy application written in VB.NET 9 and WPF with Visual Studio 2008 Team Suit. Read more...Follow my new blog on http://blog.hinshelwood.com ...
Now that I've had a few hours of sleep, here's a bit more involved report on Alt.NET day 1. Also, if you want to see video of the opening of the conference, Jeffrey has video of it on his blog here. First off, we went over the 4 principles of open space: - Whoever comes is the right people - Whatever happens is the only thing that could have happened - Whenever it starts is the right time - When its over, its over Now these might seem a bit airy at first glance, but they make a tonne of sense. The ...
[code:xml] ASP.NET 2.0: Use VB.NET and C# within the App_Code folder Original Article: http://pietschsoft.com/post... Thanks to Chris Pietschmann There is a way to partition the App_Code folder into sub-folders, one for each set of code files written in the same programming language. Awesome, I didn't have to spend a couple hours converting code from VB.NET to C#! <configuration> <system.web> <compilation> <codeSubDirectories> ...