Quantcast
Channel: Manjuke's Blog
Browsing all 56 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Show properties of a class on Property Grid

When developing user controls, usually we use Booleans, Integers, Strings, etc.. as data types of the attributes of the control. But sometimes, we have to use structures or other classes as attributes....

View Article


Image may be NSFW.
Clik here to view.

Constructor Chaining in C#

 What’s ‘Constructor Chaining’ ?Constructor Chaining is an approach where a constructor calls another constructor in the same or base class.This is very handy when we have a class that defines multiple...

View Article


Image may be NSFW.
Clik here to view.

Fixed - One or more ActiveX controls could not be displayed because...

 Sometimes when opening windows services screen (or by running ‘services.msc’ from the command prompt) you might receive the following error screen:And gives you an empty service screen.This can be...

View Article

Image may be NSFW.
Clik here to view.

Designing a windows form where size exceeds your screen’s resolution

Some times we need to design forms in our  applications, beyond the size of our development machines screen resolution. But the worse case is, our development environment does not allow us to resize...

View Article

Image may be NSFW.
Clik here to view.

Repeating a SQL row based on a value in a different column

There are times that we get requirements such as populating and duplicate SQL rows, based on a value, on another column. E.g.: In an inventory system when items are received those details will be saved...

View Article


Image may be NSFW.
Clik here to view.

How to filter data correctly on a repeating table in an InfoPath form using a...

If you have used InfoPath in your developments, you might have come across with the issue of filtering data using a date range, after the data is received to the form. To illustrate the issue I will...

View Article

Image may be NSFW.
Clik here to view.

How to display distinct data from a duplicated data source in an InfoPath form

Sometimes we have to get data to our InfoPath forms from various sources. (From SQL Table, using a Web Service, from a SharePoint list etc..)But most of the it’s really annoying, if you do not have the...

View Article

Image may be NSFW.
Clik here to view.

Fixed: SharePoint Designer Error - Unexpected error on server associating the...

 When publishing a SPD workflow which contains more than 6 Approval process steps, it gives the following error :How ever if you try 5-6 times, you might end up publishing it. But sometimes it won’t...

View Article


Image may be NSFW.
Clik here to view.

Delegates in C#

                                             What's a delegateA delegate is a type that safely wraps/encapsulate a  method. It is similar to 'function pointers' in C/C++, but it's type safe. When to...

View Article


Image may be NSFW.
Clik here to view.

Extension Methods in C#

                                             As name implies extension methods allow existing classes to be extended without using inheritance or changing class’s source code.Some important points when...

View Article

Image may be NSFW.
Clik here to view.

[Resolved] - AdventureWorks2008 sample database not available after installation

 Many of you who have tried installing AdventureWorks2008 sample database, might have come across with an issue, which after installing the database package (using the executable), 'AdventureWorks2008'...

View Article

Image may be NSFW.
Clik here to view.

Fixed ~ Error installing SQL 2008 Business Intelligence Studio and Related...

  If you try to install/add feature SQL 2008 Business Intelligence Studio, to a machine with VS2008 having installed to a different location than the default, you will most probably get the following...

View Article

Image may be NSFW.
Clik here to view.

How to Use Update Cursors in SQL Server

There can be a situation where you have to use a cursor, even though the experts say not to use cursors or to avoid them as much as possible. But if you look closely, most of the time we use cursors to...

View Article


Image may be NSFW.
Clik here to view.

Using MERGE statement in SQL Server 2008

‘MERGE’ statement is a new feature in SQL Server 2008. It can be used to perform insert, update and delete operation on a destination table simultaneously based on the results of a join with a source...

View Article

Image may be NSFW.
Clik here to view.

How to insert data using SQL Views created using multiple tables

A view can be defined as a virtual table or a stored query and the data accessible through a view is not stored in the database as a distinct object. Only the select statement is stored on the database...

View Article


Image may be NSFW.
Clik here to view.

Invoke a custom method when Crystal Report Viewers’ print button is clicked /...

If you are developing applications which includes reporting with Crystal Reports, you may have noticed that it’s not possible to invoke a custom method, when the user prints the report. However this...

View Article

Image may be NSFW.
Clik here to view.

Change the data source of a Crystal Report at Run-time using C#

It’s a known fact, that in Crystal Reports, if you try to display details, using data in a SQL Server Database other than the one that you’ve used to design the report, either you have to set the...

View Article


Image may be NSFW.
Clik here to view.

Using CLR functions with T-SQL

Why use CLR?Before using CLR, you should question ‘Why’. When using CLR functions within T-SQL, you have to maintain two different programming environments, unless what you gain worth more than having...

View Article

Image may be NSFW.
Clik here to view.

Deploy/Use assemblies which require Unsafe/External Access with CLR and T-SQL

 What is an Unsafe Assembly?Assemblies which are built using normal computational functions are considered as safe assemblies. But when assemblies do external operations such as reading file...

View Article

Image may be NSFW.
Clik here to view.

Exclusive access could not be obtained because the database is in use ~ Resolved

 Sometimes this is a common error message that we encounter, when we try to restore a SQL database, which is being used by other users.This can occur due to various reasons. But the most common...

View Article
Browsing all 56 articles
Browse latest View live


Latest Images