RobotStudio event

Multi line in ABB textbox

Options

I have severel textboxes where i use textbox.multiline = False but when i write in the textbox there comes multilines.

Is it a bug or du i miss some thing.

Here is my code


Me.Txt_RP_Name.BackColor = System.Drawing.Color.MediumBlue
Me.Txt_RP_Name.CaretVisible = False
Me.Txt_RP_Name.FontName = New ABB.Robotics.Tps.Windows.Forms.DesignerFont("Font10")
Me.Txt_RP_Name.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
Me.Txt_RP_Name.Location = New System.Drawing.Point(230, 44)
Me.Txt_RP_Name.Multiline = False
Me.Txt_RP_Name.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.Txt_RP_Name.SelectionLength = 0
Me.Txt_RP_Name.SelectionStart = 0
Me.Txt_RP_Name.SelectionVisible = False
Me.Txt_RP_Name.Size = New System.Drawing.Size(193, 31)
Me.Txt_RP_Name.TabIndex = 136
Me.Txt_RP_Name.Text = "Receipe_1"
Me.Txt_RP_Name.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
Me.Txt_RP_Name.WordWrap = True

Best regards klaus

Best Regards

Klaus Soenderhegn
www.cadalysator.dk

Comments

  • RussD
    Options

    Try turning off WordWrap.

    Also, if you are editing the InitializeComponent (the automatically generated design view) section of your code, be aware of the fact that making changes in the designer can and will regenerate the InitializeCOmponent code, which may overwrite changes that you have manually added.

    RussD2008-1-15 14:16:10
    Russell Drown
  • Klaus
    Options

    Hei Russ

    It works. Thanks alot.

    Best regards klaus

    Best Regards

    Klaus Soenderhegn
    www.cadalysator.dk