yet another blog about computer, technology, programming, and internet

Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Monday, September 25, 2006

SharpDevelop 2 vs Microsoft Visual Studio Express

Monday, September 25, 2006 Posted by Ismail Habib , , 11 comments
For those who are thinking about whether you'd like to choose between SharpDevelop 2 and Microsoft Visual Studio Express Edition, here is a comparison table between those two.

Hope it's useful :)

Taken from here


FeatureSharpDevelop 2.1Visual Studio Express Editions
Code auto-completionYesYes
Code syntax highlightingYesYes
Windows Forms DesignerYesYes
Web Forms DesignerNoProvided with Visual Web Developer
Code CoverageYesNo
Unit TestingYesNo
Languages SupportedC#, VB.NET, BooC#, C++, VB.NET, J#
Help documentationNoYes
Plug-in supportYesNo explicit support for plug-ins however third party plug-ins can work with the Express edition.
Insert PInvoke SignaturesYesNo
Testing Regular ExpressionsYesNo
Class ViewYesYes
Solution ExplorerYesYes
Project and Solution File FormatMSBuildMSBuild
Web referencesYesYes
RefactoringsRenameRename, Extract Method
Go to definitionYesYes
Find ReferencesYesYes
Code generationYes. Not as powerful as Visual Studio's Code Snippet Manager.Yes
Object BrowserYesYes
Database ExplorerYes. Lacking support for many database providers.Yes
PublishingNoYes
Data Sources ViewNoYes
Add Data Source WizardNoYes
Document Outline ViewNoYes
ResourcesLocal onlyLocal and project
ActiveX Toolbox ItemsPartial - need to generate .NET interop libraryYes
Integrated debuggerYesYes
Targeting different .NET frameworksYesNo
Code Completion for different .NET frameworksYesNo
ReportingYesYes through the report viewer plug-in
Task ListYesYes
Error ListYesYes
Database Designer ToolsNoYes
Code conversionYesNo
Integrated NAnt supportYesNo
Integrated WiX supportYesNo
Integrated FxCop supportYesNo
Navigation HistoryYesYes
XPath QueriesYesNo
Incremental SearchYesYes
XML documentation preview and generationYesNo

Tuesday, June 27, 2006

Creating a Restore Point Using Windows Management Instrumentation (WMI) and C#.NET

Tuesday, June 27, 2006 Posted by Ismail Habib , , 24 comments
I have tried to find a way to create a restore point in Windows, but no matter how hard I tried, I just can't find the one using C#, one of my favourite language. Sigh, I have to make one on my own :P Windows has something called WMI (Windows Management Instrumentation). It contains a huge classes and objects that allow programmers to do a lot of things, creating a restore point is just one of them.
Here is the source code to create a restore point in Windows:

ManagementScope oScope = new ManagementScope("\\\\localhost\\root\\default");
ManagementPath oPath = new ManagementPath("SystemRestore");
ObjectGetOptions oGetOp = new ObjectGetOptions();
ManagementClass oProcess = new ManagementClass(oScope,oPath,oGetOp);

ManagementBaseObject oInParams = oProcess.GetMethodParameters("CreateRestorePoint");
oInParams["Description"] = "My Restore Point";
oInParams["RestorePointType"] = 0;
oInParams["EventType"] = 100;

ManagementBaseObject oOutParams = oProcess.InvokeMethod("CreateRestorePoint", oInParams, null);


Hope this will be useful. Don't forget to add System.Management as a reference!

Wednesday, April 26, 2006

Free C# Tools

Wednesday, April 26, 2006 Posted by Ismail Habib , 15 comments
Are you a C# programmer? I am. How much money did you spend to buy C# development tools? $100? $1000? OK, I'm happy to say that I spend none to it ;) Seriously, Microsoft gave us chances to develop C# applications without having to pay (of course you have to pay for the Windows, and by the way... it is not about piracy, so it is legal). While .NET Framework and the compiler are free to be distributed, programmers still need to buy Visual Studio.NET. But don't worry: Microsoft had released a version of Visual Studio that is totally free, even for commercial applications! And even better: you can try SharpDevelop, an open-source application that worked perfectly like Visual Studio.NET. Of course those two tools has several weaknesses... but hey, they are totally free! (I admit it, I'm crazy for free stuffs :P). Borland C# Builder could be one last alternatives since it has a personal edition (but no commercial application). So now it is up to you, free or pay?