Create a Kylix SMS .NET project Step by Step

1. Create a C#/VB.NET Windows Form Application.

  • Start Visual Studio 2005/2008/2010, choose menu 'File -> New -> Project'. Project name 'HelloKylixSMS', click 'OK' to create a new project.

2. Add Kylix SMS .NET Component to project.

  • If this component is installed correctly, you will find 'KylixSMS' item on 'Toolbox'. Find and drag it from 'Toolbox' to main 'Form', it will show up below 'Form', change it's name to 'objKylix'.

  • If 'KylixSMS' doesn't listed in 'Toolbox' item list, right click on 'Toolbox' select 'Choose Items...', follow these steps:

  • If you can find the unchecked item "KylixSMS", please locate and select file 'KylixSMS.dll', click 'Open' button, then the component will show up on 'Toolbox'. File 'KylixSMS.dll' can be found in install directory, default: "C:\Program Files\KylixSMS .NET Component 6.2".

3. Using Kylix SMS .NET Component.

  • Place 6 buttons on main 'Form', change their names like the screenshot blow.
  • Double click on 'Search Devices' button to open source code file.
  • Add namespace 'Imports KylixComponent' (VB) or 'Using KylixComponent' (C#) at the top of source code.
  • Copy code from 'HelloKylixSMS' demo project which is installed with setup file for all buttons. Default install folder: "C:\Program Files\KylixSMS .NET Component 6.2\HelloKylixSMSVB" or "C:\Program Files\KylixSMS .NET Component 6.2\HelloKylixSMSCS".

4. Process Kylix SMS .NET Component events.

  • Open 'Property' page of 'objKylix', click 'Events' button, the 5 events will show up.
  • Double click on each event to create process functions like screenshot blow.
  • Copy code from 'HelloKylixSMS' demo project which is installed with setup file for all buttons. Default install folder: "C:\Program Files\KylixSMS .NET Component 6.2\HelloKylixSMSVB" or "C:\Program Files\KylixSMS .NET Component 6.2\HelloKylixSMSCS".

5. Test the program.

  • Press F5 to debug the program.
  • Click 'Search Devices' button to find your device, then stop debug.
  • Change the port number objKylix.Port = "COMx" in function 'btnConnect_Click'.
  • Change 'Recipient' to your own mobile phone number.
  • Start the program again, click 'Connect' button to connect to your device.
  • Make a voice call to your device, the 'IncomingCallEvent' will be triggered and a message box will show up.
  • Click 'Send SMS' or 'Send To Queue' button to send a SMS. "SMSDeliveredEvent" and "SMSSentEvent" will be triggered and message boxes will show up.
  • Send a SMS to your device, the "SMSReceivedEvent" will be triggered and a message box will show up.
  • Click 'Read SMS' button to read all messages saved on SIM card. This may take a few seconds, then "SMSReadEvent" will be triggered and message boxes will show up.
  • Click 'Disconnect' button to disconnect your device.
  • Close the program, the testing ends.