News in the Category: C# Subscribe to the rss of this category.

Total posts: 1657 | Sort by Views | Sort by Hits

The C# @ String Literal

Brendan Kowitzs Web Log - Yes means I understand, however, it does not correspond to action., March 6, 2007
Views: 25,306 | Hits 45

C# is a pretty sweet language, and there are many, many, many little things that just make the code that much nicer. Have you ever been in a situation where for some reason you NEEDED to have a strin...

The CodeDom provider type Microsoft.VJSharp.VJSharpCodeProvider could not be located

the telerik blogs, December 2, 2007
Views: 18,809 | Hits 62

Scary, isn't it?With a brand new Vista and VS2008 on my laptop, I was just about to migrate some old projects of mine in the new studio format. The conversion wizard went smoothly but when I tried to ...

Instant C++ C# to C++ Converter

ASP.NET Announcements, October 21, 2005
Views: 18,156 | Hits 1,893

We've just released version 1.0 of the Instant C++ C# to C++ converter.  Instant C++ converts to either C++/CLI (2005) or Managed C++ (2003).Instant C++ converts C# projects, folders, files, and ...

Generic Singly Linked List (C# Implementation)

Granville Barnett, January 16, 2007
Views: 16,478 | Hits 111

I know I was meant to post this an eternity ago but I've just not had time - so now here it is! So before we move on we need to be clear exactly what a singly linked list is, and what it is capable of...

Microsoft Outlook Integration with .NET

Federal Developer Weblog, September 26, 2007
Views: 13,580 | Hits 2,172

I found this great article by Rachel Wireman and how-to documentation on building Outlook integration functionality with C#, and it has downloadable source code. She covers, General Outlook integrati...

How to download Internet Explorer 8 for Windows 7 E without any Web browser?

Ajax.NET Professional, July 15, 2009
Views: 9,841 | Hits 35

Windows 7 RTM will be available in the next days and for all European users there will be no Internet Explorer 8. Im not sure if there will be an option to install Internet Explorer from the setup DVD...

Sudoku Solver in C#

Sahil Malik [MVP], May 7, 2006
Views: 9,449 | Hits 192

Ya know what !!! I got pretty sick n tired of sucking at Sudoku. Seriously!! I have this friend, who keeps beating the crap out of me in Sudoku puzzles. (What is Sudoku?) (Play Sudoku here). It is ind...

Create And Run Excel Macro At Runtime in C#

ASP.NET Daily Articles, May 2, 2005
Views: 8,733 | Hits 1,660

Here's a quick tip regarding how to create Microsoft Excel spreadsheets from scratch at runtime. Plus, implement and run VBA macro source code in your C# application dynamically at runtime....

TreeView in ComboBox, take 3 (Silverlight 3, WPF and RadControls)

the telerik blogs, August 27, 2009
Views: 8,489 | Hits 27

In my previous article on the same topic I described how to replace the ItemsPresenter of RadComboBox with a RadTreeView. It was as simple as updating the control template. Unfortunately the controls ...

How to add a right click context menu on a TextBox in Silverlight?

the telerik blogs, May 28, 2009
Views: 7,810 | Hits 13

How to add a right click context menu on a TextBox in Silverlight and also support simple editing commands, like Cut, Copy and Paste? This is pretty easy with RadContextMenu for Silverlight and I will...

Cool Event Wire-Up Trick with C# in VS 2005

ScottGus Blog, October 31, 2005
Views: 7,707 | Hits 260

Dmitry just showed me a neat feature in VS 2005 which is pretty cool and handy.  Basically it provides a super quick way to define and wire-up event handlers on objects in source-view.   To ...

C# null coalescing operator

Clarity Blogs: ASP.NET, August 18, 2006
Views: 7,670 | Hits 72

I have a new favorite feature in VS 2005 - the null coalescing operator: ?? This is a short cut for checking if a value is null and if so returning the value of the second operand.  The synt...

A Web Spider Library in C#

The Code Project Latest Articles, September 10, 2006
Views: 7,638 | Hits 1,389

An article about a spider library to grab websites and store them locally....

Drop-Down Menu Button with Telerik ContextMenu for Silverlight

the telerik blogs, September 7, 2009
Views: 7,374 | Hits 22

Sometimes, when a button is clicked we want to display a drop-down menu with options. This is handy interface, usually present in toolbars, but sometimes - as standalone buttons, like the Save As butt...

C# Design time custom panel (drag and drop into it)- web custom control

The Code Project Latest Articles, October 31, 2006
Views: 7,269 | Hits 1,215

Create a custom panel that can expand/contract and that you can nest other controls in....

"Visual C# .NET compiler could not be created" - Possible solution

ISerializable, June 22, 2005
Views: 6,743 | Hits 438

"Project <Name> could not be opened because the Microsoft Visual C# .NET compiler could not be created" these things here, but for me it was something different. The path of  one of th...

Encrypting Passwords in a .NET app.config File

JonGalloway.ToString(), April 13, 2008
Views: 6,371 | Hits 879

I've been contributing to the Witty project lately. I'm a fan of Twitter, and it's nice to work on a popular WPF application with some hotshot coders including a WPF pro like Alan Le. Lately, I notice...

How to export a Crystal Report using C#

The Code Project Latest Articles, March 9, 2007
Views: 6,259 | Hits 768

This article describes how to use C# to customize exporting a Crystal Report...

Read a word document (.Doc , .rtf , .txt ) from ASP.Net and C#

EggHeadCafe.com New Articles, September 4, 2006
Views: 6,098 | Hits 788

Here is the code that helps to read any document (like .doc, .rtf , txt )from specified location. By J S...

AppCmd Migrate and HTTP Error 500.22

Ajax.NET Professional, November 7, 2008
Views: 5,992 | Hits 5

Yesterday I tried to migrate an Web Application from IIS 6 to IIS 7 integrated managed pipeline mode. After copying the files to the new folder I opened a Web browser and got following error message: ...

Creating Custom Configuration Section C#

The Code Project Latest Articles, September 18, 2007
Views: 5,892 | Hits 1,143

Creation of a Custom Configuration Section Similar to AppSettings. Stores settings for both Development and Production environments and returns the appropriate settings based on the machines configura...

Low-Level Mouse Hook in C#

Stephen Toub, May 3, 2006
Views: 5,782 | Hits 681

After my last post on implementing low-level keyboard hooks in C#, Soumitra asked if it was possible to implement a low-level mouse hook in C#, too.  Sure.  Here is an example that will...

Compact and Repair an Access Database Programmatically Using C#

The Code Project Latest Articles, March 21, 2007
Views: 5,773 | Hits 703

A simple method that compacts and repairs a Microsoft Access database file using the Microsoft Jet library and C# COM interop. The example code is meant to be integrated into an ASP.NET web site....

DotNetNuke 4 C# Compiled Module Starter Kit

BiteTheBullet - Latest 25 Items, January 27, 2007
Views: 5,684 | Hits 750

Download my DotNetNuke 4.x C# compile module starter kit that allows you to rapidly develop modules using Visual Studio 2005 and C#.Create compiled C# modules with easy and speed every time!...

Create 3D Pie Charts with Super 2d/3d Graph Library (C# code)

The Code Project Latest Articles, August 22, 2007
Views: 5,400 | Hits 602

This sample code will produce a PNG-format image of a random 3d pie chart...

Evaluating JavaScript code from C#

Rick Strahls WebLog, February 14, 2007
Views: 5,369 | Hits 318

As was going through my JSON Serialization code the other day I kept re-thinking this idea I had some time ago: Why not use Microsofts built in JavaScript engine to perform the JavaScript and JSON de...

Low-Level Keyboard Hook in C#

Stephen Toub, May 3, 2006
Views: 5,305 | Hits 762

I answered a question today where someone asked for an example of setting a low-level keyboard hook with C#. I actually have an example of doing so in my May 2006 MSDN Magazine article on Managed Debu...

HOW TO: Set a Windows Hook in Visual C# .NET (Q318804)

kbAlertz.com :: .NET Framework 2.0, May 8, 2002
Views: 5,266 | Hits 718

This article describes how to set a hook that is specific to a thread and to a hook procedure by using the mouse hook as an example. You can use hooks to monitor certain types of events. You can assoc...

C# and Lego Mindstorms

Eric Gunnersons C# Compendium, September 30, 2005
Views: 5,232 | Hits 140

Not sure how I missed this earlier, but there's a version of C# that runs on the Lego mindstorm brick. Or, to be a little more correct, this group is building two things: The first one - which is work...

C# MSMQ - Send and Receive XML

EggHeadCafe.com New Articles, December 11, 2006
Views: 5,158 | Hits 626

Here's an article which can you give you better idea on "How to send and receive XML files using MSMQ", this application was developed using C# and let us see more in detail how it works and where i...

RadioButton and CheckBox Menu Items with RadMenu for Silverlight

the telerik blogs, June 19, 2009
Views: 5,125 | Hits 10

RadMenu for Silverlight supports simple checkable items, but still does not support radio button items. This feature is scheduled for development and most probably will come with Q3 2009, but until th...

WP7 Gesture Recognizer and Behavior / Triggers

Clarity Blogs: ASP.NET, July 19, 2010
Views: 4,978 | Hits 20

Here is a quick gesture recognizer I wrote for the Windows Phone 7.  You can use the gesture recognizer standalone in code and attach to a UI element or you can also use the behavior + trigger.&#...

Thumbnail Images in GridView using C#

The Code Project Latest Articles, October 22, 2007
Views: 4,932 | Hits 593

Thumbnail Images in GridView using C#...

WP7 Page Transitions Sample

Clarity Blogs: ASP.NET, October 13, 2010
Views: 4,906 | Hits 38

I posted a few methods for doing page transitions in the past that were based on some older versions of the SDK and dont work anymore.  In the post I'll go over another method which uses a ba...

Reusing and customizing a single ContextMenu on a TreeView with RadControls for Silverlight

the telerik blogs, June 1, 2009
Views: 4,885 | Hits 5

This is part two of my Attaching a ContextMenu on TreeView blog post. I will show another approach for adding context menu on a treeview, that uses a single menu that is customized for each treeview i...

Build ReST based Web Services in .NET/C#

The Code Project Latest Articles, July 12, 2009
Views: 4,864 | Hits 802

A ReST based Web Service for C#....

Multiple child views with RadGridView for WinForms

the telerik blogs, August 5, 2009
Views: 4,822 | Hits 48

One of the most wanted features related to hierarchy in RadGridView is the support for hierarchy containing one-to-many relations. Now, this is possible by using tabbed child views. We added the featu...

A Naive Bayesian Spam Filter for C#

The Code Project Latest Articles, February 6, 2008
Views: 4,764 | Hits 394

A C# implementation of Paul Graham's Naive Bayesian Spam Filter algorithm....

Build a C# .NET Zip folder backup utility

ASP.NET Daily Articles, September 24, 2005
Views: 4,726 | Hits 540

Zip Backups have become almost ubiquitous, but the various zip and rar utilities often don't have all the command line switches we need. One answer is, "roll your own" ! Thanks to Mike Krueger and ...

Survey Module in C# plus more C# code Examples

Shaun Walker, October 18, 2006
Views: 4,665 | Hits 409

There is not a lot of C# code examples out there for DotNetNuke Modules. I am working on a new tutorialthat will be in VB and C#. To prepare for it I made a C# version of the Survey Module. You can ge...

Display MS Excel Sheet and Chart in Aspx Page in C#

The Code Project Latest Articles, November 9, 2006
Views: 4,663 | Hits 467

It displays the same Excel Sheet Format and Charts in aspx page...

Security Image Generator (Captcha)

The Code Project Latest Articles, June 26, 2007
Views: 4,546 | Hits 556

You can use this code in your C# projects to keep those more scure. (with refresh image method without refresh page)...

C# CSV Import

Andreas Kraus: C#, ASP.NET, SEO, August 17, 2008
Views: 4,537 | Hits 403

An old topic, I agree. Unfortunately we still can’t forget about CSV files and I see so many questions popping up on forums and especially on my blog related to this topic. Not every company features ...

Linked List Using C# Generics

The Code Project Latest Articles, September 6, 2007
Views: 4,512 | Hits 460

Creating and using linked list class which has the provision to set the datatype dynamically using c# and generics...

Creating PDFs with C# using Ghostscript

ASPAlliance.com - The #1 ASP.NET Community, November 5, 2007
Views: 4,381 | Hits 894

PDF has become a standard for secure and reliable distribution and exchange of electronic documents around the world. This article aims at using C# and Ghostscript to convert various other documents i...

Be.HexEditor 1.0 (C# HexBox control)

GotDotNet: New resources, October 31, 2005
Views: 4,352 | Hits 113

Be.HexEditor is a simple editor for binary data. It contains a high flexible an reusable hex edit control (called "HexBox") coded with C#. By using this control viewing and editing binary data in he...

Vista glass answers and DwmEnableBlurBehindWindow

The Moth, August 12, 2006
Views: 4,282 | Hits 267

While I have explained how to get glass on Vista with C# (twice), I did leave two open questions (hint: read the last paragraph of my last glass blog post or the stuff below won't make any sense).Kenn...

How to extend TableAdapter methods

The Visual Basic Team, May 4, 2005
Views: 4,180 | Hits 320

A number of posts have asked how to extend TableAdapters to support additional functionality.  It may be related to supporting transactions across multiple updates, or how do I set the UserId as ...

Fun with Func<T,TResult> Delegates, Events and Async Operations

Rick Strahls WebLog, October 5, 2009
Views: 4,174 | Hits 359

Func<T> has been in .NET for a while, but with the arrival of LINQ its moved into the limelight as main performer that makes Lambda expressions work. Func<T> is basically a generic delegat...