private void main_menu_Load(object sender, EventArgs e) { pooling.Enabled = CanPolling; /*axShockwaveFlash1.Stop(); * axShockwaveFlash1.LoadMovie(0, Ipaybox.StartupPath + @"\flash\mtsklass2605.swf"); * axShockwaveFlash1.PreviewKeyDown += new PreviewKeyDownEventHandler(OnBannerKeyDown); * axShockwaveFlash1.Size = new Size(968, 151);*/ //axShockwaveFlash1.Play(); TransparentPanel panel = new TransparentPanel(); /*panel.Location = axShockwaveFlash1.Location; * panel.Size = axShockwaveFlash1.Size; * panel.Click += new EventHandler(OnPanel_Click); * this.Controls.Add(panel); * panel.BringToFront();*/ pb_count = 0; Ipaybox.IsMainMenu = true; this.DoubleBuffered = true; //support.Text = Ipaybox.Terminal.jur_name+ " ИНН "+Ipaybox.Terminal.jur_inn + " Тех. поддержка:"+ Ipaybox.Terminal.support_phone; System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.RealTime; this.Size = Ipaybox.Resolution; if (Ipaybox.Inches == 17) { this.Location = new Point(0, 0); } support.Top = this.Bottom - 15; support.Left = (this.Size.Width - support.Size.Width) / 2; this.StartPosition = FormStartPosition.CenterScreen; if (!Ipaybox.Debug) { this.TopMost = true; } try { _cursor.Hide(); } catch { } LoadThisForm(); if (string.IsNullOrEmpty(Ipaybox.PRV_SELECTED_GROUP.id)) { LoadTop5(Ipaybox.Inches); } else { Load_Group(Ipaybox.PRV_SELECTED_GROUP.id); } DrawScreen(); }
public static void TPCreator(ref TransparentPanel panel, int left, int top, int width, int height) { panel = new TransparentPanel(); panel.Left = left; panel.Top = top; panel.Size = new Size(width, height); panel.Cursor = Cursors.Hand; }
private void Button1_Click(object sender, EventArgs e) { ScriptErrorHandler.errorImages.Clear(); foreach (var f in Directory.GetFiles("Img\\Errors")) { Thread.Sleep(10); using (Stream bmp = File.Open(f, FileMode.Open)) { Image temp = Image.FromStream(bmp); ScriptErrorHandler.errorImages.Add(new Bitmap(temp)); } } if ((PrivateVariable.nospam - DateTime.Now).Duration() < TimeSpan.FromSeconds(4)) { return; } PrivateVariable.nospam = DateTime.Now; Variables.ProchWnd = panel3.Handle; richTextBox1.Text = ""; btn_Start.Enabled = false; PrivateVariable.Skills.Clear(); var files = Directory.GetFiles("Img\\Star"); foreach (var f in files) { using (Stream bmp = File.Open(f, FileMode.Open)) { Image image = Image.FromStream(bmp); PrivateVariable.Skills.Add(BotCore.Compress(image as Bitmap)); } } if (panel3.Visible == false) { Width += 1280; panel3.Visible = true; } panel3.Enabled = false; tp = new TransparentPanel { Location = panel3.Location, Size = panel3.Size, Enabled = true, Visible = true }; tp.MouseDown += Tp_MouseDown; Controls.Add(tp); foreach (Control control in Debug.Controls) { if (control is Button) { control.Enabled = false; } } ScriptRun.RunScript(true, (new VCBotScript() as ScriptInterface)); Thread cap = new Thread(Capt); cap.Start(); }
public MetadataSummaryControl() { InitializeComponent(); _transparentPanel = new TransparentPanel(); _transparentPanel.Dock = DockStyle.Fill; this.Controls.Add(_transparentPanel); _transparentPanel.BringToFront(); }
public FullscreenPlayer(Control player) : this() { this.parent = player.Parent; this.player = player; this.Controls.Add(player); var tp = new TransparentPanel(); tp.Dock = DockStyle.Fill; tp.DoubleClick += new EventHandler(transparentPanel_DoubleClick); this.Controls.Add(tp); tp.BringToFront(); }
public TestEventProxy() { InitializeComponent(); browser = new CefFormsWebBrowser(testURL, new BrowserSettings()); browser.Dock = DockStyle.Fill; this.toolStripContainer1.ContentPanel.Controls.Add(browser); eventProxy = new TransparentPanel(browser); eventProxy.Dock = DockStyle.Fill; this.toolStripContainer1.ContentPanel.Controls.Add(eventProxy); }
public Form1() { InitializeComponent(); TransparentPanel panel = new TransparentPanel() { Location = dateTimePicker1.Location, Size = dateTimePicker1.Size, }; this.Controls.Add(panel); panel.DoubleClick += Panel_DoubleClick; panel.BringToFront(); }
void cover_Click(object sender, EventArgs e) { changeState(); TransparentPanel s = (TransparentPanel)sender; foreach (Component item in s.Parent.Controls) { if (item is Label) { new ShelfView(((Label)item).Text); break; } } }
//************************************************************************************************************* public void Open() { try { AppProcess = new Process(); AppProcess.EnableRaisingEvents = true; AppProcess.StartInfo.FileName = ApplicationCommand; AppProcess.StartInfo.Arguments = ApplicationParameters; AppProcess.Exited += delegate(object sender, EventArgs ev) { if (callCloseEvent) { ClosedCallback?.Invoke(true); } }; AppProcess.Start(); AppProcess.WaitForInputIdle(); AppWindow = AppProcess.MainWindowHandle; SetParent(AppWindow, Handle); SetForegroundWindow(this.Handle); } catch (Exception ex) { throw; } ShowWindow(AppWindow, 3); //SW_SHOWMAXIMIZED int lStyle = GetWindowLong(AppWindow, GWL_STYLE); lStyle &= ~(WS_BORDER | WS_THICKFRAME); SetWindowLong(AppWindow, GWL_STYLE, lStyle); if (TryCorrectFocus) { overlay = new TransparentPanel(); overlay.BackColor = Color.Transparent; overlay.Dock = System.Windows.Forms.DockStyle.Fill; overlay.Parent = this; overlay.AppWindow = AppWindow; } OnResize(null); Show(); StartedCallback?.Invoke(); }
/// <summary> /// Shows a notification on the form. /// </summary> /// <param name="form">The form to display the notification.</param> /// <param name="message">The message (notification) that should be displayed.</param> /// <param name="duration">The duration of the notification (specify -1 for infinite).</param> /// <param name="opacity">The opacity of the background (0..1).</param> /// <param name="glowColor">The glow color of the message rectangle.</param> /// <param name="backColor">The background color of the message rectangle.</param> /// <param name="foreColor">The text color of the message.</param> /// <returns>Control.</returns> public static Control Notify(this Form form, string message, int duration, double opacity, Color glowColor, Color backColor, Color foreColor) { var font = new Font(form.Font.FontFamily, form.Font.Size * 1.2f, form.Font.Unit); var proposedSize = new Size(form.Width * 6 / 10, 0); var size = TextRenderer.MeasureText(message, font, proposedSize, TextFormatFlags.WordBreak); var panel = new TransparentPanel(); panel.Size = form.ClientRectangle.Size; panel.Location = new Point(0, 0); panel.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom; panel.Paint += (sender, e) => { var g = e.Graphics; e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb((int)Math.Ceiling(255.0 * opacity), Color.Black)), 0, 0, panel.Width, panel.Height); g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; var rectangle = new Rectangle(0, 0, size.Width + 20, size.Height + 10); rectangle.Offset(form.Width / 2 - rectangle.Width / 2, form.Height / 2 - rectangle.Height / 2); g.GlowRectangle(rectangle, glowColor, 30, 10); g.FillRoundRectangle(new SolidBrush(backColor), rectangle, 5); TextRenderer.DrawText(g, message, font, rectangle, foreColor, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.WordBreak); }; form.Controls.Add(panel); panel.BringToFront(); if (duration > 0) { var timer = new Timer(); timer.Interval = duration; timer.Tick += (sender, e) => { form.Controls.Remove(panel); panel = null; timer.Stop(); }; timer.Start(); } form.Refresh(); return(panel); }
/// <summary> /// Shows a notification on the form. /// </summary> /// <param name="form">The form to display the notification.</param> /// <param name="message">The message (notification) that should be displayed.</param> /// <param name="duration">The duration of the notification (specify -1 for infinite).</param> /// <param name="opacity">The opacity of the background (0..1).</param> /// <param name="glowColor">The glow color of the message rectangle.</param> /// <param name="backColor">The background color of the message rectangle.</param> /// <param name="foreColor">The text color of the message.</param> public static Control Notify(this Form form, string message, int duration, double opacity, Color glowColor, Color backColor, Color foreColor) { var font = new Font(form.Font.FontFamily, form.Font.Size * 1.2f, form.Font.Unit); var proposedSize = new Size(form.Width * 6 / 10, 0); var size = TextRenderer.MeasureText(message, font, proposedSize, TextFormatFlags.WordBreak); var panel = new TransparentPanel(); panel.Size = form.ClientRectangle.Size; panel.Location = new Point(0, 0); panel.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom; panel.Paint += (sender, e) => { var g = e.Graphics; e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb((int)Math.Ceiling(255.0 * opacity), Color.Black)), 0, 0, panel.Width, panel.Height); g.SmoothingMode = Drawing.Drawing2D.SmoothingMode.AntiAlias; var rectangle = new Rectangle(0, 0, size.Width + 20, size.Height + 10); rectangle.Offset(form.Width / 2 - rectangle.Width / 2, form.Height / 2 - rectangle.Height / 2); g.Glow(rectangle, glowColor, 30, 10); g.FillRoundRectangle(new SolidBrush(backColor), rectangle, 5); TextRenderer.DrawText(g, message, font, rectangle, foreColor, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.WordBreak); }; form.Controls.Add(panel); panel.BringToFront(); if (duration > 0) { var timer = new Timer(); timer.Interval = duration; timer.Tick += (sender, e) => { form.Controls.Remove(panel); panel = null; timer.Stop(); }; timer.Start(); } form.Refresh(); return panel; }
public HostForm() { this.transparentPanel = new TransparentPanel(); this.containerPanel = new Panel(); this.propertyGrid = new PropertyGrid(); this.SuspendLayout(); this.propertyGrid.Width = 200; this.propertyGrid.Dock = DockStyle.Right; this.transparentPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.transparentPanel.Name = "transparentPanel"; this.containerPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.containerPanel.Name = "containerPanel"; this.ClientSize = new System.Drawing.Size(450, 210); this.Controls.Add(this.transparentPanel); this.Controls.Add(this.propertyGrid); this.Controls.Add(this.containerPanel); this.Name = "HostForm"; this.Text = "Host"; this.Load += this.HostForm_Load; this.transparentPanel.MouseClick += this.transparentPanel_MouseClick; this.transparentPanel.Paint += this.transparentPanel_Paint; this.ResumeLayout(false); }
public EIBCalenderBase() { monthCalender = new MonthCalendar(); monthCalender.Size = new Size(width, height); //dateTimePicker.CalendarForeColor = Color.White; monthCalender.Dock = DockStyle.Fill; this.Size = new Size(width, height); this._Width = width; this.Controls.Add(monthCalender); tpanel = new TransparentPanel(); tpanel.Location = new Point(0, 0); tpanel.Size = new Size(width, height); tpanel.Dock = DockStyle.Fill; this.Controls.Add(tpanel); tpanel.BringToFront(); tpanel.MouseClick += new MouseEventHandler(tpanel_MouseClick); tpanel.MouseDown += new MouseEventHandler(tpanel_MouseDown); tpanel.MouseMove += new MouseEventHandler(tpanel_MouseMove); tpanel.MouseUp += new MouseEventHandler(tpanel_MouseUp); this.Resize += new System.EventHandler(EIBDatePickerBase_Resize); if (string.IsNullOrEmpty(this.Name)) { this.Name = "calender" + counter; } if (string.IsNullOrEmpty(this.ControlName)) { this.ControlName = this.Name; } this.Margin = new Padding(0, 0, 0, 0); this.Font = SystemFonts.DefaultFont; this.Layout += new LayoutEventHandler(Control_Layout); this.SizeChanged += new System.EventHandler(Control_SizeChanged); }
public MerchantUserControl(TableLayoutPanel gamePanel) { InitializeComponent(); this.gamePanel = gamePanel; this.BackColor = Color.Black; structure = new TableLayoutPanel(); structure.RowStyles.Clear(); structure.RowStyles.Add(new RowStyle(SizeType.Percent, 10.0f)); // Title structure.RowStyles.Add(new RowStyle(SizeType.Percent, 80.0f)); structure.RowStyles.Add(new RowStyle(SizeType.Percent, 5.0f)); // Help structure.RowStyles.Add(new RowStyle(SizeType.Percent, 5.0f)); // Merchant notifier lblTitle = this.DockFillLabel("lblTitle", Color.Red); lblTitle.Margin = new Padding(PaddingValue); lblTitle.TextAlign = ContentAlignment.MiddleCenter; descriptionList = new DescriptionList<Item>[2]; for (int i = 0; i < descriptionList.Length; i++) { descriptionList[i] = new DescriptionList<Item>(); descriptionList[i].KeyUp += OnKeyUp; descriptionList[i].Dock = DockStyle.Fill; var locI = i; descriptionList[i].Stringify = (item) => String.Format("[{0}] {1}", descriptionList[locI].Items.IndexOf(item), item.Name); descriptionList[i].Title = i == 0 ? "Your backpack" : "Merchant's warehouse"; descriptionList[i].HelpString = "W: Previous - S: Next - A: Previous Page - D: Next Page"; } var descriptionListPanel = new TableLayoutPanel(); descriptionListPanel.ColumnStyles.Clear(); descriptionListPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50.0f)); descriptionListPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50.0f)); descriptionListPanel.Margin = new Padding(PaddingValue); descriptionListPanel.Dock = DockStyle.Fill; lblHelp = this.DockFillLabel("lblHelp", Color.Yellow, new Font(FontFamily.GenericMonospace, charHelpSize)); lblHelp.Margin = new Padding(PaddingValue); lblHelp.TextAlign = ContentAlignment.MiddleCenter; singleLogMerchant = new SingleMessageLogUserControl(); singleLogMerchant.Dock = DockStyle.Fill; descriptionListPanel.Controls.Add(descriptionList[0], 0, 0); descriptionListPanel.Controls.Add(descriptionList[1], 1, 0); transparentPanel = new TransparentPanel(); transparentPanel.BackColor = Color.Transparent; //transparentPanel.Transparency = 128; transparentPanel.Paint += TransparentPanel_Paint; ; singleLogMerchant.KeyUp += OnKeyUp; structure.Controls.Add(lblTitle, 0, 0); structure.Controls.Add(descriptionListPanel, 0, 1); structure.Controls.Add(lblHelp, 0, 2); structure.Controls.Add(singleLogMerchant, 0, 3); this.Controls.Add(structure); this.Controls.Add(transparentPanel); HelpString = helpStrings[SelectedListIndex]; this.SelectedIndexChanged += (sender, e) => { HelpString = helpStrings[((IndexChangedEventArgs)e).Index]; }; initialWidth = Width; initialHeight = Height; initialTitleFontSize = lblTitle.Font.Size; initialHelpFontSize = lblHelp.Font.Size; structure.Parent.Resize += (sender, e) => Controll_FillParent(sender, e, structure); transparentPanel.Parent.Resize += (sender, e) => Controll_FillParent(sender, e, transparentPanel); transparentPanel.BringToFront(); }
/* * Handlers for external events */ #region external_events private void OnDomainsReceived(DomainListModel model) { if (!domainsRequested) { return; } while (!this.IsHandleCreated) { ; } if (this.InvokeRequired) { this.Invoke((DomainsController.ExternalEventHandler) OnDomainsReceived, model); return; } domainsRequested = false; domainList.Location = new Point(429, 67); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DomainsView)); List <DomainData> domains = model.AllDomains; domainList.Size = new Size(136, 2 + (22 - 1) * domains.Count); for (int i = 0; i < domains.Count; ++i) { // main container for domain Panel container = new Panel(); container.Location = new Point(-1, -1 + 21 * i); container.Size = new Size(136, 22); container.BorderStyle = BorderStyle.FixedSingle; container.Visible = true; domainList.Controls.Add(container); // cover TransparentPanel cover = new TransparentPanel(); cover.Location = new Point(0, 0); cover.Size = container.Size; cover.MouseEnter += new EventHandler(cover_MouseEnter); cover.MouseLeave += new EventHandler(cover_MouseLeave); cover.Click += new EventHandler(cover_Click); container.Controls.Add(cover); // image box PictureBox img = new PictureBox(); img.Image = ((Image)(resources.GetObject("news.Image"))); img.Location = new Point(2, 1); img.Margin = new System.Windows.Forms.Padding(2); img.Size = new Size(18, 20); img.SizeMode = PictureBoxSizeMode.StretchImage; img.TabIndex = 7; img.TabStop = false; container.Controls.Add(img); // domain title Label title = new Label(); title.AutoSize = true; title.Font = new Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); title.Location = new Point(24, 2); title.Margin = new Padding(2, 0, 2, 0); title.Size = new Size(74, 17); title.TabIndex = 6; title.Text = domains[i].Name; container.Controls.Add(title); } changeState(); }
void cover_MouseEnter(object sender, EventArgs e) { TransparentPanel s = (TransparentPanel)sender; s.Parent.BackColor = SELECT_COLOR; }
void cover_MouseLeave(object sender, EventArgs e) { TransparentPanel s = (TransparentPanel)sender; s.Parent.BackColor = Color.White; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.ToolStripSeparator toolStripMenuItem_; this.deleteMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.preferencesMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenu_ = new System.Windows.Forms.ContextMenuStrip(this.components); this.archiveMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.boldMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.italicMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.underlineMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.strikethroughMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.saveFileDialog_ = new System.Windows.Forms.SaveFileDialog(); this.rollUpLabel_ = new Stickies.Notes.TransparentLabel(); this.textBoxPaddingPanel_ = new Stickies.Notes.TransparentPanel(); this.textBox_ = new Stickies.Notes.NoteTextBox(); toolStripMenuItem_ = new System.Windows.Forms.ToolStripSeparator(); this.contextMenu_.SuspendLayout(); this.textBoxPaddingPanel_.SuspendLayout(); this.SuspendLayout(); // // toolStripMenuItem_ // toolStripMenuItem_.Name = "toolStripMenuItem_"; toolStripMenuItem_.Size = new System.Drawing.Size(185, 6); // // deleteMenuItem_ // this.deleteMenuItem_.Name = "deleteMenuItem_"; this.deleteMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D))); this.deleteMenuItem_.Size = new System.Drawing.Size(188, 22); this.deleteMenuItem_.Text = "&Delete"; this.deleteMenuItem_.Click += new System.EventHandler(this.deleteMenuItem__Click); // // preferencesMenuItem_ // this.preferencesMenuItem.Name = "preferencesMenuItem_"; this.preferencesMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); this.preferencesMenuItem.Size = new System.Drawing.Size(188, 22); this.preferencesMenuItem.Text = "&Preferences"; this.preferencesMenuItem.Click += new System.EventHandler(this.preferencesMenuItem__Click); // // contextMenu_ // this.contextMenu_.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.preferencesMenuItem, this.deleteMenuItem_, this.archiveMenuItem_, toolStripMenuItem_, this.boldMenuItem_, this.italicMenuItem_, this.underlineMenuItem_, this.strikethroughMenuItem_}); this.contextMenu_.Name = "contextMenu_"; this.contextMenu_.Size = new System.Drawing.Size(189, 164); // // archiveMenuItem_ // this.archiveMenuItem_.Name = "archiveMenuItem_"; this.archiveMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this.archiveMenuItem_.Size = new System.Drawing.Size(188, 22); this.archiveMenuItem_.Text = "&Archive"; this.archiveMenuItem_.Click += new System.EventHandler(this.archiveMenuItem__Click); // // boldMenuItem_ // this.boldMenuItem_.Name = "boldMenuItem_"; this.boldMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B))); this.boldMenuItem_.Size = new System.Drawing.Size(188, 22); this.boldMenuItem_.Text = "&Bold"; this.boldMenuItem_.Click += new System.EventHandler(this.boldMenuItem__Click); // // italicMenuItem_ // this.italicMenuItem_.Name = "italicMenuItem_"; this.italicMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I))); this.italicMenuItem_.Size = new System.Drawing.Size(188, 22); this.italicMenuItem_.Text = "&Italic"; this.italicMenuItem_.Click += new System.EventHandler(this.italicMenuItem__Click); // // underlineMenuItem_ // this.underlineMenuItem_.Name = "underlineMenuItem_"; this.underlineMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.U))); this.underlineMenuItem_.Size = new System.Drawing.Size(188, 22); this.underlineMenuItem_.Text = "&Underline"; this.underlineMenuItem_.Click += new System.EventHandler(this.underlineMenuItem__Click); // // strikethroughMenuItem_ // this.strikethroughMenuItem_.Name = "strikethroughMenuItem_"; this.strikethroughMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E))); this.strikethroughMenuItem_.Size = new System.Drawing.Size(188, 22); this.strikethroughMenuItem_.Text = "&Strikethrough"; this.strikethroughMenuItem_.Click += new System.EventHandler(this.strikethroughMenuItem__Click); // // rollUpLabel_ // this.rollUpLabel_.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) (0))); this.rollUpLabel_.Location = new System.Drawing.Point(0, 0); this.rollUpLabel_.Name = "rollUpLabel_"; this.rollUpLabel_.Size = new System.Drawing.Size(153, 12); this.rollUpLabel_.TabIndex = 8; this.rollUpLabel_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.rollUpLabel_.Visible = false; // // textBoxPaddingPanel_ // this.textBoxPaddingPanel_.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (192)))), ((int) (((byte) (255)))), ((int) (((byte) (192))))); this.textBoxPaddingPanel_.Controls.Add(this.textBox_); this.textBoxPaddingPanel_.Dock = System.Windows.Forms.DockStyle.Fill; this.textBoxPaddingPanel_.Location = new System.Drawing.Point(1, 14); this.textBoxPaddingPanel_.Name = "textBoxPaddingPanel_"; this.textBoxPaddingPanel_.Padding = new System.Windows.Forms.Padding(3); this.textBoxPaddingPanel_.Size = new System.Drawing.Size(158, 135); this.textBoxPaddingPanel_.TabIndex = 9; // // textBox_ // this.textBox_.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (255)))), ((int) (((byte) (255)))), ((int) (((byte) (192))))); this.textBox_.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox_.ContextMenuStrip = this.contextMenu_; this.textBox_.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox_.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) (0))); this.textBox_.Location = new System.Drawing.Point(3, 3); this.textBox_.Name = "textBox_"; this.textBox_.Size = new System.Drawing.Size(152, 129); this.textBox_.TabIndex = 8; this.textBox_.Text = "This is a test and it is good for some reason multiline is nice"; this.textBox_.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.textBox__LinkClicked); this.textBox_.SelectionChanged += new System.EventHandler(this.textBox__SelectionChanged); this.textBox_.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox__KeyDown); this.textBox_.TextChanged += new System.EventHandler(this.MakeDirty); // // NoteForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (255)))), ((int) (((byte) (255)))), ((int) (((byte) (128))))); this.ClientSize = new System.Drawing.Size(160, 150); this.ContextMenuStrip = this.contextMenu_; this.Controls.Add(this.textBoxPaddingPanel_); this.Controls.Add(this.rollUpLabel_); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "NoteForm"; this.Padding = new System.Windows.Forms.Padding(1, 14, 1, 1); this.ShowInTaskbar = false; this.Deactivate += new System.EventHandler(this.NoteForm_Deactivate); this.Resize += new System.EventHandler(this.MakeDirty); this.Move += new System.EventHandler(this.MakeDirty); this.BackColorChanged += new System.EventHandler(this.MakeDirty); this.Load += new System.EventHandler(this.NoteForm_Load); this.contextMenu_.ResumeLayout(false); this.textBoxPaddingPanel_.ResumeLayout(false); this.ResumeLayout(false); }
public static void TPCreator(ref TransparentPanel panel, Point pt, Point size) { TPCreator(ref panel, pt.X, pt.Y, size.X, size.Y); }
private void TransparentPanelCreation() { transparentPanel = new TransparentPanel(); this.Controls.Add(transparentPanel); //transparentPanel.Transparency = 100; transparentPanel.Paint += TransparentPanel_Paint; }