Link to home
Start Free TrialLog in
Avatar of Stafford Martin
Stafford MartinFlag for United States of America

asked on

Maximizing/Minimizing From TaskBar

When my browser  - for example - is minimized, an icon shows in the taskbar indicating that the program is active.  If I click on the icon, the browser opens up.  If it is open and I click on the icon, it minimizes - and alternately.  Many programs behave that way, but the programs I write do not, so I know that the behavior has to be programmed.  It is not a feature Windows 10 provides without programming effort.

I would like to know how to program this behavior in C#.

Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Window Forms/wpf/console?
You will need to set the FormBorderStyle property. Check out this link...

https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.formborderstyle?view=net-5.0

Good Luck!
Avatar of Stafford Martin

ASKER

The solution doesn't work at all. The form header appears and I don't want that.  Additionally, it doesn't exhibit the behavior I described.

If my question is ambiguous, I would welcome some specific questions so that I can clarify.  I don't think the response addressed my question.  I don't want to be able to change my form size.  I want it to be displayed or not displayed (alternately) as I click on the program (form?) icon in the taskbar.

Something in your form properties is stopping this action Set MaximizeBox and MinimizeBox form properties to TRUE

https://drive.google.com/file/d/1IobMvTF8Sl4hbqcq87pW4Juo2nYS_HIF/view?usp=sharing
I am really sorry I am being so unclear.  I can minimize and maximize my forms with no problem.  My problem is that I know how to detect that the icon on the taskbar has been clicked.  I want to be able to detect that event so that I can minimize/maximize my form in response.   If this helps, don't be too angry that I did not say this before.  I have been thinking about the problem as well since I posted it.
you don't have to call an event a standard windows forms app does this automatically when you click on the icon on the taskbar
Ok. We are getting close. It is not automatic.  It is just very common. It has to be programmed.  Some of my programs will display if they are minimized when I click on the icon in the taskbar.  Some don't respond at all and none of them will minimize when I click on the taskbar icon.
Do you have a sample of the form settings?  Would be easier to help if we could replicate/test.
I have a wide variety of forms. None of my programs have the desired behavior.  This is a question that has been on my mind for years.   That is why I begin with it.

Here is the  .Designer.cs file for one of my forms.   If this inconvenient, and you can give me an easy way to export my form settings, I will send a more compact version.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
using System.Text.RegularExpressions;
using System.Threading;
using System.Diagnostics;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using System.Drawing;
using System.Drawing.Printing;
using System.Windows.Forms;
using System.IO;


using System.Xml;
using System.Net.Mail;
using System.Net.Mime;


using System.Windows.Media;
using Utilities;


