Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
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 23-Jan-13 19:33pm
Edited 23-Jan-13 19:34pm
v3
Comments
Sergey Alexandrovich Kryukov at 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 at 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 at 24-Jan-13 1:56am
   
And where is the refresh..?
—SA
XshivDeveloper at 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
arshanmugam at 24-Jan-13 1:10am
   
Normally You don't need it. but, you can do this by reloading the Form_load of the form...
XshivDeveloper at 24-Jan-13 1:18am
   
i want to reload my form on a specific button's click. is it possible??
arshanmugam at 24-Jan-13 5:52am
   
refer my solution...
XshivDeveloper at 25-Jan-13 0:49am
   
thanks buddy, actually i am new to this :)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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...
 
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();
        }
    }
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 7,205
1 DamithSL 5,114
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,747
4 Kornfeld Eliyahu Peter 4,474


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100