Tag | CodeProject Posts

Hmmm, Just fired up VS2008 to start a new Addin based project, but couldn't find my Pipeline builder addin anywhere on the tools menu! Argh! Downloaded it again from the codeproject page: http://www.codeplex.com/clr... and ran the installer - chose 'Repair', restarted VS2008... Still not there! ARGH ARGH! Tried disabling the addin via the 'Tools->Addin Manager' errr manager, but to no avail.... Finally - re-ran the installer, chose remove - removed the builder, reinstalled it and now thankfully ...
May be you are a die hard Microsoft fan, or just another bunch of showbiz talk-lock fella or more better you use some of the Vista features in your application and want that only genuine Microsoft Vista owners apply to your services. Actually, I wrote this code like a year ago, and now while browsing through my backups, I noted that it lied there uselessly. I never used it but probably any one of ya might want to apply this logic. This is the usage of the function: 1: bool valid = new WgaHelper().IsVistaGenuine(); ...
We are going to have a windows service that will run a few workflow(WF) instances. I want to have configuration information to be stored in separate config files for each WF instance. I remembered that EntLib has helper classes to store custom objects configuration in separate custom configuration file, but finding good examples in Google wasn't easy(probably I didn't find good search keywords). The links that I finally found(more relevant to the task first) Tom Hollander 'post External configuration ...
Introduction I've been posting a lot about Silverlight lately, but hey, here is a WPF post, and about WPF integration, no less. Note: To fully understand this article, you should have a basic understanding of WPF, styles and templates, triggers, etc... Read the rest of this entry » ...
As I mentioned during my rant earlier this week, localization is fairly difficult with WPF. As it stands right now, the only real tool support Microsoft offers for localization is a tool called LocBaml.exe, which they clearly mark as "not production-ready." Samples available online describe how to utilize it, but there are significant drawbacks to its current implementation. First, since LocBaml generates CSV files, it is difficult or impossible to localize most anything other than simple strings; ...
In my previous posts I have talked a bit about Inversion of Control (IoC) containers with respect to Interception and Aspect Oriented Programming (AOP). It's not only important to understand the uses and strategies for implementing your solutions using it, but also how interception and AOP works deep down in .NET. Instead of a long, drawn out post, I think I'll just include some articles and posts that do a very good job of explaining some of the ideas behind it. Articles and Posts I think it'd be ...
I've blogged in the past about Community Credit and really love the site. As a 5 time Community Credit winner, I just received the email today (although I actually knew about it over the weekend) that I have been inducted into the Community Credit Hall of Fame for 2008. There are a total of 17 inductees, all of whom have contributed a great deal to the development community. Thanks David for all of the hard work keeping Community Credit running smoothly so we all have a place to share with the community ...
Finally decided to start my own blog and hopefully contribute something useful. One of the things I will be covering here and also posting on http://www.codeproject.com/ is a series of examples showing how to create Business Objects. I know what you're thinking, how simple minded is this Sean person. The reason I want to cover this topic is because when I look at some of the well know free Business Object frameworks, like Rockford Lhotka (http://www.lhotka.net/csla... which is a phenomenal piece ...
After finishing the mini-lecture circuit and my often viewed dive into Spec#, I decided to see if anyone else was working in the Design By Contract (DBC) arena with C#. Greg Young and I often talk about this subject and various scenarios where it would make sense, and where it wouldn't. Hopefully we'll hear more from the Spec# team shortly about the futures. It turns out there are two other attempts at what Spec# does, and that's what I'm going to dive into today. Back to Basics So, first, let's ...
A few days ago, I announced that I had been recognized as a Microsoft MVP. About 4 days later, I found out that I had also been awarded a CodeProject MVP. This is certainly turning out to be a busy and exciting start to the new year ...
I guess I need to commit to posting non-submitted stuff more regular. I stopped doing that a while back, and some good stuff rolls off the end, such as: Frank LaVigne's Christmas Card tutorials, Resizing SL apps revisited, without JS, Falling Snow in WPF, using SL in a business app, what the FF unresponsive script message means, and Windows Media Player 11 as a UI to emulate. From SilverlightCream.com: Silverlight 1.0 Tutorial and Lessons Learned from Frank La Vigne This is an aggregation by Pete ...
I came across this article on codeproject and i found it very helpful when writing queries against SQL SERVER it simples guides you what to avoid and guides to writing good sql queries. You can go through the article here I know its difficult keeping the rules but its possible. I'm out looking for a SQL SERVER 2005 DO's and DON'TS since alot has changed ...
If you've done any work with WinForms apps in Visual Studio 2005, you may have noticed that you can't get your buttons and toolbars to look as "pretty" as the built-in Vista apps you get from MS. Here's a good article on CodeProject which details how to fix some of that. It details: Getting the fade effects on some common controls (Buttons, Checkboxes, Radiobuttons, Textboxes, Comboboxes) Getting images working on Buttons, and preserving fade-effects Getting the fade effects on toolbars Getting the ...
I wanted to find a Schedule Asp.NET control with Source Code as astart point for my development. I found in CodeProject , but they have LGPL license,that is not acceptable in my commercial application DayPilot Pro looks the most closed to what we need,in particular combination of http://www.daypilot.org/dem... and http://www.daypilot.org/dem... Intersting sections to extend functionality is Custom event rendering . ComponentOne WebSchedule for ASP.NET looks nice, ...
I have uploaded SmartCodeGenerator 2.7.0 today. This release ships with scg_console.exe which integrates NAnt and Cassini with SmartCodeGenerator development cycle. I have also uploaded a new article at CodeProject demonstrating "How to use SCG along with NAnt and Cassini." Smart Code Generator: Code Generation experience with ASP.NET, NAnt and CassiniThis article describes how NAnt and Cassini can be integrated with the Smart Code Generator development cycle. This article can also used as a reference ...
There's a great two part article on CodeProject about faster serialization (primarily for use in remoting) in .NET. Part I details the code used in this technique. Part II is sort of a HOWTO for the code introduced in Part I. Some test results: Northwind - tables only A DataSet containing all 13 tables from Northwind. Method Size (bytes) >Time Taken (seconds) Vanilla .NET serialization 1,431,297 0.560 Fast Serialization 383,001 0.031 73.2% smaller 18.1x times faster Northwind - both tables and ...
A good article on CodeProject detailing code for a Directory.Copy() method. This version also is a good example of how to use events with your background threaded code. I was near the end of a drawn out development project for adding users to an Active Directory server when I was informed I would also need to set up their Thunderbird client settings. This required me to create a copy of a directory, sub-directories, and files over at the user's "My Documents" folder. I tried using Microsoft's MSDN ...
The author of this control on CodeProject calls it a "split button". I'm sure there's a reason he came up with that particular nomenclature, but I prefer dropdown button. Basically, it's a button that acts like a dropdown list. You can push it and select the default actions, or select one of the other actions from the dropdown menu. Whatever you call it, it's pretty sweet ...
UPDATE: In .Net 2.0 there is DataView.ToTable Method (String, Boolean, String[]) that does, what my function (and MS KB article 326176) was created to address. The article is now obsolete. UPDATE: there is also optimized for performance class in CodeProject DataTable with SelectDistinct in VB . I was using a DataSetHelper class based on MS kb article 326176 HOW TO: Implement a DataSet SELECT DISTINCT Helper Class. However SelectDistinct function from the article works only if you select distinct ...
An exceptional article on CodeProject detailing an extensible mass emailing framework using the MS SQL Server 2005 Service Broker. I'm not sure about the IM-conversation style of writing, but that's just taste. The content is first-rate. What's the Service Broker? Service Broker is a new feature of Microsoft® SQL Server 2005. It offers asynchronous messaging support, and is tightly integrated with the SQL Server database engine. Service Broker provides a new, queue-based durable messaging framework ...
One big complaint I have with .NET is that there are too many ways to launch one or more background threads. If you're interested in doing that, and you start perusing through the documentation, you'll immediately find lots of information on how to do it. In several different ways. And there's really no guidelines such as "Use this method if you're doing X, and this method if you're doing Y", etc. Mark Newman does a decent job of laying this all out and (sigh), gives you one more choice in his article ...
This is a decent article oin on the Command Pattern on CodeProject by Chris Laster. I’ve linked to his stuff before, and generally find it well-written. This one might be a little bit on the simplistic side. I tend to think of using the Command Pattern more often for things that need to occur asynchronously or in another thread, but obviously that’s not a requirement ...
A necessary evil of ASP.NET development is the ViewState. And if you’ve done much ASP.NET development, you’ve realized that you often need to turn the ViewState off for things that don’t really need it to reduce your page bloat. But, what do you do when you’ve eliminated everything you think you can, and your page size is still huge? Well, you really have three options: Abandon the ViewState concept completely (not something I recommend) Store the ViewState on the server somehow, ...
This article on CodeProject is one of the best I’ve read in recent memory. It details how to use the MVP pattern in ASP.NET, with a small sample and then builds on it, adding user controls, events, page redirects, security and then shows you how to build this into your Enterprise Architecture. Only complaint? One could argue (incorrectly in this case, I think) that it suffers from too much OOP ...
This is a pretty good article on CodeProject about writing a dynamic accessor for properties. The interesting thing is how close he gets to the performance of compiled code (1/2 speed), and how much better he does than reflection (30 x speed). We all have to do this at times, and I wouldn’t have guessed you could improve upon reflection by quite this much. Worth a look. ...
A good article on CodeProject on using Dynamic Themes in ASP.NET 2.0. ASP.NET 2.0 makes it very easy to give your site a complete makeover in just a few lines of code. ASP.NET 2.0 makes dynamic themes really easy. No need to envy someone having cool multiple themes you can have your own instantly! This instruction shows you step by step how to make dynamic themes in C#. You can practice this code alone with Personal Web Site Starter Kit. Source code can be download at http://www.edream.org/image... ...
This article on CodeProject deals with the intricacies of managing delegates and multiple threads. If you’ve ever tried to use or modify a Control from any thread other than the main thread, then you likely have run into some of the difficulties Leslie Sanford is trying to solve. I need to go back into a little utility of mine and hook this in, because it’s a better solution than the one I came up with. Note that this uses Delegates, SynchronizationContexts and the ISynchronizationInvoke ...
If you can read this then Windows Live Writer did its duty and submitted it correctly. I did not blog so much lately because I did try to get some articles at CodeProject up. If you want to see how various functions of StringBuilder and String perform you can have a look here. A quick introduction into the System.Configuration namespace of .NET 2.0 where you learn how to read/write your App.Config file is also worth a look. To make things complete I did dive into the dark corners of my processor ...
Generics get all the press in .NET 2.0, but anonymous method are pretty cool too. CodeProject has an article on using them that’s exceprted from Practical .NET2 and C#2. I haven’t read this book, but based on the stuff I see here, it looks like it’s very good ...
Another good article on CodeProject by Anoop Madhusudanan. This one on Design Patterns. The intro just draws you in immediately: Solution Architect: "But you can use patterns" Dumb Developer: "Yes, But can I get it as an ActiveX control?" Anyway, as he says: In this entire article, you will go through the following steps You will model a very simple football game engine You will identify the design problems in your football game engine You will decide which patterns to use for solving your design ...
What’s missing from .NET development? A good scripting language. Well, there’s one on CodeProject: C# Script. The article on CodeProject describes version 1.1.0 of the app, and it’s now up to 1.6.0. Anyway, this is a very slick utility if you’re doing any scripting, and worth a look. This article describes a "script engine" for the C# language. Here are some of the key features of the presented scripting system: Based on the full featured C#. Full access to CLR and CTS. Can ...
I'm sure if you're a Dave Ramsey listener or a CodeProject Insider subscriber, you've already seen this one. Monopoly ditches cash I understand the fact that most Americans use debit cards for most purchases, but Visa is just way out of line on this one. Branding their debit cards on an American icon is one thing, but the debit card isn't Visa's only product. If they can get their paws around the next generation as early as possible, we have the habit of being tremendously brand-loyal. Imagine, a ...
When we had worked in SQL Server 2000, including deployment into the remote server, for deployment in testing servers as well as slice the whole database in several parts requires sripts to be generated for both database schema and data. By this time for schema script generation I used “Enterprise Manager” and for generate SQL INSERT script for data I used an third party tool, found in codeproject, which can be found at http://www.codeproject.com/... Beside to populate ...
I didn't write for some time about my RealSimpleBlog control because I was quite busy with other subjects (WPF mostly). However, I am making nice progresses, and I think I can say without too many risks that the integration in my PhotoAlbum will be ready before we fly to Malaysia on wednesday. Actually, I also integrated the control on my main page, and if you select this link, you will see it in action! I also set the page up to generate a static HTML file on demand, so the old address is still ...
Definitely it was a great experience for me when i have first seen my name on the official site of ASP.NET. http://www.asp.net has mentioned my articles in the "Latest Articles" section by 22nd March 2006, titled 'Common UI Practices in ASP.NET Applications' which was originally published in http://www.codeproject.com. Later for just after 5 days, by 27th March 2006, asp.net published my another article 'A Simple HTML Builder Utility Class' which was also orginally published by codeproject . However, ...
In previous posts, I have talked about the "What All Great .NET Developers Should Know" as well as my own list of questions. This time I'm looking for questions that Great BizTalk Developers Should Know. Naveen Karamchetti had created a list off CodeProject entitled "BizTalk 2004/2006 Interview questions that every developer must know...". Unfortunately for us he already had the answers posted, but if you stay here for just a minute, you can ponder the questions on your own. I'm adding some to his ...

