Saturday, 17 November 2012

Capturing Mouse Wheel event in C#

Microsoft chose not to display the MouseWheel event in the Event box. However, it is easy to hook it through the editor.

In the constructor of the Form / custom control, type - "MouseWheel+=", and press TAB twice. Once for completing the statement, and again to insert the handler in the class.

to catch the wheel rotation, if the value of e.Delta >0 then it scrolls up and if the value of e.Delta <0 then it scrolls down:

if (e.Delta < 0)
    x--;
else
    x++;

Thursday, 7 June 2012

TeamViewer

TeamViewer connects to any PC or server around the world within a few seconds. You can remote control your partner's PC as if you were sitting right in front of it... more

Monday, 23 April 2012

Create Duplicate Table in MySQL

MySQL provides many methods to create duplicate table with its data or without its data. The following is a simple example to create a duplicate table along-with data of the original table:
CREATE TABLE new_table_name SELECT * FROM old_table_name; 
An important point to note is that this query will not create column attributes and indexes as defined in the original table.

If you also want to have such attributes, this can be done with another easy way. Below queries will create a copy of the original table with all its constraints and attributes and also insert entire data from the original table to the new on:
CREATE TABLE new_table_name LIKE old_table_name;
INSERT INTO new_table_name SELECT * FROM old_table_name;
 

Friday, 20 April 2012

Access To MySQL

Access to MySQL is a small program that will convert Microsoft Access Databases to MySQL... more


Thursday, 19 April 2012

Web Standards Update For Visual Studio 2010 and Activating HTML5/CSS3 intellisense/validation

Web Standard Update for Visual Studio 2010
Web Standards Update provides the much wanted HTML5 & CSS3 support to Visual Studio 2010 SP1. It brings VS 2010 intellisense & validation as close to W3C specification as we could get via means of an extension... more

Activating HTML5/CSS3 intellisense/validation for Visual Studio 2010
VS2010 was originally released without HTML5 support with VS2010 SP1 to some extend. The entire HTML5 specification isn’t supported but most of the new elements and attributes are. That means you get both intellisense and validation for HTML5 with SP1... more


Query Builder for MySQL

DBforge Query Builder is a brand-new solution for quick creation of complex queries and extended data management... more 

Iron Speed Designer builds visually stunning, feature-rich Web 2.0 applications that are easy to customize and ready to deploy... more


Tuesday, 17 April 2012

Teleric Radcontrol Combobox on SelectedIndexChanged

The SelectedIndexChanged event occurs when the user selects a new item in the drop-down list.

The SelectedIndexChanged event does not fire unless the AutoPostBack property is True.

The SelectedIndexChanged event handler receives two arguments:
  1. The RadComboBox that is loading items. This argument is of type object, but can be cast to the RadComboBox type.
  2. An EventArgs object. This object has the following properties for identifying what has changed:
    • Text is the text of the item that was just selected.
    • Value is the value of the item that was just selected.
    • OldText is the text of the item that was previously selected
    • OldValue is the value of the item that was previously selected
Use the SelectedIndexChanged event handler to respond in server-side code when the user changes the current selection:
  
ASPX code:
<telerik:radcombobox 
  id="RadComboBox1" 
    runat="server" 
    autopostback="True" 
    onselectedindexchanged="RadComboBox1_SelectedIndexChanged">
</telerik:radcombobox>

C# code behind:
private void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
    Label1.Text = "You selected " + e.Text + " item";
}
 

Analysis Service in Power BI Report Server

 We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly... link