Crystal Reports uses merge modules to verify the correct crystal report components and assemblies are installed with your deployment project.
A merge module is a set of components that are merged with a Windows installer for applications that need them. The components may include a .dll file, resources, registry entries, setup logic, and related files. With all related components stored in a single container, the installer eliminates version conflicts and other common installation problems.
AdSense Ads - Controls to show your Google AdSense ads.
CheckedListBox - A Listbox with checkboxes for selection
ComboBox - The classic type-or-choose control.
DataControlFields - Three fields for the GridView, BooleanField for boolean values (better than the CheckBoxField), LookupField for ID/Key data to a child datasource, and SelectorField for row selection using checkboxes or radiobuttons.
DialogWindow - A set of controls which make creating dialog windows a lot easier
DualList - move items back and forth between two listboxes to select the items
DynamicListBox - a base control which stores changes to its list of items
ExpandingButtons - hide and show a target control
ExpandingPanel - hide and show the content of the panel
FileUpload - A nicer wrapper than the builtin for basic file uploading
GlobalRadioButton - A radiobutton which has a page-wide, cross-namingcontainer Group property
Grouped Lists aka GroupedListBox and GroupedDropDownList enabled support of the html option grouping in extensions of the standard data controls.
ListLink - A non-visual control which helps you create parent/child relationships between list controls
MultiFileUpload is a nice compact UI that lets the user select more than one file to upload to the server.
MultiViewBar is now free and included in the library, source and all.
OneClick - non-visual control that helps the page developer avoid the dreaded double-button-click
Polling - controls and framework for showing users simple web polls. Uses a provider framework, with built-in providers for Access and Sql Server.
ParsingContainer - control which parses a string of server control markup at runtime
QueryCall - Component which maps querystring parameters to methods in the codebehind
RemoteWindow - Easy popup windows
ResizeMonitor - causes a postback on browser-resize, if you need to keep track of dimensions in your app
RollOverLink - the old mouse-over-out effect on images, made dead-easy
RuntimeTemplate - Makes it easier to create templates for controls at runtime in code
UpDown - the classic Windows Up/Down control for numeric entry.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Data.Sql;
using System.Net;
using System.IO;
Lightweight and fast library written in C# for reading Microsoft Excel files ('97-2007).
Cross-platform:
- Windows with .Net Framework 2
- Windows Mobile with Compact Framework
- Linux, OS X, BSD with Mono 2+
Here is how it can be done. This takes into account all docked controls (including menus) in the mdi parent form.
[C#]
private void FillActiveChildFormToClient()
{
Form child = this.ActiveMdiChild;
Rectangle mdiClientArea = Rectangle.Empty;
foreach(Control c in this.Controls)
{
if(c is MdiClient)
mdiClientArea = c.ClientRectangle;
}
child.Bounds = mdiClientArea;
}
[VB.Net]
Private Sub FillActiveChildFormToClient()
Dim child As Form = Me.ActiveMdiChild
Dim mdiClientArea As Rectangle = Rectangle.Empty
Dim c As Control
For Each c In Me.Controls
If TypeOf c Is MdiClient Then
mdiClientArea = c.ClientRectangle
End If
Next
child.Bounds = mdiClientArea
End Sub
Some people have asked me how BlogEngine.NET displays a dropdown list of countries when no source XML file is present. The simple answer is that you don’t need any external list to bind to from C#, you can instead use the CultureInfo class.
Consider that you have the following dropdown list declared in an ASP.NET page:
Then from code-behind, call this method which binds the countries alphabetically to the dropdown:
public void BindCountries()
{
System.Collections.Specialized.StringDictionary dic = new System.Collections.Specialized.StringDictionary();
System.Collections.Generic.List col = new System.Collections.Generic.List();
foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures))
{
RegionInfo ri = new RegionInfo(ci.LCID);
if (!dic.ContainsKey(ri.EnglishName))
dic.Add(ri.EnglishName, ri.TwoLetterISORegionName.ToLowerInvariant());
if (!col.Contains(ri.EnglishName))
col.Add(ri.EnglishName);
}
The method first adds all the countries from the CultureInfo class to a dictionary and then sorts it alphabetically. Last, it tries to retrieve the country of the browser so it can auto-select the visitors country. There might be a prettier way to sort a dictionary, but this one works.
This application shows how to develop a simple AJAX chat application. It uses the ScriptManager and UpdatePanel Class to get messages stored in a SQL Server database.
Key board shortcut keys always help to increase your speed. So i am giving below some of the Keyboard Shortcuts which will be very useful.
Ctrl + N :- Opens the New Project Dialogue Box
Ctrl + Shift + O :- Opens the Open File Dialog Box
Ctrl + Shift + A :- Opens Add New Item window
Ctrl + D :- Opens Add Existing Item window
Ctrl + F :- Opens Find window
Ctrl + H :- Opens Find and Replace window
Ctrl + Shift + H :- Opens Replace in Files window
Ctrl + Alt + Shift + F12 :- Opens Find Symbol window
F7 :- Opens Code Designer window
Shift + F7 :- Gets you back to Design View
Ctrl + R :- Opens the Solution Explorer window
Ctrl + Alt + S :- Opens the Server Explorer window
Ctrl + Shift + C :- Opens the Class View window
F4 :- Opens the Properties window
Ctrl + Shift + E :- Opens the Resource view window
Ctrl + Alt + X :- Opens the Toolbar window
Shift + Alt + Enter :- Takes you to Full Screen View
Alt+F8 :- Opens Macro Explorer window
F2 :- Opens Object Browser window
Ctrl + Alt + T :- Opens Document Outline window
Ctrl + Alt + K :- Opens Task List window
Ctrl + Alt + A :- Opens Command window
Ctrl + Alt + O :- Opens Output window
Ctrl + Alt + Y :- Opens Find Symbol Results window
Ctrl + Alt + F :- Lists Items under the Favorites Menu in your
Ctrl + Shift + B :- Builds your project
Ctrl + Shift + F9 :- Clears All Breakpoints
Ctrl + Alt + P :- Opens the Processes Dialog box
Ctrl + T :- Opens Customize Toolbox window
Ctrl + Shift + P :- Runs Temporary Macro
Ctrl + Shift + R :- Records Temporary Macro
Alt + F11 :- Opens Macros IDE
F5 :- Runs your Application
Ctrl + F5 :- Runs your Application without Debugging
Ctrl + Alt + E :- Opens the Exceptions Dialog Box
F8 :- Used while Debugging Applications
Shift + F8 :- Used While Debugging Applications
Ctrl + B :- Inserts a New Breakpoint
F10:-Line By Line execution
Ctrl+Tab:-To Shift B/W .net Editor Pages
protected void ClearControl(Control Ctrl)//passing the control { foreach (Control eachCtrl in Ctrl.Controls)//loop taking each controls { if (eachCtrl.Controls.Count > 0) ClearControl(eachCtrl); else if (eachCtrl is TextBox) ((TextBox)eachCtrl).Text = null; } }
The following 2 examples will give bit more insight into use of interfaces. The first example explains how interface can be ploymorphically used. The second one explains how it can be used for multiple-implementation. Both the examples combined also describe a ISP or Interface Segrigation Principle.
Example 1: [Polymorphism] Suppose you have an application that writes data into different devices say HDD, FDD and CDW, in a buffered mode. Any number and any media may be used. It should also be possible plug-in/out any device any time. Each device has its own implementations. How do you ensure that this can be done without knowing the specific implementation of the device?
Solution: Lat them all implement an interface that defines common operations. The application can use the interface to make polymorphic calls.
private void Close()
{
foreach(IMedia mediaItem in _mediaDevices)
{
// Ploymorphic call to flush the buffered
// data into correct implementations.
mediaItem.Flush();
}
}
}
Example 2: [Multiple Implementation] Continuing the above example now suppose you have another diagnosis application that needs to check few common performance factors of these devices. The dignostic application need not know the details of these implementations. However the DataApplication (application above) should not have any knowledge of these tasks. How to do this?
Solution: Let each media implement an interface that the diagnostic application can use to operate upon. So the modified design looks like: