Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help on this matter, i am trying to refresh all the content on the click of button, how can i do it, Please help.
Posted
Updated 23-Jan-13 18:34pm
v3
Comments
Sergey Alexandrovich Kryukov 24-Jan-13 0:37am    
Why? Normally you don't need to refresh anything...
Or, do you mean by "Refresh" something specific? What? And what's the problem?
—SA
XshivDeveloper 24-Jan-13 1:16am    
actually i am playing a .swf file in form using shockwave flash object and i have placed three buttons namely PLAY, PAUSE, and STOP and I want to stop the video on the Click of STOP and then, when i Click the PLAY button the video should be play from start.
Sergey Alexandrovich Kryukov 24-Jan-13 1:56am    
And where is the refresh..?
—SA
XshivDeveloper 24-Jan-13 2:01am    
i want to call refresh on STOP button, so the form will start from start position, i want a functionality like to do something like this, as i have posted in previos comment is any other way to doing this? please help
Shanmugam Rathakrishnan 24-Jan-13 1:10am    
Normally You don't need it. but, you can do this by reloading the Form_load of the form...

1 solution

From my Knowledge, we can close the current Form and open it again by single button click or we can change the Particular part with the single button click.. the diff. is the way what we think...
refer the code below...

C#
public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            GetCurrentTime();
        }

        void GetCurrentTime()
        {
            // Type your Form_Load Code Here... 
            label1.Text = System.DateTime.Now.ToString();

        }

        private void button1_Click(object sender, EventArgs e)
        {
            GetCurrentTime();

            // Or u can done by this way...

            //this.Hide();
            //Form1 cf = new Form1();            
            //cf.Show();
        }
    }
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900