Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to ensure Winforms controls stay right-aligned regardless of font setting?
- tmin[i].Anchor = AnchorStyles.Right | AnchorStyles.Top;
- tmax[i].Anchor = AnchorStyles.Right | AnchorStyles.Top;
- gb[i].Anchor = AnchorStyles.Right | AnchorStyles.Top;
- height = 1;
- padding = 10;
- for (int i = 3; i < ff.documentColumnCount; i++)
- {
- tmax[i] = new TextBox();
- tmax[i].Name = max + (i - 2).ToString();
- tmax[i].TabIndex = i;
- tmax[i].Size = new System.Drawing.Size(65, 20);
- tmax[i].Location = new System.Drawing.Point(326, 36 + i * 20);
- tmax[i].TextChanged += new System.EventHandler(tmax17_TextChanged);
- tmax[i].Bounds = new Rectangle(326, 20 + padding + height, 65, 22);
- tmax[i].Anchor = AnchorStyles.Right | AnchorStyles.Top;
- maxTextBoxes.Add(tmax[i]);
- panel5.Controls.Add(tmax[i]);
- height += 22;
- }
Add Comment
Please, Sign In to add comment