Need conversion to VB.net !!!

  • 14 years ago

    using

    System;

    using

    System.Collections;

    using

    System.ComponentModel;

    using

    System.Data;

    using

    System.Drawing;

    using

    System.Web;

    using

    System.Web.SessionState;

    using

    System.Web.UI;

    using

    System.Web.UI.WebControls;

    using

    System.Web.UI.HtmlControls;

    using

    ChartFX.WebForms.Gauge;

    namespace

    CfxGaugesSamples.RadialGauges

    {

    public partial class MultipleNeedles : System.Web.UI.Page

    {

    protected void Page_Load(object sender, System.EventArgs e)

    {

    Needle needle = (Needle) RadialGauge1.MainIndicator;

    if (!IsPostBack)

    {

    foreach (string name in RadialBorderStyle.GetBuiltInStyles())

    Borders.Items.Add(name);

    foreach (string name in NeedleStyle.GetBuiltInStyles())

    Needles.Items.Add(name);

    foreach (string name in RadialCapStyle.GetBuiltInStyles())

    Caps.Items.Add(name);

    Borders.SelectedValue = RadialGauge1.Border.Style.ToString();

    Needles.SelectedValue = needle.Style.ToString();

    Caps.SelectedValue = RadialGauge1.MainScale.Cap.Style.ToString();

    }

    else

    {

    RadialGauge1.Border.Style = Borders.SelectedValue;

    needle.Style = Needles.SelectedValue;

    RadialGauge1.MainScale.Cap.Style = Caps.SelectedValue;

    }

    }

    #region

    Web Form Designer generated code

    override protected void OnInit(EventArgs e)

    {

    InitializeComponent();

    base.OnInit(e);

    }

    private void InitializeComponent()

    {

    }

    #endregion

    }

    }

  • 14 years ago
    Try this site: http://www.kamalpatel.net/ConvertCSharp2VB.aspx. It has worked for me.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Owning a computer without programming is like having a kitchen and using only the microwave oven” - Charles Petzold