Tag: How to
How to redirect a page using jQuery ?
If you want to redirect a page , one of the best option is to use the window.location.replace method that can demonstrate the HTTP redirect instead of any jQuery trick. How to redirect a page using jQuery ? Below is a sample code snippet demonstrating the redirection of a page .
How to find if the string is a number or not in C# ?
If you want to find out if the input string is a number in C# , you can use the try parse method. How to find if the string is a number or not in C# ? Below is a function in C# that demonstrates finding if the string is a number in C#.
How to Generate Unique ID in C# ?
Do you want to generate a unique id in C# ? . You can use Guid to generate unique data or ID. Below is a sample code snippet that demonstrates how to generate unique ID in C# . How to Generate Unique ID in C# ?
How to Get the Application’s path in Windows or Console Application in C#?
There are times when you want to retrieve the application’s path where the exe is running to get access to another file or accessing the configuration file etc. Below is a sample program that demonstrates how one can retrieve the Application’s path in Windows or Console Application in C#. How to Get the Application’s path in Windows or Console Application in C#?
How to Get the Current Location and Pin it on the Map in Windows Phone 8?
Are you looking to find the current location in the Windows Phone using c# and later pin it on to the map? Below is a sample code snippet that demonstrates how to achieve it. How to Get the Current Location and Pin it on the Map in Windows Phone 8? Code to get the Current Location Code to Plot the Location to Map using MapsTask
Single Click Preview in Visual Studio 2013 Solution Explorer
The single click preview is one of the cool feature in Visual Studio 2013 which lets the developers preview the file in the preview tab. This feature is available for use from Visual Studio Solution explorer as well. You can activate it by clicking the Preview Selected Items button in the Solution explorer toolbar. To disable this feature , you can click the same button…
How to hide horizontal or vertical scroll bar using VBA Code in Excel ?
Here’s a VBA code that hides the horizontal and vertical scroll bar in Microsoft Excel. How to hide horizontal or vertical scroll bar using VBA Code in Excel ? 1. Open the Microsoft Visual Basic for Applications Window using the ALT + F11 keyboard shortcut key. 2. Select Insert -> Module and then paste the following code snippet.
How to Get the Address based on the Co-Ordinates in Windows Phone 8 ?
Below is a sample code snippet that demonstrates how to get the address of the location based on the co-ordinates in Windows Phone 8. How to Get the Address based on the Co-Ordinates in Windows Phone 8 ? In the below code snippet , the latitude and longitude is fixed . The Google’s API is used to get the location details by passing it to…
How to use OrderBy Descending in Lambda Expression in C#?
Below is a sample code snippet demonstrating how to use OrderBy Descending in Lambda Expression in C#. How to use OrderBy Descending in Lambda Expression in C#?
How to delete user account from command line in Windows 10 ?
You can delete a user account from command line in Windows 10 using the net user command and specifying the delete parameters. How to delete user account from command line in Windows 10 ? The syntax for deleting the user from the command line is as follows. net user <username> /DELETE The above command deletes the user from the local system. For example , if…
How to Navigate from One page to Another Page in Windows Phone WinRT Apps ?
Below is a sample code snippet that demonstrates how to navigate from one page to another in Windows Phone Windows Runtime Apps. How to Navigate from One page to Another Page in Windows Phone WinRT Apps ? Frame.Navigate(typeof(ACPage2), param);
How to Search for an App by Publisher in Windows Phone Store using URI Scheme from WP8 App?
Below is a sample code snippet demonstrating Search for an App in Windows Phone Store using URI Scheme from WP8 App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. How to Search for an App by Publisher in Windows Phone Store using URI Scheme from WP8 App?
How to Format a Number for a Specific Culture in C# ?
Below is a sample code snippet demonstrating how to format the number for a specific culture in C# . In the below sample code , the german (de-DE) and US English Format is used. How to Format a Number for a Specific Culture in C# ?
How to Run a Windows Store App from Visual Studio 2013 ?
When you have created your Windows Store App , you can run it by pressing the “Run” button from Visual Studio toolbar or use the shortcut key “F5” to run the app. How to Run a Windows Store App from Visual Studio 2013 ?
How to Programatically Create ApplicationBar in Windows Phone ?
Are you looking to create ApplicationBar programmatically at runtime in Windows Phone ? . Below is a sample code snippet that demonstrates how to create Application Bar in Windows Phone 8 . How to Programatically Create ApplicationBar in Windows Phone ? Call this function in the constructor of the page after the InitializeComponent method.
How to Declare and Define an signed byte data type variable in F# ?
How to Declare and Define an signed byte data type variable in F# ?
Comparing only Date in the DateTime datatype in C#
The DateTime datatype includes both the date as well as the time component to it in C#. By any chance , if you want to compare only the date part in the DateTime variable in C# , you can use the Date property defined in the DateTime class. How to compare only Date in the DateTime datatype in C# ?
How to generate C# classes from xsd file ?
You can easily generate the C# classes or entities from the xsd file using the VS Command Prompt. How to generate C# classes from xsd file ? Just launch the VS command prompt from the Windows 10 Start menu and run the following command xsd <Path of your.xsd file> /classes Eg : xsd “C:/test.xsd” /classes This would create the .cs files in the same folder…
How to Display list of databases on a MySQL?
If you want to display the list of databases in a MySQL server, you can use the command ‘show databases’. How to Display list of databases on a MySQL?
Converting an Enum to Integer in C#
If you need to convert an enum to its numeric equivalent , you can simply cast the values to integer . Below is a sample code snippet that demonstrates how to do it. Converting an Enum to Integer in C#