Monday, 30 August 2010

Installing Android Lock Screen on iPhone 3GS – IOS4

Run “Cydia” on your iPhone


Go to Manage


Select Sources


Select “Edit


Select “Add


Enter following url:


Select “Done” and go to “SinfuL iPhone Repo


Now select “AndroidLock XT Cracked


Select Install and Confirm


After installation go to “Settings” and setup the application



** Please Note : If you forgot the pattern, do the following steps :


Saturday, 21 August 2010

How to Add a Splash Screen to a WPF Application

Adding a Splash Screen to a WPF Application is really easy. For this I will be using VS 2010.

First prepare your image using an image editing application (Such as Photoshop). For this example I will be using the following image that I created using the MSPaint application.



Create a WPF application using VS 2010. And add your Splash Screen image to the project.

Add Existing


And change the build action of your image to “SplashScreen”.

Build Action

And when you run the application you can see the Splash Screen with a fading effect, before the Main Window.

But there are times that we want to keep the splash screen for more than the default time (300 Milliseconds). In order to do that, follow these steps.

Change the application’s build action from “Application Definition” to “Page”

Build Action 2


Create a constructor, and call the “InitializeComponent” method within that.

public App() {

Write your own Main method. And call for the splash screen within that main method. And you can state the amount of time that you wish to keep your splash screen visible.

public static void Main() {
SplashScreen sc = new SplashScreen("Splash.png");
SplashScreenExample.App app = new SplashScreenExample.App();
app.Run(new MainWindow());

Now go to project properties and change the startup object from “Not Set” to your app class name (In this example its “SplashScreenExample.App”).

Startup Object 

Now when you run your application, you can see that the splash screen stays for 4 seconds. (Including the fading time)

Wednesday, 18 August 2010

Create table from existing table structure and insert data

Sometimes we might need to create a SQL table from an existing table and insert data from that particular table. So instead of creating the table separately using the ‘CREATE TABLE’ command, we can use the following statement.

select <FieldList> into new_table
from existing_table
<where condition>


select emp_id, emp_fname, emp_lname into emp_temp
from emp_master
where emp_state = 'NY'

** If  you created the table for temporary usage, make sure to drop it, after using it.

Monday, 9 August 2010

Create a Multiline TextBox Control using WPF [WPF – Multiline Text Box]

In windows applications we set the “Multiline” property to “true” in order to make a textbox multiline. But in WPF, there’s no property called “Multiline”. In order to make textbox multiline in WPF, you have to set three properties. That is :

  • TextWrapping=”Wrap”
  • VerticalScrollBarVisibility=”True”
  • AcceptsReturn=”True”



<TextBox Name="txtaddress"