Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB.Net syntax.

VB.Net syntax.

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    priyamtheone
    wrote on last edited by
    #1

    what's the vb.Net counterpart of the following blocks in Csharp?

    public class NullableDateTimePicker : System.Windows.Forms.DateTimePicker
    {
    // Default Constructor
    public NullableDateTimePicker() : base()
    {
    base.Format = DateTimePickerFormat.Custom;
    NullValue = " ";
    Format = DateTimePickerFormat.Custom;
    CustomFormat = "dd MMM yyyy";

      this.DataBindings.CollectionChanged += new CollectionChangeEventHandler(DataBindings\_CollectionChanged);
    }
    

    }

    //NullableDateTimePicker is the class from which DateTimePickerEditingControl class inherits.
    //IDataGridViewEditingControl is the interface which DateTimePickerEditingControl class implements.
    class DateTimePickerEditingControl : NullableDateTimePicker, IDataGridViewEditingControl
    {
    //Constructor
    public DateTimePickerEditingControl()
    {
    this.Format = DateTimePickerFormat.Custom;
    this.CustomFormat = "dd MMM yyyy";
    }
    }

    S M 2 Replies Last reply
    0
    • P priyamtheone

      what's the vb.Net counterpart of the following blocks in Csharp?

      public class NullableDateTimePicker : System.Windows.Forms.DateTimePicker
      {
      // Default Constructor
      public NullableDateTimePicker() : base()
      {
      base.Format = DateTimePickerFormat.Custom;
      NullValue = " ";
      Format = DateTimePickerFormat.Custom;
      CustomFormat = "dd MMM yyyy";

        this.DataBindings.CollectionChanged += new CollectionChangeEventHandler(DataBindings\_CollectionChanged);
      }
      

      }

      //NullableDateTimePicker is the class from which DateTimePickerEditingControl class inherits.
      //IDataGridViewEditingControl is the interface which DateTimePickerEditingControl class implements.
      class DateTimePickerEditingControl : NullableDateTimePicker, IDataGridViewEditingControl
      {
      //Constructor
      public DateTimePickerEditingControl()
      {
      this.Format = DateTimePickerFormat.Custom;
      this.CustomFormat = "dd MMM yyyy";
      }
      }

      S Offline
      S Offline
      Smithers Jones
      wrote on last edited by
      #2

      You know, that there are tools for conversing code from C# to VB.Net, do you? Just google for them.

      "I love deadlines. I like the whooshing sound they make as they fly by." (DNA)

      P 1 Reply Last reply
      0
      • S Smithers Jones

        You know, that there are tools for conversing code from C# to VB.Net, do you? Just google for them.

        "I love deadlines. I like the whooshing sound they make as they fly by." (DNA)

        P Offline
        P Offline
        priyamtheone
        wrote on last edited by
        #3

        Never mind. I was making a small mistake. In block 1 it should be: MyBase.New In block 2 it should be: class DateTimePickerEditingControl Inherits NullableDateTimePicker Implements IDataGridViewEditingControl End Class I was writing this in the first place: class DateTimePickerEditingControl Inherits NullableDateTimePicker, Implements IDataGridViewEditingControl End Class

        1 Reply Last reply
        0
        • P priyamtheone

          what's the vb.Net counterpart of the following blocks in Csharp?

          public class NullableDateTimePicker : System.Windows.Forms.DateTimePicker
          {
          // Default Constructor
          public NullableDateTimePicker() : base()
          {
          base.Format = DateTimePickerFormat.Custom;
          NullValue = " ";
          Format = DateTimePickerFormat.Custom;
          CustomFormat = "dd MMM yyyy";

            this.DataBindings.CollectionChanged += new CollectionChangeEventHandler(DataBindings\_CollectionChanged);
          }
          

          }

          //NullableDateTimePicker is the class from which DateTimePickerEditingControl class inherits.
          //IDataGridViewEditingControl is the interface which DateTimePickerEditingControl class implements.
          class DateTimePickerEditingControl : NullableDateTimePicker, IDataGridViewEditingControl
          {
          //Constructor
          public DateTimePickerEditingControl()
          {
          this.Format = DateTimePickerFormat.Custom;
          this.CustomFormat = "dd MMM yyyy";
          }
          }

          M Offline
          M Offline
          mvdcorput
          wrote on last edited by
          #4

          This is a nice online code conversion tool voor VB.NET/C# : http://www.developerfusion.com/tools/convert/csharp-to-vb/

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups