把Edit的边框属性设为None,在它下边自已画一条线.

解决方案 »

  1.   

    Edit+Shapeobject Form1: TForm1
      Left = 192
      Top = 129
      Width = 544
      Height = 375
      Caption = 'Form1'
      Color = clBtnFace
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      OldCreateOrder = False
      PixelsPerInch = 96
      TextHeight = 13
      object Shape1: TShape
        Left = 64
        Top = 48
        Width = 105
        Height = 1
      end
      object Edit1: TEdit
        Left = 64
        Top = 34
        Width = 105
        Height = 14
        BevelOuter = bvNone
        BorderStyle = bsNone
        Color = clScrollBar
        Ctl3D = False
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentCtl3D = False
        ParentFont = False
        TabOrder = 0
        Text = 'Edit1'
      end
    end