Wednesday, July 8, 2009

1

What s the difference between Build and Rebuild in Visual Studio.NET?

Build

  • Build means compile and link only the source files that have changed since the last build. 
  • Build is the normal thing to do and is faster. 
  • Build Solution builds all projects in the your solution while Build builds the
  • Start Up project.
Rebuild
  • While Rebuild means compile and link all source files regardless of whether they changed or not.
  • Sometimes the versions of project target components can get out of sync and rebuild is necessary to make the build successful.
  • Rebuild Solution rebuilds all projects in the your solution while Rebuild rebuilds the Start Up project.

Thursday, April 23, 2009

0

SqlConnection.ConnectionTimeout vs SqlCommand.CommandTimeout


SqlConnection.ConnectionTimeout
ConnectionTimeout is the time in seconds to wait for the connection create to the database.
Default time is 15 seconds

Remarks
A value of 0 indicates no limit, and should be avoided in a CommandTimeout because an attempt to execute a command will wait indefinitely.

Note
This property is the cumulative time-out for all network reads during command execution or processing of the results. A time-out can still occur after the first row is returned, and does not include user processing time, only network read time.

SqlCommand.CommandTimeout
CommandTimeout is the time in seconds to wait for the completion of the command execution.
Default time is 30 seconds

Remarks
A value of 0 indicates no limit, and should be avoided in a ConnectionString because an attempt to connect waits indefinitely.

Monday, March 30, 2009

0

How to add ASP.NET web service reference in windows application

To know how to add ASP.NET web service reference in windows application follow the steps:
  1. Right click on your windows application project file in Solution Explorer
  2. Click on Add Service Reference
  3. A Window Form will be opened titled 'Add service Reference'
  4. In that window, click on Advanced button and there will be another window form titled 'Service Reference Settings', in that form click on button 'Add Web Reference'.
  5. There will be a form opened where you can add your web service reference in windows application

Tuesday, March 24, 2009

0

How to change the editable mode of combobox in windows application?

The default style of the combobox is 'DropDown' in which case the user can enter input in the combobox.
If you want to change the style of the combobox control in windows application, just follow the given steps:
  1. Right click on the combobox and select properties
  2. Select the property named 'DropDownStyle'
  3. change the default style 'DropDown' to 'DropDownList'
By using this property, you can control the appearance and functionality of the combobox.
Good Luck :)

Wednesday, March 18, 2009

0

How to navigate between tabs of Browser by using keyboard?

If you want to navigate in between tabs of your browser by using the numeric keys of the keyboard, just follow the give key combination.

Press Ctrl + Numeric Key,
Like Ctrl + 3 to go to directly to third tab and similarly Ctrl + nth number to go to the nth tab.

Good Luck :)