-
Notifications
You must be signed in to change notification settings - Fork 0
/
CodesExemple.txt
22 lines (16 loc) · 988 Bytes
/
CodesExemple.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Codigo para colocar um form dentro do outro, PRECISA DE UM PANEL
this.pnlFormLoader.Controls.Clear();
CashFlowPage CashFlowPage_vrb = new CashFlowPage() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true };
CashFlowPage_vrb.FormBorderStyle = FormBorderStyle.None;
this.pnlFormLoader.Controls.Add(CashFlowPage_vrb);
CashFlowPage_vrb.Show();
COdigo para colocar um degrade
private void TestScreen_Paint(object sender, PaintEventArgs e)
{
Graphics mgraphics = e.Graphics;
Pen pen = new Pen(Color.FromArgb(127, 03, 22), 1);
Rectangle area = new Rectangle(0, 0, this.Width - 1, this.Height - 1);
LinearGradientBrush lgb = new LinearGradientBrush(area, Color.FromArgb(127, 03, 22), Color.FromArgb(41, 56, 73), LinearGradientMode.Vertical);
mgraphics.FillRectangle(lgb, area);
mgraphics.DrawRectangle(pen, area);
}