locked
What is the equivalent for this in VB.NET RRS feed

  • Question

  • Dear Team,

     

    If we need to comment more than one line we'll use the following syntax in C#.NET.

     

    /* this.comboBox1 = new System.Windows.Forms.ComboBox();
    
    this.button1 = new System.Windows.Forms.Button();
    
    this.dataGridView1 = new System.Windows.Forms.DataGridView();
    
    this.textBox1 = new System.Windows.Forms.TextBox();
    
    this.panel3 = new System.Windows.Forms.Panel();
    
    this.textBox2 = new System.Windows.Forms.TextBox();
    
    this.pictureBox1 = new System.Windows.Forms.PictureBox();
    
    ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
    
    ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
    
    this.SuspendLayout();*/
    
    

    What is the equivalent for this in VB.NET. I know the following syntax, I'm expecting other than this

    ' .ToolTipIcon = Tipicon
    
    ' .ShowAlways = False
    
    ' .IsBalloon = True
    
    
    I look forward to hear from you.
    

    Thanks and Regards, Bharath S.
    Friday, October 22, 2010 9:39 AM

Answers

  • Multi-line comments do not exist in VB. If you want to comment a lot of lines in one go, you can use ctrl+K, ctrl+C. To uncomment them, ctrl+K, ctrl+U. Or there's a button to do it, or you can look under Edit->Advanced.

    HTH,

    Andrew

    Friday, October 22, 2010 10:44 AM

All replies

  • Multi-line comments do not exist in VB. If you want to comment a lot of lines in one go, you can use ctrl+K, ctrl+C. To uncomment them, ctrl+K, ctrl+U. Or there's a button to do it, or you can look under Edit->Advanced.

    HTH,

    Andrew

    Friday, October 22, 2010 10:44 AM
  • Dear Andrew,

     

    Thanks for your reply.

     

    CTRL + K,C

     

    Having any Microsoft ref document for this?. Awaiting for your reply.

     

    will also do the above same thing. I'm looking for some other way.

    Thanks and Regards, Bharath S.
    Friday, October 22, 2010 11:24 AM
  • Look in the Edit menu under Advanced...

    --
    Andrew

    Friday, October 22, 2010 11:37 AM