Click here to Skip to main content
15,881,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can Anyone Translate This Visual C# Code To VB.net Code And Give Me ?
Code -
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmsClient;

namespace Way2sms_Messenger_1._0
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

               SendSms sms = new SendSms();
                string status = sms.send(textBox1.Text, textBox2.Text, richTextBox1.Text, textBox3.Text);
                if (status == "1")
                {
                    label5.Text = "Sending Sms ";
                }
                else if (status == "2")
                {
                    MessageBox.Show("Please Check Your Internet Connection");
                }
                else
                {
                    MessageBox.Show("Invalid Password or User Name");
                }

                    MessageBox.Show("Your Daily Sms Limit Was Completed \nso Please Try with  Another Account");
                    sms.send(textBox1.Text, textBox2.Text, "Sms Where Sent Via:Way2sms Messenger+ By Admin:www.smarttricks.co.nr", textBox3.Text);




        }

        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Clear();
            textBox2.Clear();
            textBox3.Clear();
            richTextBox1.Clear();


        }

       private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {

        }

        private void label5_Click(object sender, EventArgs e)
        {

        }


    }
}
Posted

1 solution

There is nothing in what you posted that should be difficult for you to convert to VB yourself.

Its also a really good learning experience, I would try converting it yourself and come back when you are stuck on something.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900