For comments or enquiries please contactwebmaster@codeproject.com
|
Monday, May 30, 2011
|
Welcome to this week's newsletter from The Code Project.
To ensure that future newsletters you receive from The Code Project aren't mistakenly blocked by antispam software, be sure to add the maillist.codeproject.com domain to your list of allowed senders.
Site News
As promised we're announcing another chance to win some toys by writing an article. OurHTML5 / CSS3 competition starts today so dazzle us, amaze us, break us free from the 1990's. An iPad 2 is up for grabs as well as CodeProject stuff and the usual fame and adoration.
And speaking of competitions, the winners from last months article competition have been decided by you:
Best VB.NET article of April 2011
| |
Prizes:
|
Shell MegaPack.Net 2010; The latest VB books from Apress; VBDepend; Reuxables Ultimate Subscription for WPF + Silverlight + Windows Phone 7; Crypto Logger For .Net;
|
Best C# article of April 2011
| |
Graham Wilson - The Amazing ProgressBar Control
| |
Prizes:
|
Shell MegaPack.Net 2010; The latest C# books from Apress; Report Sharp-Shooter for Silverlight; Crypto Obfuscator For .Net - Enterprise Edition; Reuxables Ultimate Subscription for WPF + Silverlight + Windows Phone 7;
|
Best C++/MFC article of April 2011
| |
Karpov Andrey - A Collection of Examples of 64-bit Errors in Real Programs
| |
Prizes:
|
Codejock Xtreme ToolkitPro; The latest C++ books from Apress; CryptoLicensing For MFC - Enterprise Edition; CppDepend;
|
Best ASP.NET article of April 2011
| |
Marcelo Ricardo de Oliveira - MVC Bricks for ASP.net
| |
Prizes:
|
Nevron Chart for .NET (Lite edition); The latest ASP.NET books from Apress; Reuxables Ultimate Subscription for WPF + Silverlight + Windows Phone 7; ActiveReports; Spread for ASP.NET;
|
Best C++/MFC article of March 2011
| |
Prizes:
|
Codejock Xtreme ToolkitPro; The latest C++ books from Apress; CryptoLicensing For MFC - Enterprise Edition; DragonFireSDK - Windows iPhone Development; CppDepend;
|
Best overall article of April 2011
| |
Jonathan Cardy - A Collection of JavaScript Gotchas
| |
Prizes:
|
DevForce Silverlight; Code Project Mug; Mindscape WPF Elements 4.0; ActiveReports; Spread for ASP.NET;
|
Well done!
cheers,
Chris Maunder
The Code Project Offers
Master the hottest Microsoft technologies with this library of 3,000 video tutorials by Microsoft MVPs and experts. An entire year of training is just $99.99 for a limited time. Subscribe now!
| |
The Award winning choice of .NET and COM Developers for Appointment Scheduling, Tailored UI Design, and Resource Drag and Drop Scheduling Controls. Special Offer - Buy One Get One for Half Price. No Charge to get started. Take Advantage Today!
|
Latest Additions
154 articles overall 103 new, 84 updated, 1 moved. 42 were edited, 112 unedited
Article topics listed: All Topics
Too many articles? Visit your profile page to change your newsletter article filters.
Tips and Tricks added
Ajax
- Creating a Delayed Postback - Oakman
Especially as the use of JQuery grows, there may be time when you'll want a postback to occur but not right away, especially if you want to animate something on the browser first. (Unedited)
Javascript, ASP.NET
ASP.NET
- Alternate Rows in ASP.NET GridView, Tables using HTML5 / CSS3 - DrABELL
Novel HTML5/CSS3 features simplify alternate rows styling in GridView, DetailsView and other Tables (Unedited)
ASP.NET, Gridview, DataTable, DataRow, table, format, CSS3, DataGrid, HTML5, Data-Binding
ASP.NET Controls
- Create Modal Popup in Ajax UpdateProgress - Shishir Shukla
A simple method to implement modal popup during ASP.NET asynchronous request using ASP updatepanel and updateprogress (Unedited)
CSS, ASP.NET, Ajax
HTML / CSS
- Page Menu implements HTML 5: "abbr, base" elements - DrABELL
HTML 5, elements produce dynamic menu effects with contextual help (Unedited)
menu, CSS3, Style, HTML5, Dynamics - Pure HTML 5 / CSS 3 Modal Dialog Box; no JavaScript - DrABELL
Demonstrates HTML5 modal pop-up box ("darkbox") implementation using only CSS 3 (Unedited)
Web-Development, Color, buttons, dialog, graphics, CSS3, RIA, HTML5 - YouTube® Video Playback customization - DrABELL
YouTube® Video playback customization by adding web query parameters (Unedited)
Javascript, HTML, ASP.NET, Ajax, webservices, Web, RIA, HTTP
Web Services
- Online Geocoder with interactive Map - DrABELL
Web application capable to extract geographical coordinates and apply them to the Bing Map (Unedited)
Javascript, WebForms, Web, Language, RIA, HTTP
Database
- The Pain and Anguish of DTS Script Debugging - John Simmons / outlaw programmer
When all else fails, fire off some events and bask in the glow of the IDE's Progress tab. (Unedited)
SQL-Server, DTS, Debugging
General Graphics
- Angle between two points and x-axis - Tefik Becirovic
Calculate angle between two points and the x-axis using C# (Unedited)
C#, graphics
Programming Tips
- Few extension methods of String concatenation in C# - Mohammad A Rahman
(Unedited)
C# (C#3.0, C#4.0) - Manipulate Excel with ASP.NET - SummiG
Basic skills summary of manipulating excel with ASP.NET (Unedited)
ASP.NET - Show MyComputer, ControlPanel, RecycleBin, NetworkPlaces on Button Click - venkynataraj
MyComputer, ControlPanel, RecycleBin, NetworkPlaces on Button Click (Unedited)
C# (C#3.0) - A Generic Ternary Operator for value types and parameterless method - Mohammad A Rahman
A Generic Ternary Operator for value types and parameterless method (Unedited)
C# - Entity Framework Code First - Soulus83
Unique constraints (Unedited)
C#4.0, Framework, entity, Code - ASP.NET MasterPage getElementById - nibeesh
To get an element by its ID in a webpage which uses a master page (Unedited)
ASP.NET, Masterpage - Changing the line spacing in a RichTextBox control - Manfred R. Bihy
Using SendMessage and the PARAFORMAT structure one can easily change the line spacing in a RichTextBox control (Unedited)
C#, WinForms, .NET4, Controls - C# equivalent of VB's With keyword - Omar Al Zabir
VB has a With keyword that you can use to save typing same variables name over and over again. Here's a similar workaround for C# (Unedited)
C# - Change Opacity of Image in C# - RaviRanjankr
A tip which enables you to change Opacity of Image in C# (Unedited)
C# - String.Format in JavaScript - AspDotNetDev
A JavaScript function to replace string placeholders with values (Unedited)
Javascript, HTML - Play Video files in Web sites - Prasanta_Prince
Play Video files in Web sites (Unedited)
C#, ASP.NET - Some WPF Tip/Tricks For the Beginners - pranav95
For the souls confused about WPF. (Unedited)
WPF
Author Resources
- Watch your Mouse, please! :) ... use triple-click and save time & labor. - DrABELL
Computer mouse triple-click is a convenient feature (Unedited)
CSS, HTML, WebForms, Web-Development, Firefox, IE8, Web, IE9
VB.NET
- Checking Internet Is Connected Or Not From .Net - pranav95
Dim value As Boolean = My.Computer.Network.IsAvailable can be used in a situation where the only network a system will be connected to is the Internet.Dim value As Boolean = My.Computer.Network.Ping(hostNameOrAddress ,timeout) hostNameOrAddress can be any valid website -... (Unedited)
C#2.0, C#3.0, .NET1.1, .NET2.0, .NET3.0, .NET3.5, ASP.NET
Programming Tips
- Multiple Event Handling for the Lazy Ones - Simon_Whale
why not just create a custom handler for all the textboxes? addhandler textbox1.textchanged, addressof textchangedhandler addhandler textbox2.textchanged, addressof textchangedhandler .... 'add additional textbox handlers .... addhandler textbox7.textchanged, addressof... (Unedited)
VB8.0, VB9.0, VB10, VB.NET - Load all the Country Names of the World in DropDown - pranav95
Use a web service?http://www.webservicex.net/country.asmx[^]http://www.siliconllama.com/services/wsdl/ISOcodesService.wsdl[^] (Unedited)
HTML, ASP.NET - ASP.NET MasterPage getElementById - thatraja
DescriptionY... (Unedited)
ASP.NET, Masterpage - Show MyComputer, ControlPanel, RecycleBin, NetworkPlaces on Button Click - pranav95
For Control Panel:Process.Start("control.exe");For My Computer:Process.Start("explorer.exe", Environment.GetFolderPath(Environment.SpecialFolder.MyComputer));For the rest, we can use GUID just like the original.For Recycle... (Unedited)
C# (C#3.0) - C# equivalent of VB's With keyword - CaldasGSM
You are introducing a variable “p” in the local scope of the whole function :snot really.. you know you can use brackets anywhere inside the code to define subscopes, don't you:{var p = this.StatusProgressBar;p.IsIndeterminate = false;p.Visibility = Visibility.Visible;p.Minimum =... (Unedited)
C# - C# equivalent of VB's With keyword - dzCepheus
You can limit the scope of 'p' inside your function:private void Whatever() { DoStuffHere(); // 'p' is not in scope. { var p = this.StatusProgressBar; // 'p' is in scope. p.IsIndeterminate = false; p.[etc] } // 'p' is not in... (Unedited)
C# - Show MyComputer, ControlPanel, RecycleBin, NetworkPlaces on Button Click - charles henington
public enum ProcessType { ControlPanel, MyComputer, NetworkPlaces, RecycleBin } private static string MyComputer = "::{20d04fe0-3aea-1069-a2d8-08002b30309d}"; private static string RecycleBin =... (Unedited)
C# (C#3.0) - Play Video files in Web sites - pranav95
In HTML5,your browser does not support the video tagRefer http://www.w3schools.com/html5/tag_video.asp[^] for the official details about the video tag and the previous code snippet was taken from the same (http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_video[^]) (Unedited)
C#, ASP.NET
Technical blogs added
Grid & Data Controls
- Data Access Using Dynamics - Part I: The DynamicDataReader - MBigglesworth79
The DynamicDataReader provides a means of retrieving data from a database in a way that involves less code and increases code readability. (Unedited)
C#, VB.NET, .NET, Dev - Data Access using Dynamics - Part II: The DynamicDataSet - MBigglesworth79
CodeProjectIntroductionIn my previous article, I demonstrated how to leverage the Dynamic Language Runtime (DLR) to create a flexible, dynamic wrapper for the ADO.NET DbDataReader class and its subclasses.In this article, we are going to look at creating a dynamic version of another staple component (Unedited)
All-Topics
Client side scripting
- jqGrid Quick Tips - AlexCode
jqGrid is an Open-Source control registered under the GPL and MIT licenses. (Unedited)
Javascript, jQuery, Dev - Making a jQuery UI DatePicker Read Only - AlexCode
Block any way for the user to change the textbox value in the DatePicker, either from the calendar popup or by direct input on the textbox. (Unedited)
Javascript, HTML, jQuery, Dev, scripting, Controls - Struts2, JSON, JQGrid with Annotations - AshwinRayaprolu
Struts2, JSON , JQGrid with Annotations (Unedited)
All-Topics, Web-Development, JSON
Session State
- Few important tips that you should know while using ASP.NET Session - Abhijit Jana
Few important tips while using ASP.NET Session (Unedited)
C#, XML, Windows, .NET, ASP.NET
Silverlight
- Automatically Showing ToolTips on a Trimmed TextBlock (Silverlight + WPF) - Colin Eberhardt
Both WPF and Silverlight have a property TextTrimming="WordEllipsis", which trims the text that a TextBlock displays based on the available width. This blog post describes a simple method for automatically showing the full text as a tooltip whenever the text is trimmed. (Unedited)
C#, WPF, Silverlight - A Circular ProgressBar Style using an Attached ViewModel - Colin Eberhardt
This blog post describes how to re-template the Silverlight ProgressBar control to render a circular progress indicator. This approach uses an attached view model to circumnavigate some of the limitations of the ProgressBar design. (Unedited)
Silverlight, progress, Control, Style - Implicit DataTemplate in Silverlight 4 Composite UI – Get ready for Silverlight 5 (Part II) - Tomer Shamam
In this post I'll show how did I implemented the ContentControl implicit data-template using the ImplicitContentTemplateBehavior attached behavior (Unedited)
Silverlight, Silverlight4, Silverlight5 - Silverlight 5 Multiple Window Support - Kunal_Chowdhury
Multiple Window support is one of the important features in Silverlight 5. Using this you can have additional top level Windows on top of your trusted Silverlight Out-of-Browser application. (Unedited)
Silverlight, Silverlight5 - Silverlight 5 Window: The things I did not like - Kunal_Chowdhury
Features I'd like to see in future releases of Silverlight 5. (Unedited)
Silverlight, Silverlight5, Silverlight5Beta - Silverlight 5 Features Ancestor Relative Source Binding - Kunal_Chowdhury
Silverlight 5 Features Ancestor Relative Source Binding (Unedited)
Silverlight
Trace and Logs
- A Simple Wrapper for log4net - MBigglesworth79
A wrapper for log4net which allows logging operations to be accomplished with a single line of code. (Unedited)
C#, VB.NET, .NET, Dev, log4net
Windows Phone 7
- Windows Phone 7 DeferredLoadContentControl - Colin Eberhardt
This blog post describes a simple content control that can be used to defer the rendering of its contents in order to provide a better user experience on Windows Phone 7. (Unedited)
All-Topics, Controls, WP7 - A Simple Windows Phone 7 MVVM Tombstoning Example - Colin Eberhardt
This blog post shows how to implement tombstoning within a Windows Phone 7 application that following the Model-View-ViewModel pattern (Unedited)
Mobile, MVVM, Phone, WP7 - What's New in Windows Phone Developer Tools 7.1 Beta? - Kunal_Chowdhury
A list of new features in Windows Phone Developer Tools 7.1 Beta (Mango) (Unedited)
Windows, Phone, WP7
Office Development
- Converting Mind Map Plan into an Excel Table - PavelFedulov
Converting Mind Map Plan into an Excel Table (Unedited)
Office, Excel
Database
- SQL Joins and Subqueries - Andrew Zwicker
A discussion about SQL joins and subqueries with information about how to format join statements properly (Unedited)
SQL, database, query - Script to extract all check constraints from a database - melchizidech
From a utility I'm working on. Compatible with SQL-92 INFORMATION_SCHEMA views. (Unedited)
SQL, database, screen - Efficiency of Subqueries and OR conditions in SQL - Andrew Zwicker
A discussion of how joins significantly outperform subqueries and how this is more evident when OR conditions are involved. (Unedited)
SQL, database, query - Analysing dependencies in MSSQL - melchizidech
A script that analyses the text of each individual object and builds a tree of what depends on what. (Unedited)
SQL, SQL-Server, database, MSSQL
SQL Reporting Services
- Using Views for Faster SQL Query Development - Andrew Zwicker
A discussion of how views give a more denormalized means for querying against normalized tables. (Unedited)
SQL, query
DirectX
- Introducing DirectX to WPF - Super Lloyd
CodeProjectI started to learn DirectX. I wanted, of course, to use it in a WPF environment. I don’t hope to write a game (yet?) but I thought it would be a good API for high performance data visualization. Or simply capturing and tweaking web cam output.I discovered SharpDX by Alexandre Mutel, (Unedited)
C++, Windows, OpenGL
C#
- Evolution of C# enumerators - PeteBarber
I needed a very simple tree data structure the other day. Unfortunately C#/.NET doesn't provide one so I implemented a simple one. The need was to create a hierarchy of folders from a flat data structure where each node contained a unique id and its parent id. (Unedited)
C#
Java
- Capture picture on Webpage with Java Backend - AshwinRayaprolu
How to capture picture on Webpage with Java Backend (Unedited)
Javascript, Java
.NET Framework
- ASP.NET MVC3 Controller with Entity Framework CodeFirst - ambilykk
ASP.NET MVC3 Controller with Entity Framework CodeFirst (Unedited)
C#, .NET
Algorithms & Recipes
- Priority queue in C# with the help of heap data structure - Alexey Kurakin
This article describes generic priority queue implementation in C#, which uses min-heap as underlying storage. (Unedited)
C#, .NET2.0, .NET3.0, .NET3.5, Dev, Algorithms, .NET4
Threads, Processes & IPC
- One-Way Communication - Ondrej_Uzovic
Simple example showing how to implement the one-way communication between applications. (Unedited)
C#, .NET - Request-Response Communication - Ondrej_Uzovic
Simple example showing how to implement the request-response communication between applications. (Unedited)
C#, .NET - Threads and a Bicycle-built-for-two - Member 7950660
Threads and a Bicycle-built-for-two (Unedited)
C++, Windows, MFC
Debug Tips
- LeakMon: Part 3 - Opening a file in Visual Studio through automation - Naveen
In this post, we will see how the DumpViewer is able to open a particular file in Visual Studio and highlight the specified line. (Unedited)
C++-Topics, debug, tools
Design and Architecture
- An Introduction to Design Patterns – Part 3 - sayem.bd
Using delegation, you can change the behaviors of objects at run-time. A lots of Design Patterns make use of this technique. (Unedited)
All-Topics, Design, Patterns - An introduction to Design Pattern - Part 2 - sayem.bd
This article is second part of a series of articles which will try to explain the basics of design patterns (Unedited)
C#, Java, Windows, Linux - An introduction to Design Pattern – Part 1 - sayem.bd
This article is first part of a series of article which will try to explain the basics of design patterns (Unedited)
C#, Java, Windows, Linux - Liskovs Substitution Principle - jgauffin
This post is all about LSP. (Unedited)
C#, Architect, Dev
Testing and QA
- Performance tests between multiple "multi-key" dictionary implementations - Aron Weiler
In relation to my post about the MultiKeyDictionary object that I created, I created some performance tests to illustrate the difference between my method of creating this class, vs. some alternatives (Unedited)
C#-Topics, testing, performance
Uncategorised Technical Blogs
- Discovering D and Visual Studio (continued…) - Super Lloyd
CodeProjectThanks for the feedback from the previous article, I know now that: DFL should work with the BCL in D2, but it just doesn’t at the moment, due to some repository snafu… Visual D had building problem due to… tool chain issues! This page about Visual D known issues explain what’s go (Unedited)
All-Topics - D for .NET programmer - Super Lloyd
CodeProjectRecently it appeared to me that, with D, I could finally write solve a long standing problem, that is write a good advanced installer.What appealed to me where the following features:Statically linked. Produce an exe with no dependency! (Save for win32 that is, fair enough!)Elegant syntax (Unedited)
All-Topics - EntityFramework CodeFirst – DbContext Initializer - ambilykk
EntityFramework CodeFirst – DbContext Initializer (Unedited)
All-Topics - A Customizable WPF MessageBox - Arik Poznanski
A Customizable WPF MessageBox (Unedited)
C#, XAML, WPF-Topics - Customizing Visual Studio Extension Icon in Visual Studio 2010 - Abhijit Jana
How to customize /change the default Visual Studio extension icon and provide your own icon over there. (Unedited)
Visual-Studio (VS2010)-Topics