There’s a good article on CodeProject on making your website accessible and user-friendly to elderly users.  Good design tips.

Leslie Sanford has a three-part article on CodeProject detailing a .NET State Machine toolkit. Part I is an introduction.Part II details more of the inner workings.Part III details how to use the toolkit and sample app to generate your state machine code. He starts with a very simple two-state state machine (light switch), and progresses through a simple hierarchical state machine before getting to the fun part and showing you what’s under the covers. Certainly there are tools out there you ...
Gerald Gibson has a good article over at CodeProject for creating an in-process asynchronous service in c#. It allows you to queue up jobs that implement a specific interface for processing in the background. I recently built a scheduler from the ground up that did the exact same thing :-)… Bummer. Create in-process asynchronous services in C# - The Code Project - C# Programming This article describes how to make an in-process asynchronous service in your C# applications and why you would ...
This is a great CodeProject article on an import/export engine for fixed length or delimited files or streams.
I recently say a couple of articles on CodeProject that showcased wrappers to simplify using the CodeDom http://www.codeproject.com/... http://www.codeproject.com/... I am in favor of anything that encourages use of CodeDom and tries to flatten the learning curve for using the CodeDom. Unfortunately, most examples of using the CodeDom seem a little contrived. This makes using the CodeDom seem like over kill. Consider some of the following applications: Using the ...

