How to Write a Visualizer in C#

Posted by Anuraj on Wednesday, May 28, 2014

.Net Visual Studio Windows Forms

Visualizers are components of the Visual Studio debugger user interface. A visualizer creates a dialog box or another interface to display a variable or object in a manner that is appropriate to its data type. For example, an HTML visualizer interprets an HTML string and displays the result as it would appear in a browser window; a bitmap visualizer interprets a bitmap structure and displays the graphic it represents. Some visualizers enable you to modify as well as view the data. The Visual Studio debugger includes five standard visualizers. These are the text, HTML, and XML visualizers, all of which work on string objects; the WPF Tree visualizer, for displaying the properties of a WPF object visual tree; and the dataset visualizer, which works for DataSet, DataView, and DataTable objects. Visualizers are represented in the debugger by a magnifying glass icon. When you see the magnifying glass icon in a DataTip, in a debugger variables window, or in the QuickWatch dialog box, you can click the magnifying glass to select a visualizer appropriate to the data type of the corresponding object. Visualizers are not supported on the Compact Framework.

CREATE DATABASE permission denied in database ‘master’ - SQL EXPRESS

Posted by Anuraj on Tuesday, May 13, 2014

.Net .Net 4.0 ASP.Net MVC EF Code First Entity Framework SQL Server

Long back I wrote a post about Entity Framework Error – The underlying provider failed on Open. Yesterday some one told me, he is getting this error - CREATE DATABASE permission denied in database ‘master’, he is using an application pool with NETWORK SERVICE identity. Here is the solution, you require SysAdmin Role for “NT AUTHORITY\NETWORK SERVICE” to resolve this issue.

How to set Bing wallpaper as your desktop wallpaper

Posted by Anuraj on Thursday, May 8, 2014

.Net .Net 4.0 CodeProject Win 32 API Windows Forms Windows Phone

This post is about setting Bing wallpaper as your desktop wallpaper using C# and Windows Forms. Bing.com is famous for having some nice pictures as wallpaper, updated on daily basis. The Bing Desktop application comes with same feature. Here is the code snippet, which has two parts one, download the wallpaper image from bing.com and set it as wallpaper using WIN32 APIs.

How to upload file in ASP.Net MVC

Posted by Anuraj on Tuesday, May 6, 2014

.Net .Net 4.0 ASP.Net MVC

This post is about upload file to server using ASP.Net MVC 4. First you need to modify the controller to accept the posted file along with the model. So you can modify it like this.

Problem with Internet Explorer and JSONResult in MVC

Posted by Anuraj on Monday, May 5, 2014

.Net ASP.Net ASP.Net MVC

While working with the ASP.Net MVC project, one of my QA team member reported a strange issue, while uploading a file, Internet Explorer 9, showing a download file dialog like this.

How to integrate JQuery UI Datepicker in MVC

Posted by Anuraj on Monday, May 5, 2014

.Net .Net 4.0 ASP.Net ASP.Net MVC HTML5 Javascript

This post is about integrating JQuery UI DatePicker in MVC 4. First you need to modify the _layout.cshtml. Because by defualt, it won’t include required references for JQuery UI. You need to include both CSS and JS for JQuery UI references. So the modified _layout.cshtml will look like this.

Loading partial view on Ajax.Actionlink click

Posted by Anuraj on Sunday, May 4, 2014

.Net ASP.Net MVC HTML5 Javascript

While working on an MVC project, I had to create few partial views and load them dynamically using Ajax. Here is the code snippet for the same.
MVP
Subscribe
Archives


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub