1. On Saturday September 3RD, 2016 this community will be shutdown permanently.

    The time has come to close this community. I no longer have any interest in Visual Studio programming and my efforts to find someone to take over the community has failed.

    If anyone is interested in acquiring the database contact me and I will make it available for you.

can someone convert this code

Discussion in 'Visual Basic .Net' started by DN Admin, Apr 25, 2012.

  1. DN Admin

    DN Admin Administrator
    Staff Member

    Country:
    United States
    Joined:
    Aug 7, 2010
    Messages:
    12,048
    Likes Received:
    258
    Location:
    Joliet, IL U.S.A.
    can someone convert this c# to vb please
    <pre class="prettyprint using System;
    using System.Windows.Forms;

    namespace EmbedAutoCAD
    {
    public partial class MainForm : Form
    {
    public MainForm()
    {
    InitializeComponent();
    }

    private void browseButton_Click(
    object sender, EventArgs e)
    {
    OpenFileDialog dlg =
    new OpenFileDialog();
    dlg.InitialDirectory =
    System.Environment.CurrentDirectory;

    dlg.Filter =
    "DWG files (*.dwg)|*.dwg|All files (*.*)|*.*";

    Cursor oc = Cursor;

    String fn = "";

    if (dlg.ShowDialog() ==
    DialogResult.OK)
    {
    Cursor = Cursors.WaitCursor;
    fn = dlg.FileName;
    Refresh();
    }
    if (fn != "")
    this.drawingPath.Text = fn;

    Cursor = oc;
    }
    private void loadButton_Click(
    object sender, EventArgs e)
    {
    if (System.IO.File.Exists(drawingPath.Text))
    axAcCtrl1.Src = drawingPath.Text;
    else
    MessageBox.Show("File does not exist");
    }

    private void postButton_Click(
    object sender, EventArgs e)
    {
    axAcCtrl1.PostCommand(cmdString.Text);
    }
    }
    }</pre>
    <br/><hr class="sig btickle1

    View the full article
     

Share This Page