Régis Daniel de Oliveira has a great article at CodeProject on how to improve ViewState performance.  His article is definitely worth a read.

Keep ASP.NET ViewState out of ASPX Page for Performance Improvement

I just read this super cool article on codeproject which explains that how you can customize the templates in Visual Studio.NET. Let's say you add a class in your project and you see the commented code which you don't want well, you can easily get rid of it by modifying the templates of Visual Studio. Check it out: Customizing Visual Studio's Code Generation Templates

I've recently submitted an article about DebugBreak (and, in a way, ASSERTs), why it does not work sometimes and how you can improve it to get it working always. The article is available on the CodeProject through this url http://www.codeproject.com/debug/DebugBreakAnyway.asp.

Well not the best of the things to happen in a while but it’s worth mentioning. After all out of the one million plus registered users there, only about a 1000 would be anything near touching the gold status. I have written two articles for CodeProject.com and made around two dozen posts in all but the years in accumulation which are now two have raised me the rank of GOLD users. My own page on codeproject is located at: http://www.codeproject.com/... I am pleased, ...
I have always been very enthousiast about the CodeProject site In the early days (when the CodeGuru site had been taken over, and CodeProject was started as a replacement) i was one of the first members, wrote some of the first articles, and was an editor for some time. I even think i played an important role in making the CodeProject site the number 1 site for shell programming, by writing the first articles in this area and thus attracting programmers who wrote similar articles. The site soon became ...