Copying a file using FileInfo – C Sharp/C#
Hi, For copying a file using FileInfo in C Sharp/C#, use the following code. For copying a file without using file info check the example given here. 🙂
Hi, For copying a file using FileInfo in C Sharp/C#, use the following code. For copying a file without using file info check the example given here. 🙂
The FlowLayout class puts components in a row, sized at their preferred size. Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps. The hgap and vgap arguments specify the number of pixels to put between components. The output window look like this
Hi, For printing statements in PHP we make use of echo like this. An alternative way of echo or a shorthand of echo will look like this. 🙂
Hi all….. Splitting a string in android is really easy.checkout the following snippet. Check the Logcat for output. Note: Make sure to put the escape character before the delimiter for splitting,otherwise the output may be each character.
This tutorial shows how to create a tableview in Titanium and add data to it. How to handle a click function in the tableView and get the data from the row. Please leave your valuable comments.
Hi, Sometimes you may need to get the files from a specified directory using C# / C Sharp. See the sample code on how it works. This code will get you files from the root directory. 🙂
Hi, Let’s see a simple example of deleting a file in a folder using c#. sampleFile.Create() will create the file in the specified folder. sampleFile.Delete() will delete the file in the specified folder. 🙂
Hi, If you want to show the latest twitter update of yours in your blogger/blogspot, then use the following steps. 1. Go to your blogger ‘Design’ 2. Click ‘Add A Gadget’ 3. Add ‘HTML/JavaScript’ 4. Paste the following JavaScript code into it and save 5. Done! Note : Replace ‘SampleURL’ with your twitter id &… Read More »
Hi, How can you create a text file in C# and write to it? Sometimes you may need to create a text file using C sharp program. Here is how you can do that. 🙂
Hi, See how a very simple exception handling works with try-catch methods using C#. Output- “You got the exception-> Attempted to divide by zero.” 🙂
Hi, Sometimes you may need to find whether a particular year is leap year or not. But how can you find out whether a particular year is leap year or not in C# ? Use the following code. And the output is, Is the year 2011 a leap year ? = False 🙂
First create a database named “mydatabase” in MySql. Then create a table “tbl_user” with three fields (id, username and password). The next step is to create a php page which will communicate between the MySql database and the android application. For this create a “Connections.php” page as shown below. It will set up a  connection… Read More »
The below code helps you to rotate a body in Box2D manually. Here the body is named “rotating_body” which is going to rotate and a sprite named “rot_sprite” is it’s userData, please give your own image for it. Make sure that you have it in your resources otherwise your program will crash. Note: call this… Read More »