Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Drawing;
- using System.Windows.Forms;
- using System.Drawing.Drawing2D;
- using System.Runtime.InteropServices;
- using System.ComponentModel;
- namespace main.Classes.CustomControls {
- class TextBoxMaterial : TextBox {
- Label leftPadding = new Label() {
- Width = 7,
- Dock = DockStyle.Left,
- BackColor = Color.White,
- };
- public TextBoxMaterial() {
- this.BorderStyle = System.Windows.Forms.BorderStyle.None;
- AutoSize = false;
- this.Controls.Add(new Label() {
- Height = 2,
- Dock = DockStyle.Bottom,
- BackColor = Color.Gray,
- });
- // This only docks and overlays above the text :(
- this.Controls.Add(leftPadding);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement