|
|
-
|
|
Recently I needed to convert a float value to nearest integer...
I used Convert.ToInt32
The problem found with is it will convert decimal like 7.5,8.5 to nearest even integer
Convert.ToInt32(7.5)=>8
Convert.ToInt32(8.5)=>8 !!!
The solution f...
|
|
-
13 Liked
| 12 Learned
| 11 Comments
|
|
Adding the /NOSPLASH option to your Visual Studio\BIDS shortcut will make Visual Studio\BIDS launch quicker :
%ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /NOSPLASH
%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\d......
|
|
-
|
|
I have seen & worked on datagrids in winform applications as well webform applications (ASP Dot Net) but, while watching training video for WPF i found a very good feature for WPF Datagrid that is multisort.
Generally when we click on a column, it so......
|
|
-
|
|
Often in web applications, while validating the data at client side, we often have the scenario of calling a function, which is implemented in server side. For example, we might want to validate the entered user name is already exists in our database. T......
|
|
-
|
|
It is not possible to create a folder named "CON" on a machine having Windows operating system, also you can't create folder with the below names
[code]NUL, AUX, COM1-4, LPT1-3, and PRN [/code] Above words are reserved words used for DOS Devices.
......
|
|
-
|
|
Yield is a keyword which is used to get list of items from a loop. The method implementing yield keyword returns an enumerable object.Yield retains the state of the method during the multiple calls. it means yield returns a single element to the callin......
|
|
-
|
|
While using Internet Explorer, if you want to open a link in a new tab or to close a currently opened Tab, then simply hover over the link/tab and press the scroll Wheel of your scroll mouse.
This technique for closing tabs working in many other appl......
|
|
-
|
|
Very easy way to validate user input its valid date
In web application validation is very basic thing when we are working on page where user needs to add input using textbox as user insert correct value
Here I display case for valid date you can a......
|
|
-
|
|
Generally we can see project files in solution explorer but now you can also see properties and method defined in file. You double click on file it will open fine and take you directly to that method declaration.
Solution explorer also provides search ......
|
|
-
|
|
Both are keyword cause argument passed by reference. There is minor difference between both of then
ref:
ref keyword required that variable must be initialized before passed to function
Out:
Out keyword variable initialization is not required but b......
|
|