Tuesday, September 28, 2010

Developing Application for Windows Phone 7



The new windows phone 7 was shown to MCTs in the MCT Summit 2010. If you want to develop applicatons for it, then you have come to the right place.

WP7 uses a silverlight-based operating system so we can develop applications using silverlight. We will need Windows Phone 7 developer tools, Silverlight for windows phone 7 toolkit and of course Visual studio 2010. To get started to develop apps for WP7 follow the steps below:
  1. Download the zip file from the following link : http://www.multiupload.com/BUJ55LVL0C
  2. Extract all the contents of the zip file to a folder on your computer
  3. Run WP7 Developer tools.exe and install the developer tools
  4. Run the installer named Silverlight for Windows Phone Toolkit.msi

Now you have all the tools to get started. To unlock the emulator follow the steps below:

  1. Go to C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Emulation\Images
  2. Rename WM70C1.en-US.bin in that folder to WM70C1.en-US_old.bin
  3. now copy WM70C1.en-US.bin from the folder we downloaded to C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Emulation\Images
  4. Enjoy the unlocked emulator

Friday, September 24, 2010

Microsoft Course 10262A Free Download

Course 10262A:

Developing Windows Applications with Microsoft Visual Studio 2010

To download the course free use the links below:

http://hotfile.com/dl/44790423/5bedcdb/MS10262ADWAWVS2010CD.part01.rar
http://hotfile.com/dl/44790424/43ccc0d/MS10262ADWAWVS2010CD.part02.rar
http://hotfile.com/dl/44790428/99ad67f/MS10262ADWAWVS2010CD.part03.rar
http://hotfile.com/dl/44790433/0a8cb5d/MS10262ADWAWVS2010CD.part04.rar
http://hotfile.com/dl/44790438/6fb3c01/MS10262ADWAWVS2010CD.part05.rar
http://hotfile.com/dl/44790483/d53db7c/MS10262ADWAWVS2010CD.part06.rar
http://hotfile.com/dl/44790501/354049a/MS10262ADWAWVS2010CD.part07.rar
http://hotfile.com/dl/44790516/725d677/MS10262ADWAWVS2010CD.part08.rar
http://hotfile.com/dl/44790522/9d6f059/MS10262ADWAWVS2010CD.part09.rar
http://hotfile.com/dl/44790540/9b0ab89/MS10262ADWAWVS2010CD.part10.rar
http://hotfile.com/dl/44790633/568b0c4/MS10262ADWAWVS2010CD.part11.rar
http://hotfile.com/dl/44790637/8a1d23f/MS10262ADWAWVS2010CD.part12.rar
http://hotfile.com/dl/44790640/9b762cf/MS10262ADWAWVS2010CD.part13.rar
http://hotfile.com/dl/44790650/5336b7a/MS10262ADWAWVS2010CD.part14.rar
http://hotfile.com/dl/44790651/92a78c5/MS10262ADWAWVS2010CD.part15.rar
http://hotfile.com/dl/44790688/53a703c/MS10262ADWAWVS2010CD.part16.rar
http://hotfile.com/dl/44790706/793a489/MS10262ADWAWVS2010CD.part17.rar
http://hotfile.com/dl/44790710/84575e4/MS10262ADWAWVS2010CD.part18.rar
http://hotfile.com/dl/44790714/2ce2091/MS10262ADWAWVS2010CD.part19.rar

If you want to download only the presentations go to the following link:

 

Wednesday, September 8, 2010

Reading and Writing to Text Files

Today we will write "Hello World" to a file and then read it from there and display it to the Console

First, open Visual Studio, make a new VB Console Application and add System.IO namespace to your sollution.

To write the text file, create an instance of StreamWriter class and provide the path as a parameter such as 

"C:\Hello World.txt". The following code demonstrates this:

Dim sw As StreamWriter = New StreamWriter("C:\Hello World.txt") 

Now, we will write code to write in the text file using the write method:

sw.Write("Hello, World!")

Now, close the the text file :

sw.Flush()
sw.Close()

_____________________________________________________

To read the text file, create an instance of StreamReader class and provide the path of the text file as a parameter. The following code demonstrates this:

Dim sr As StreamReader = New StreamReader("C:\Hello World.txt") 

Now, we will write code to read from the text file using the ReadtoEnd method:

Console.Writeline(sr.ReadToEnd())

Now, close the the text file :

sr.Close()

If you like my post please follow my blog.

Monday, September 6, 2010

Spliting Strings in Visual Basic

This post demonstrates how to split strings such as "2+2"

Create a Visual Basic Console Application in Visual Studio and Write the following code to split the strings:

Dim i As String = "2+2"
Dim d As Array = i.Split("+")

The Split Method Splits the strings in several parts using the character with which they are separated which is "+" in this case and then it returns an Array. Now write code to convert them to Integer.

Dim a As Integer = Convert.ToInt32(d(0))
Dim b As Integer = Convert.ToInt32(d(1))

Now lets verify that our String was correctly separated.

Console.WriteLine(Convert.ToString(a + b))

Our Console Application should write : 4 .

Please contact me at mauhib@gmail.com and send me your suggestions.

Saturday, September 4, 2010

Creating a simple Chat Spammer using Visual Studio

This Chat Spammer simultaneously sends the same message again and again in a chat program. To create a simple Chat Spammer follow the steps below:

Open Visual Studio and create a new Windows Forms Application.

Add a Timer Control, 2 Buttons and a Textbox. Change the title of your form to Chat Spammer, Change the Textbox's text to "Enter message here" and Change the text of Button1 to "Start" and Button2 to "Stop" Now your application will look like this:


Double click "Start" button and write this code:

Timer1.Start()

Double click "Stop" button and write this code:

Timer1.Stop()

Now, write code for Timer1's Tick event by double clicking timer one and writing this code:

SendKeys.Send(TextBox1.Text)
SendKeys.Send("{Enter}")

Now, open debug the program and fill the text box with your message. Click start and put the cursor on a chat program's textbox.

Please contact me at mauhib@gmail.com and send me your suggestions.

Share the Knowledge

My Card