How to make slider in c#

April 28, 2013


 How to make slider in c#




how to make slider in c#  by waqeeh




how to make slider in c#  by waqeeh



how to make slider in c#  by waqeeh


 (Code inside the button that press before slider come )

how to make slider in c#
how to make slider in c# 

Code
  bool IsOpen = false;
            FormCollection fc = Application.OpenForms;
            foreach (Form f in fc)
            {
                if (f.Name == "Fee Reg")
                {
                    IsOpen = true;
                    f.StartPosition = FormStartPosition.CenterParent;
                    f.Focus();
                    break;
                }
            }

            if (IsOpen == false)
            {
                Fee_Reg waqeeh = new Fee_Reg();
                waqeeh.Show();
            }

        }

        }



Include the library

(Code inside the form that you want to slide)
how to make slider in c#















     

Code

     #region Properties
      //Constants
        const int AW_SLIDE = 0X40000;
        const int AW_HOR_POSITIVE = 0X1;
        const int AW_HOR_NEGATIVE = 0X2;
        const int AW_BLEND = 0X80000;

        [DllImport("user32")]
        static extern bool AnimateWindow(IntPtr hwnd, int time, int flags);
        #endregion

        #region Onload
        protected override void OnLoad(EventArgs e)
        {

            AnimateWindow(this.Handle, 500, AW_SLIDE | AW_HOR_POSITIVE);
        }
        #endregion




I changed the location of button for the learning purpose.

how to make slider in c#















https://www.youtube.com/watch?v=PgTXJwTY3Ko

You Might Also Like

0 comments

Popular Posts

Like us on Facebook

Flickr Images