Visual C#代码转换到VB.net [英] Visual C # Code Translation Into VB.net

查看:72
本文介绍了Visual C#代码转换到VB.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以将此Visual C#代码转换为VB.net代码并给我吗?

代码 -

Can Anyone Translate This Visual C# Code To VB.net Code And Give Me ?
Code -

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)
        {

        }


    }
}

推荐答案

有你发布的内容并不是什么,你自己很难转换为VB。



这也是一个非常好的学习经历,我会尝试自己转换它,当你遇到困难时回来。
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.


这篇关于Visual C#代码转换到VB.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