namespace Musik {
    partial class MainForm {
        /// <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.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.trackTracker = new System.Windows.Forms.Timer(this.components);
            this.currentPlaylist = new System.Windows.Forms.Label();
            this.ProgressLabel = new System.Windows.Forms.Label();
            this.LengthLabel = new System.Windows.Forms.Label();
            this.VolumeLabel = new System.Windows.Forms.Label();
            this.TrackNumberLabel = new System.Windows.Forms.Label();
            this.LoopingLabel = new System.Windows.Forms.Label();
            this.CancelSelectionButton = new Utilities.MediaPlayerButton();
            this.GoButton = new Utilities.MediaPlayerButton();
            this.GoTo_StartOfPlay = new System.Windows.Forms.TextBox();
            this.GoTo_TrackNumber = new Utilities.PositiveInteger();
            this.SelectionTrackLabel = new System.Windows.Forms.Label();
            this.GotoPositonLabel = new System.Windows.Forms.Label();
            this.MediaPanel = new System.Windows.Forms.Panel();
            this.seacchPanel = new System.Windows.Forms.Panel();
            this.selectionLabel = new System.Windows.Forms.Label();
            this.selection = new System.Windows.Forms.TextBox();
            this.searchPanelButton = new System.Windows.Forms.Button();
            this.searchButton = new System.Windows.Forms.Button();
            this.ExitButton = new System.Windows.Forms.Button();
            this.Title = new System.Windows.Forms.Label();
            this.IncreaseVolumeButton = new System.Windows.Forms.Button();
            this.DecreaseVolumeButton = new System.Windows.Forms.Button();
            this.TurnOffRandomButton = new System.Windows.Forms.Button();
            this.UnLoopButton = new System.Windows.Forms.Button();
            this.SpeakerOffButton = new System.Windows.Forms.Button();
            this.SpeakerOnButton = new System.Windows.Forms.Button();
            this.PlayButton = new System.Windows.Forms.Button();
            this.RestartButton = new Utilities.MediaPlayerButton();
            this.LoopButton = new System.Windows.Forms.Button();
            this.TurnOnRandomizeButton = new System.Windows.Forms.Button();
            this.MoveRightButton = new System.Windows.Forms.Button();
            this.MoveLeftButton = new System.Windows.Forms.Button();
            this.PauseButton = new System.Windows.Forms.Button();
            this.SkipForwardButton = new System.Windows.Forms.Button();
            this.SkipBackButton = new System.Windows.Forms.Button();
            this.MediaPanel.SuspendLayout();
            this.seacchPanel.SuspendLayout();
            this.SuspendLayout();
            //
            // currentPlaylist
            //
            this.currentPlaylist.AutoSize = true;
            this.currentPlaylist.Font = new System.Drawing.Font("Arial", 12.125F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.currentPlaylist.ForeColor = System.Drawing.Color.Blue;
            this.currentPlaylist.Location = new System.Drawing.Point(331, 138);
            this.currentPlaylist.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.currentPlaylist.Name = "currentPlaylist";
            this.currentPlaylist.Size = new System.Drawing.Size(90, 44);
            this.currentPlaylist.TabIndex = 46;
            this.currentPlaylist.Text = ".......";
            //
            // ProgressLabel
            //
            this.ProgressLabel.Font = new System.Drawing.Font("Arial", 20.14286F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ProgressLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.ProgressLabel.Location = new System.Drawing.Point(122, 206);
            this.ProgressLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.ProgressLabel.Name = "ProgressLabel";
            this.ProgressLabel.Size = new System.Drawing.Size(236, 64);
            this.ProgressLabel.TabIndex = 35;
            this.ProgressLabel.Text = "999:99";
            this.ProgressLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // LengthLabel
            //
            this.LengthLabel.Font = new System.Drawing.Font("Arial", 20.14286F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.LengthLabel.Location = new System.Drawing.Point(351, 52);
            this.LengthLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.LengthLabel.Name = "LengthLabel";
            this.LengthLabel.Size = new System.Drawing.Size(321, 65);
            this.LengthLabel.TabIndex = 36;
            this.LengthLabel.Text = "9999:99";
            this.LengthLabel.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
            //
            // VolumeLabel
            //
            this.VolumeLabel.AutoSize = true;
            this.VolumeLabel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.VolumeLabel.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.VolumeLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.VolumeLabel.Location = new System.Drawing.Point(489, 200);
            this.VolumeLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.VolumeLabel.Name = "VolumeLabel";
            this.VolumeLabel.Size = new System.Drawing.Size(195, 63);
            this.VolumeLabel.TabIndex = 37;
            this.VolumeLabel.Text = "0100%";
            this.VolumeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // TrackNumberLabel
            //
            this.TrackNumberLabel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.TrackNumberLabel.Font = new System.Drawing.Font("Arial", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.TrackNumberLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.TrackNumberLabel.Location = new System.Drawing.Point(1192, 153);
            this.TrackNumberLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.TrackNumberLabel.Name = "TrackNumberLabel";
            this.TrackNumberLabel.Size = new System.Drawing.Size(617, 117);
            this.TrackNumberLabel.TabIndex = 41;
            this.TrackNumberLabel.Text = "9999/9999";
            //
            // LoopingLabel
            //
            this.LoopingLabel.AutoSize = true;
            this.LoopingLabel.BackColor = System.Drawing.Color.MediumTurquoise;
            this.LoopingLabel.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.LoopingLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.LoopingLabel.Location = new System.Drawing.Point(1817, 206);
            this.LoopingLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.LoopingLabel.Name = "LoopingLabel";
            this.LoopingLabel.Size = new System.Drawing.Size(281, 75);
            this.LoopingLabel.TabIndex = 44;
            this.LoopingLabel.Text = "Looping";
            this.LoopingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // CancelSelectionButton
            //
            this.CancelSelectionButton.Location = new System.Drawing.Point(0, 0);
            this.CancelSelectionButton.Name = "CancelSelectionButton";
            this.CancelSelectionButton.Size = new System.Drawing.Size(75, 23);
            this.CancelSelectionButton.TabIndex = 0;
            //
            // GoButton
            //
            this.GoButton.Location = new System.Drawing.Point(0, 0);
            this.GoButton.Name = "GoButton";
            this.GoButton.Size = new System.Drawing.Size(75, 23);
            this.GoButton.TabIndex = 0;
            //
            // GoTo_StartOfPlay
            //
            this.GoTo_StartOfPlay.Location = new System.Drawing.Point(0, 0);
            this.GoTo_StartOfPlay.Name = "GoTo_StartOfPlay";
            this.GoTo_StartOfPlay.Size = new System.Drawing.Size(100, 31);
            this.GoTo_StartOfPlay.TabIndex = 0;
            //
            // GoTo_TrackNumber
            //
            this.GoTo_TrackNumber.BackColor = System.Drawing.Color.Cornsilk;
            this.GoTo_TrackNumber.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.GoTo_TrackNumber.Font = new System.Drawing.Font("Lucida Sans Unicode", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.GoTo_TrackNumber.Location = new System.Drawing.Point(0, 0);
            this.GoTo_TrackNumber.Margin = new System.Windows.Forms.Padding(0);
            this.GoTo_TrackNumber.Name = "GoTo_TrackNumber";
            this.GoTo_TrackNumber.PositiveInteger = true;
            this.GoTo_TrackNumber.Size = new System.Drawing.Size(85, 50);
            this.GoTo_TrackNumber.TabIndex = 0;
            this.GoTo_TrackNumber.Text = "0";
            this.GoTo_TrackNumber.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.GoTo_TrackNumber.Value = ((long)(0));
            //
            // SelectionTrackLabel
            //
            this.SelectionTrackLabel.AutoSize = true;
            this.SelectionTrackLabel.BackColor = System.Drawing.Color.PeachPuff;
            this.SelectionTrackLabel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.SelectionTrackLabel.Font = new System.Drawing.Font("Arial Black", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.SelectionTrackLabel.Location = new System.Drawing.Point(4, 12);
            this.SelectionTrackLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.SelectionTrackLabel.Name = "SelectionTrackLabel";
            this.SelectionTrackLabel.Size = new System.Drawing.Size(222, 67);
            this.SelectionTrackLabel.TabIndex = 62;
            this.SelectionTrackLabel.Text = "Track #";
            //
            // GotoPositonLabel
            //
            this.GotoPositonLabel.AutoSize = true;
            this.GotoPositonLabel.BackColor = System.Drawing.Color.PeachPuff;
            this.GotoPositonLabel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.GotoPositonLabel.Font = new System.Drawing.Font("Arial Black", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.GotoPositonLabel.Location = new System.Drawing.Point(206, 12);
            this.GotoPositonLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.GotoPositonLabel.Name = "GotoPositonLabel";
            this.GotoPositonLabel.Size = new System.Drawing.Size(290, 67);
            this.GotoPositonLabel.TabIndex = 60;
            this.GotoPositonLabel.Text = "Mins:Secs";
            //
            // MediaPanel
            //
            this.MediaPanel.BackColor = System.Drawing.Color.PaleTurquoise;
            this.MediaPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.MediaPanel.Controls.Add(this.seacchPanel);
            this.MediaPanel.Controls.Add(this.searchButton);
            this.MediaPanel.Controls.Add(this.ExitButton);
            this.MediaPanel.Controls.Add(this.Title);
            this.MediaPanel.Controls.Add(this.IncreaseVolumeButton);
            this.MediaPanel.Controls.Add(this.DecreaseVolumeButton);
            this.MediaPanel.Controls.Add(this.LoopingLabel);
            this.MediaPanel.Controls.Add(this.TrackNumberLabel);
            this.MediaPanel.Controls.Add(this.VolumeLabel);
            this.MediaPanel.Controls.Add(this.LengthLabel);
            this.MediaPanel.Controls.Add(this.ProgressLabel);
            this.MediaPanel.Controls.Add(this.TurnOffRandomButton);
            this.MediaPanel.Controls.Add(this.UnLoopButton);
            this.MediaPanel.Controls.Add(this.SpeakerOffButton);
            this.MediaPanel.Controls.Add(this.SpeakerOnButton);
            this.MediaPanel.Controls.Add(this.PlayButton);
            this.MediaPanel.Controls.Add(this.RestartButton);
            this.MediaPanel.Controls.Add(this.LoopButton);
            this.MediaPanel.Controls.Add(this.TurnOnRandomizeButton);
            this.MediaPanel.Controls.Add(this.MoveRightButton);
            this.MediaPanel.Controls.Add(this.MoveLeftButton);
            this.MediaPanel.Controls.Add(this.PauseButton);
            this.MediaPanel.Controls.Add(this.SkipForwardButton);
            this.MediaPanel.Controls.Add(this.SkipBackButton);
            this.MediaPanel.Font = new System.Drawing.Font("Arial Black", 14.14286F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MediaPanel.Location = new System.Drawing.Point(42, 13);
            this.MediaPanel.Margin = new System.Windows.Forms.Padding(4);
            this.MediaPanel.Name = "MediaPanel";
            this.MediaPanel.Size = new System.Drawing.Size(3312, 668);
            this.MediaPanel.TabIndex = 0;
            this.MediaPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Musik_MouseDown);
            this.MediaPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Musik_MouseMove);
            //
            // seacchPanel
            //
            this.seacchPanel.Controls.Add(this.selectionLabel);
            this.seacchPanel.Controls.Add(this.selection);
            this.seacchPanel.Controls.Add(this.searchPanelButton);
            this.seacchPanel.Location = new System.Drawing.Point(1201, 311);
            this.seacchPanel.Name = "seacchPanel";
            this.seacchPanel.Size = new System.Drawing.Size(1121, 186);
            this.seacchPanel.TabIndex = 76;
            //
            // selectionLabel
            //
            this.selectionLabel.AutoSize = true;
            this.selectionLabel.Location = new System.Drawing.Point(70, 21);
            this.selectionLabel.Name = "selectionLabel";
            this.selectionLabel.Size = new System.Drawing.Size(605, 54);
            this.selectionLabel.TabIndex = 2;
            this.selectionLabel.Text = "Enter track number or name";
            //
            // selection
            //
            this.selection.Location = new System.Drawing.Point(66, 94);
            this.selection.Name = "selection";
            this.selection.Size = new System.Drawing.Size(670, 61);
            this.selection.TabIndex = 1;
            //
            // searchPanelButton
            //
            this.searchPanelButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("searchPanelButton.BackgroundImage")));
            this.searchPanelButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.searchPanelButton.Location = new System.Drawing.Point(871, 108);
            this.searchPanelButton.Name = "searchPanelButton";
            this.searchPanelButton.Size = new System.Drawing.Size(55, 59);
            this.searchPanelButton.TabIndex = 0;
            this.searchPanelButton.UseVisualStyleBackColor = true;
            //
            // searchButton
            //
            this.searchButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("searchButton.BackgroundImage")));
            this.searchButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.searchButton.FlatAppearance.BorderSize = 0;
            this.searchButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.searchButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.searchButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.searchButton.Location = new System.Drawing.Point(1027, 275);
            this.searchButton.Margin = new System.Windows.Forms.Padding(4);
            this.searchButton.Name = "searchButton";
            this.searchButton.Size = new System.Drawing.Size(50, 59);
            this.searchButton.TabIndex = 75;
            this.searchButton.UseVisualStyleBackColor = true;
            this.searchButton.Click += new System.EventHandler(this.searchButton_Click);
            //
            // ExitButton
            //
            this.ExitButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ExitButton.BackgroundImage")));
            this.ExitButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.ExitButton.FlatAppearance.BorderSize = 0;
            this.ExitButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.ExitButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.ExitButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.ExitButton.Location = new System.Drawing.Point(1144, 335);
            this.ExitButton.Margin = new System.Windows.Forms.Padding(4);
            this.ExitButton.Name = "ExitButton";
            this.ExitButton.Size = new System.Drawing.Size(50, 59);
            this.ExitButton.TabIndex = 74;
            this.ExitButton.UseVisualStyleBackColor = true;
            this.ExitButton.Click += new System.EventHandler(this.ExitButton_Click);
            //
            // Title
            //
            this.Title.BackColor = System.Drawing.Color.MediumTurquoise;
            this.Title.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.Title.Font = new System.Drawing.Font("Arial Black", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Title.ForeColor = System.Drawing.Color.Black;
            this.Title.Location = new System.Drawing.Point(1163, 52);
            this.Title.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.Title.Name = "Title";
            this.Title.Size = new System.Drawing.Size(348, 51);
            this.Title.TabIndex = 73;
            this.Title.Text = "Display Title";
            this.Title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.Title.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Musik_MouseDown);
            this.Title.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Musik_MouseMove);
            //
            // IncreaseVolumeButton
            //
            this.IncreaseVolumeButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.Pluse_Reverse_Black_48;
            this.IncreaseVolumeButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.IncreaseVolumeButton.FlatAppearance.BorderSize = 0;
            this.IncreaseVolumeButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.IncreaseVolumeButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.IncreaseVolumeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.IncreaseVolumeButton.Location = new System.Drawing.Point(874, 331);
            this.IncreaseVolumeButton.Margin = new System.Windows.Forms.Padding(4);
            this.IncreaseVolumeButton.Name = "IncreaseVolumeButton";
            this.IncreaseVolumeButton.Size = new System.Drawing.Size(79, 82);
            this.IncreaseVolumeButton.TabIndex = 72;
            this.IncreaseVolumeButton.UseVisualStyleBackColor = true;
            this.IncreaseVolumeButton.Click += new System.EventHandler(this.IncreaseVolumeButton_Click);
            //
            // DecreaseVolumeButton
            //
            this.DecreaseVolumeButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.Minus_Reverse_Black_48;
            this.DecreaseVolumeButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.DecreaseVolumeButton.FlatAppearance.BorderSize = 0;
            this.DecreaseVolumeButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.DecreaseVolumeButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.DecreaseVolumeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.DecreaseVolumeButton.Location = new System.Drawing.Point(777, 289);
            this.DecreaseVolumeButton.Margin = new System.Windows.Forms.Padding(4);
            this.DecreaseVolumeButton.Name = "DecreaseVolumeButton";
            this.DecreaseVolumeButton.Size = new System.Drawing.Size(67, 59);
            this.DecreaseVolumeButton.TabIndex = 50;
            this.DecreaseVolumeButton.UseVisualStyleBackColor = true;
            this.DecreaseVolumeButton.Click += new System.EventHandler(this.DecreaseVolumeButton_Click);
            //
            // TurnOffRandomButton
            //
            this.TurnOffRandomButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.Unrandomize32;
            this.TurnOffRandomButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.TurnOffRandomButton.FlatAppearance.BorderSize = 0;
            this.TurnOffRandomButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.TurnOffRandomButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.TurnOffRandomButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.TurnOffRandomButton.Location = new System.Drawing.Point(652, 401);
            this.TurnOffRandomButton.Margin = new System.Windows.Forms.Padding(4);
            this.TurnOffRandomButton.Name = "TurnOffRandomButton";
            this.TurnOffRandomButton.Size = new System.Drawing.Size(50, 59);
            this.TurnOffRandomButton.TabIndex = 19;
            this.TurnOffRandomButton.UseVisualStyleBackColor = true;
            this.TurnOffRandomButton.Click += new System.EventHandler(this.TurnOffRandomizeButton_Click);
            //
            // UnLoopButton
            //
            this.UnLoopButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.Unloop32;
            this.UnLoopButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.UnLoopButton.FlatAppearance.BorderSize = 0;
            this.UnLoopButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.UnLoopButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.UnLoopButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.UnLoopButton.Location = new System.Drawing.Point(800, 406);
            this.UnLoopButton.Margin = new System.Windows.Forms.Padding(4);
            this.UnLoopButton.Name = "UnLoopButton";
            this.UnLoopButton.Size = new System.Drawing.Size(50, 59);
            this.UnLoopButton.TabIndex = 18;
            this.UnLoopButton.UseVisualStyleBackColor = true;
            this.UnLoopButton.Click += new System.EventHandler(this.UnLoopButton_Click);
            //
            // SpeakerOffButton
            //
            this.SpeakerOffButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.media_speaker_off241;
            this.SpeakerOffButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.SpeakerOffButton.FlatAppearance.BorderSize = 0;
            this.SpeakerOffButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.SpeakerOffButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.SpeakerOffButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.SpeakerOffButton.Location = new System.Drawing.Point(218, 289);
            this.SpeakerOffButton.Margin = new System.Windows.Forms.Padding(4);
            this.SpeakerOffButton.Name = "SpeakerOffButton";
            this.SpeakerOffButton.Size = new System.Drawing.Size(96, 79);
            this.SpeakerOffButton.TabIndex = 11;
            this.SpeakerOffButton.UseVisualStyleBackColor = true;
            this.SpeakerOffButton.Click += new System.EventHandler(this.SpeakerOffButton_Click);
            //
            // SpeakerOnButton
            //
            this.SpeakerOnButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.media_speaker_on241;
            this.SpeakerOnButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.SpeakerOnButton.FlatAppearance.BorderSize = 0;
            this.SpeakerOnButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.SpeakerOnButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.SpeakerOnButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.SpeakerOnButton.Location = new System.Drawing.Point(45, 294);
            this.SpeakerOnButton.Margin = new System.Windows.Forms.Padding(4);
            this.SpeakerOnButton.Name = "SpeakerOnButton";
            this.SpeakerOnButton.Size = new System.Drawing.Size(89, 65);
            this.SpeakerOnButton.TabIndex = 10;
            this.SpeakerOnButton.UseVisualStyleBackColor = true;
            this.SpeakerOnButton.Click += new System.EventHandler(this.SpeakerOnButton_Click);
            //
            // PlayButton
            //
            this.PlayButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.media_playback_start32;
            this.PlayButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.PlayButton.FlatAppearance.BorderSize = 0;
            this.PlayButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.PlayButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.PlayButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PlayButton.Location = new System.Drawing.Point(108, 443);
            this.PlayButton.Margin = new System.Windows.Forms.Padding(4);
            this.PlayButton.Name = "PlayButton";
            this.PlayButton.Size = new System.Drawing.Size(78, 67);
            this.PlayButton.TabIndex = 9;
            this.PlayButton.UseVisualStyleBackColor = true;
            this.PlayButton.Click += new System.EventHandler(this.PlayButton_Click);
            //
            // RestartButton
            //
            this.RestartButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.restart_new32;
            this.RestartButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.RestartButton.FlatAppearance.BorderSize = 0;
            this.RestartButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.RestartButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.RestartButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.RestartButton.Location = new System.Drawing.Point(261, 454);
            this.RestartButton.Margin = new System.Windows.Forms.Padding(4);
            this.RestartButton.Name = "RestartButton";
            this.RestartButton.Size = new System.Drawing.Size(50, 59);
            this.RestartButton.TabIndex = 7;
            this.RestartButton.UseVisualStyleBackColor = true;
            this.RestartButton.Click += new System.EventHandler(this.RestartButton_Click);
            //
            // LoopButton
            //
            this.LoopButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.iconfinder_rewind;
            this.LoopButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.LoopButton.FlatAppearance.BorderSize = 0;
            this.LoopButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.LoopButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.LoopButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.LoopButton.Location = new System.Drawing.Point(243, 378);
            this.LoopButton.Margin = new System.Windows.Forms.Padding(4);
            this.LoopButton.Name = "LoopButton";
            this.LoopButton.Size = new System.Drawing.Size(50, 59);
            this.LoopButton.TabIndex = 6;
            this.LoopButton.UseVisualStyleBackColor = true;
            this.LoopButton.Click += new System.EventHandler(this.LoopButton_Click);
            //
            // TurnOnRandomizeButton
            //
            this.TurnOnRandomizeButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.shuffle32;
            this.TurnOnRandomizeButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.TurnOnRandomizeButton.FlatAppearance.BorderSize = 0;
            this.TurnOnRandomizeButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.TurnOnRandomizeButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.TurnOnRandomizeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.TurnOnRandomizeButton.Location = new System.Drawing.Point(490, 378);
            this.TurnOnRandomizeButton.Margin = new System.Windows.Forms.Padding(4);
            this.TurnOnRandomizeButton.Name = "TurnOnRandomizeButton";
            this.TurnOnRandomizeButton.Size = new System.Drawing.Size(50, 59);
            this.TurnOnRandomizeButton.TabIndex = 5;
            this.TurnOnRandomizeButton.UseVisualStyleBackColor = true;
            this.TurnOnRandomizeButton.Click += new System.EventHandler(this.TurnOnRandomizeButton_Click);
            //
            // MoveRightButton
            //
            this.MoveRightButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.media_seek_forward32;
            this.MoveRightButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.MoveRightButton.FlatAppearance.BorderSize = 0;
            this.MoveRightButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.MoveRightButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.MoveRightButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MoveRightButton.Location = new System.Drawing.Point(372, 385);
            this.MoveRightButton.Margin = new System.Windows.Forms.Padding(4);
            this.MoveRightButton.Name = "MoveRightButton";
            this.MoveRightButton.Size = new System.Drawing.Size(50, 59);
            this.MoveRightButton.TabIndex = 4;
            this.MoveRightButton.UseVisualStyleBackColor = true;
            this.MoveRightButton.Click += new System.EventHandler(this.MoveRightButton_Click);
            //
            // MoveLeftButton
            //
            this.MoveLeftButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.media_seek_backward32;
            this.MoveLeftButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.MoveLeftButton.FlatAppearance.BorderSize = 0;
            this.MoveLeftButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.MoveLeftButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.MoveLeftButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.MoveLeftButton.Location = new System.Drawing.Point(25, 438);
            this.MoveLeftButton.Margin = new System.Windows.Forms.Padding(4);
            this.MoveLeftButton.Name = "MoveLeftButton";
            this.MoveLeftButton.Size = new System.Drawing.Size(50, 59);
            this.MoveLeftButton.TabIndex = 3;
            this.MoveLeftButton.UseVisualStyleBackColor = true;
            this.MoveLeftButton.Click += new System.EventHandler(this.MoveLeftButton_Click);
            //
            // PauseButton
            //
            this.PauseButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.pause_icon32;
            this.PauseButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.PauseButton.FlatAppearance.BorderSize = 0;
            this.PauseButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.PauseButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.PauseButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PauseButton.Location = new System.Drawing.Point(116, 373);
            this.PauseButton.Margin = new System.Windows.Forms.Padding(4);
            this.PauseButton.Name = "PauseButton";
            this.PauseButton.Size = new System.Drawing.Size(89, 68);
            this.PauseButton.TabIndex = 2;
            this.PauseButton.UseVisualStyleBackColor = true;
            this.PauseButton.Click += new System.EventHandler(this.PauseButton_Click);
            //
            // SkipForwardButton
            //
            this.SkipForwardButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.media_skip_forward32;
            this.SkipForwardButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.SkipForwardButton.FlatAppearance.BorderSize = 0;
            this.SkipForwardButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.SkipForwardButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.SkipForwardButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.SkipForwardButton.Location = new System.Drawing.Point(386, 434);
            this.SkipForwardButton.Margin = new System.Windows.Forms.Padding(4);
            this.SkipForwardButton.Name = "SkipForwardButton";
            this.SkipForwardButton.Size = new System.Drawing.Size(50, 59);
            this.SkipForwardButton.TabIndex = 1;
            this.SkipForwardButton.UseVisualStyleBackColor = true;
            this.SkipForwardButton.Click += new System.EventHandler(this.SkipForwardButton_Click);
            //
            // SkipBackButton
            //
            this.SkipBackButton.BackgroundImage = global::AlarmPlayer.Properties.Resources.media_skip_backward32;
            this.SkipBackButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.SkipBackButton.FlatAppearance.BorderSize = 0;
            this.SkipBackButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.PapayaWhip;
            this.SkipBackButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.PapayaWhip;
            this.SkipBackButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.SkipBackButton.Location = new System.Drawing.Point(10, 396);
            this.SkipBackButton.Margin = new System.Windows.Forms.Padding(4);
            this.SkipBackButton.Name = "SkipBackButton";
            this.SkipBackButton.Size = new System.Drawing.Size(50, 59);
            this.SkipBackButton.TabIndex = 0;
            this.SkipBackButton.UseVisualStyleBackColor = true;
            this.SkipBackButton.Click += new System.EventHandler(this.SkipBackButton_Click);
            //
            // MainForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 32F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.PaleTurquoise;
            this.ClientSize = new System.Drawing.Size(2549, 561);
            this.Controls.Add(this.MediaPanel);
            this.Font = new System.Drawing.Font("Arial", 10.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Margin = new System.Windows.Forms.Padding(4);
            this.Name = "MainForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Track Player";
            this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Musik_MouseDown);
            this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Musik_MouseMove);
            this.MediaPanel.ResumeLayout(false);
            this.MediaPanel.PerformLayout();
            this.seacchPanel.ResumeLayout(false);
            this.seacchPanel.PerformLayout();
            this.ResumeLayout(false);


        }


