Auto Shutdown
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Hi, Now my idea is to make an program which automatically wants to shutdown PC to the time which we set into it, I mean add 1 TextBox and 2 Buttons
TextBox1 is using to set time, e.g : type: 8:45:22 AM, Then wants to Shutdown PC at this time
Button1 is using to activate Auto Shutdown
Button2 is using to disable Auto Shutdown
TextBox1 is using to set time, e.g : type: 8:45:22 AM, Then wants to Shutdown PC at this time
Button1 is using to activate Auto Shutdown
Button2 is using to disable Auto Shutdown
Ok, use 4 labels for the time:
Label1 = Hours
Label2 = Minutes
Label3 = Seconds
Label4 = AM or PM
Make a timer with interval 100 milliseconds or whatever and put this on Timer_Tick:
Label1 = Hours
Label2 = Minutes
Label3 = Seconds
Label4 = AM or PM
Make a timer with interval 100 milliseconds or whatever and put this on Timer_Tick:
Code: Select all
In the button1 put:
If Label1.Text = 8 and Label2.Text = 45 and Label3.text = 22 and Label4.Text = AM Then
System.Diagnostics.Process.Start("shutdown", "-s -t 00")
End If
Code: Select all
In the button2 put:
Timer1.Enabled = True
Code: Select all
I think that is the most primitive way for doing that but it is simple to understand.Timer1.Enabled = False
Nery wrote:Ok, use 4 labels for the time:Thanks but you used 4 Labels, But i want to make it with 1 TextBox, Note TextBox is using to set Shutdown time
Label1 = Hours
Label2 = Minutes
Label3 = Seconds
Label4 = AM or PM
Make a timer with interval 100 milliseconds or whatever and put this on Timer_Tick:Code: Select allIn the button1 put:If Label1.Text = 8 and Label2.Text = 45 and Label3.text = 22 and Label4.Text = AM Then System.Diagnostics.Process.Start("shutdown", "-s -t 00") End If
Code: Select allIn the button2 put:Timer1.Enabled = True
Code: Select allI think that is the most primitive way for doing that but it is simple to understand.Timer1.Enabled = False
When set the shutdown time later when press "Activate Shutdown" Button wants to activate auto shutdown which wants to shutdown PC at time which we set into TextBox, e.g: 8:45:22 AM then wants to shutdown PC at that time
Hi Tvs
Try this in the attachment below cooll;
Chris
Try this in the attachment below cooll;
Chris
You do not have the required permissions to view the files attached to this post.
hungryhounduk wrote:Hi Tvs
Try this in the attachment below cooll;
Chris
Thanks a lot!, Exactly this one!

Just give me source-code of this Auto Shutdown! cooll;
- Kindly
- Tvs Praveen wahooo;
hungryhounduk wrote:I'm still waiting for that Tutiorial for those ButtonsWhat you mean tutorial?, I just asked give me SHUTDOWN MANAGER Source-Code
You mean those buttons?, I learned to make those folder and color buttons from this website
http://www.tutorialized.com/tutorials/Photoshop/1
So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.com
So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.comThey Put the Tutorials up so that People can follow them and Create their Own.....As what's the point of putting the Tutorial up in the first place if you cant recreate them yourself :? :roll:
hungryhounduk wrote:Yes, Its hard to create tutorial for that one, Only easiest is to create round 3d gradient buttons, banners e.t.c...So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.comThey Put the Tutorials up so that People can follow them and Create their Own.....As what's the point of putting the Tutorial up in the first place if you cant recreate them yourself :? :roll:
But its got too many layers, So i can`t make tutorial for it
But please give me this Auto Shutdown Source-Code it will helps me a lot!
Later i`ll make tutorial for it if i can!
Note: Our only deal is only for mixer not for this Auto Shutdown source-code
hungryhounduk wrote:i love it how people follow a tutorial and then think as if they created it themselves...So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.comThey Put the Tutorials up so that People can follow them and Create their Own.....As what's the point of putting the Tutorial up in the first place if you cant recreate them yourself :? :roll:
Copyright Information
Copyright © Codenstuff.com 2020 - 2023