Simple C# Codes
All tutorials created in C# to be posted in here.
6 posts
Page 1 of 1
here some C# codes for begginers
//How To Open Second Form (Form2)
Minimize =
if u have question(s) PM me
//How To Open Second Form (Form2)
Code: Select all
//Minimize / Maximize Formnew Form2().Show();
Minimize =
Code: Select all
Maximize = this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
Code: Select all
//Copy a File to Selected Path On SaveFileDialog(dialog) from C:\
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
Code: Select all
//Delete A File
File.Copy("C:\\Testt.avi", dialog.FileName);
Code: Select all
//Open a Website
File.Delete("C:\\Something.exe");
Code: Select all
Here some simple commands cooll; System.Diagnostics.Process.Start("http://www.codenstuff.com");
if u have question(s) PM me
and if i do : "Using system.diagnostics;" on top , would that allow me to do "Process.start("google")" i don't know how to import in C# anyways LOL ?
NecroPhis wrote:no it must be Process.Start("www.google.com")i know im just asking about importing classes...
but can u make a big list with such a things those will be very useful to me cooll;
Yes,
Add 'using system.diagnostics;' and just use Process.Start("google.com")
but instead I made a void very very simple
just add
Add 'using system.diagnostics;' and just use Process.Start("google.com")
but instead I made a void very very simple
Code: Select all
How to use?static void OpenWebsite(string url)
{
process.Start("http://" + url);
}
just add
Code: Select all
dont include http://!OpenWebsite("google.com");
Bound and boom tech,
The Future Of Coding
The Future Of Coding
6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023