        #endregion


        private System.Windows.Forms.Timer trackTracker;
        private System.Windows.Forms.Label currentPlaylist;
        private Button SkipBackButton;
        private Button SkipForwardButton;
        private Button PauseButton;
        private Button MoveLeftButton;
        private Button MoveRightButton;
        private Button TurnOnRandomizeButton;
        private Button LoopButton;
        private MediaPlayerButton RestartButton;
        private Button PlayButton;
        private Button SpeakerOnButton;
        private Button SpeakerOffButton;
        private Button UnLoopButton;
        private Button TurnOffRandomButton;
        private Label ProgressLabel;
        private Label LengthLabel;
        private Label VolumeLabel;
        private Label TrackNumberLabel;
        private Label LoopingLabel;
        private Button DecreaseVolumeButton;
        private MediaPlayerButton CancelSelectionButton;
        private MediaPlayerButton GoButton;
        private TextBox GoTo_StartOfPlay;
        private PositiveInteger GoTo_TrackNumber;
        private Label SelectionTrackLabel;
        private Label GotoPositonLabel;
        private Button IncreaseVolumeButton;
        private Panel MediaPanel;
        private Label Title;
        private Button ExitButton;
        private Button searchButton;
        private Panel seacchPanel;
        private Label selectionLabel;
        private TextBox selection;
        private Button searchPanelButton;
    }
}

Open in new window



ASKER CERTIFIED SOLUTION
Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial