Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Hacking FontDialog

, 23 Aug 2008 CPOL
How to hide UI elements of a FontDialog (e.g., Font Size).
FontDialogHack.zip
FontDialogHack
FontDialogHack
bin
Debug
FontDialogHack.exe
FontDialogHack.vshost.exe
Properties
Settings.settings
namespace FontDialogHack
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.btnBest = new System.Windows.Forms.Button();
            this.btnFindWindow = new System.Windows.Forms.Button();
            this.btnActiveWindow = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // btnBest
            // 
            this.btnBest.Location = new System.Drawing.Point(12, 12);
            this.btnBest.Name = "btnBest";
            this.btnBest.Size = new System.Drawing.Size(90, 23);
            this.btnBest.TabIndex = 0;
            this.btnBest.Text = "Best Solution";
            this.btnBest.UseVisualStyleBackColor = true;
            this.btnBest.Click += new System.EventHandler(this.btnBest_Click);
            // 
            // btnFindWindow
            // 
            this.btnFindWindow.Location = new System.Drawing.Point(12, 52);
            this.btnFindWindow.Name = "btnFindWindow";
            this.btnFindWindow.Size = new System.Drawing.Size(90, 23);
            this.btnFindWindow.TabIndex = 1;
            this.btnFindWindow.Text = "FindWindow";
            this.btnFindWindow.UseVisualStyleBackColor = true;
            this.btnFindWindow.Click += new System.EventHandler(this.btnFindWindow_Click);
            // 
            // btnActiveWindow
            // 
            this.btnActiveWindow.Location = new System.Drawing.Point(12, 91);
            this.btnActiveWindow.Name = "btnActiveWindow";
            this.btnActiveWindow.Size = new System.Drawing.Size(90, 23);
            this.btnActiveWindow.TabIndex = 2;
            this.btnActiveWindow.Text = "Active Window";
            this.btnActiveWindow.UseVisualStyleBackColor = true;
            this.btnActiveWindow.Click += new System.EventHandler(this.btnActiveWindow_Click);
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(292, 266);
            this.Controls.Add(this.btnActiveWindow);
            this.Controls.Add(this.btnFindWindow);
            this.Controls.Add(this.btnBest);
            this.Name = "Form1";
            this.Text = "Form1";
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button btnBest;
        private System.Windows.Forms.Button btnFindWindow;
        private System.Windows.Forms.Button btnActiveWindow;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

legcsabi

Hungary Hungary
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 23 Aug 2008
Article Copyright 2008 by legcsabi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid