Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. Graphics gph = this.CreateGraphics();
  2.             GraphicsPath fontpath = new GraphicsPath();
  3.  
  4.             FontFamily fFamily = new FontFamily("Microsoft Sans Serif");
  5.             FontStyle fStyle = FontStyle.Regular;
  6.             StringFormat sFormat = StringFormat.GenericDefault;
  7.  
  8.             int fontSize = 12;
  9.  
  10.             fontpath.AddString("Host / IP", fFamily, (int)fStyle, fontSize, new Point(7, 65), sFormat);
  11.             fontpath.AddString("Port", fFamily, (int)fStyle, fontSize, new Point(7, 92), sFormat);
  12.             fontpath.AddString("User Name", fFamily, (int)fStyle, fontSize, new Point(7, 142), sFormat);
  13.             fontpath.AddString("Password", fFamily, (int)fStyle, fontSize, new Point(7, 169), sFormat);
  14.             fontpath.AddString("DataBase", fFamily, (int)fStyle, fontSize, new Point(7, 219), sFormat);
  15.  
  16.             gph.SmoothingMode = SmoothingMode.HighQuality;
  17.             gph.FillPath(Brushes.Black, fontpath);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement