| cod haye carbordi c# | |
|
|
Author | Message |
---|
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: cod haye carbordi c# 2013-06-23, 10:25 | |
| to in topic code haye c# carbordi baraye nimbuzz bishtar estefade mishe ro gharar midim khaheshan az spam khoddari konid code aval seda roye button - Code:
-
using System.Media;
va bad ham vase har button k mikhayd in cod k mituni az masiri k hast seda ro taghir bedid - Code:
-
SoundPlayer player = new SoundPlayer();
string path = "C:\\windows\\media\\Windows Logoff Sound.wav";
player.SoundLocation = path;
player.Play();
Last edited by amin-emperator on 2013-06-23, 11:29; edited 1 time in total | |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:28 | |
| standby pc - Code:
-
// Standby Application.SetSuspendState(PowerState.Suspend, true, true);
| |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:29 | |
| shutdown pc : - Code:
-
// Shutdown System.Diagnostics.Process.Start("ShutDown", "/s");
| |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:30 | |
| minimized kardan soft - Code:
-
Form1.ActiveForm.WindowState = FormWindowState.Minimized;
| |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:31 | |
| close soft - Code:
-
this.Opacity = 1; for (int i = 0; i < 100; i++) { this.Opacity -= 0.01; Application.DoEvents(); timer2.Enabled = true; }
| |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:31 | |
| restart soft - Code:
-
Application.Restart(); | |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:33 | |
| show ip ye button va ye textbox lazem dare hamin - Code:
-
try { System.Net.WebClient myWebClient = new System.Net.WebClient();
System.IO.Stream myStream = myWebClient.OpenRead("http://www.prodigyproductionsllc.com/yourip.php");
System.IO.StreamReader myStreamReader = new System.IO.StreamReader(myStream);
string myIP = myStreamReader.ReadToEnd();
textBox3.Text = myIP; } catch {
} | |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:36 | |
| ijad forum dayeri shekl - Code:
-
private void Form1_Load(object sender, EventArgs e) { this.Height = 350; this.Width = 350; //Creating circle path System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); path.AddEllipse(0, 0, 300, 300); //Creating the region from the circle path this.Region = new Region(path); this.Show(); } | |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:38 | |
| disconnect kardan internet dial up - Code:
-
System.Diagnostics.Process.Start("rasdial", "/disconnect");
| |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 10:49 | |
| inam fek konam be karetun biad farsi kardan from k pish farz ro windows nasb bashe - Code:
-
private void Form1_Load(object sender, EventArgs e)
{
foreach (InputLanguage lng in InputLanguage.InstalledInputLanguages)
{
if (lng.LayoutName.ToLower() == "farsi")
{
InputLanguage.CurrentInputLanguage = lng;
}
}
} | |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-23, 11:26 | |
| pkhash file haye soti va tasviri ba komak winmm.dll - Code:
-
using System.Runtime.InteropServices; - Code:
-
string CommandString; OpenFileDialog file = new OpenFileDialog();
[DllImport("winmm.dll")] private static extern long mciSendString(string lpstrCommand, StringBuilder lpstrReturnString, int uReturnLength, int hwndCallback);
private void button1_Click(object sender, System.EventArgs e) { if (file.ShowDialog() == DialogResult.OK) { CommandString = "open " + "\"" + file.FileName + "\"" + " type MPEGVideo alias MediaFile"; mciSendString(CommandString, null, 0, 0); CommandString = "play MediaFile"; mciSendString(CommandString, null, 0, 0); } } | |
|
| |
amin-emperator Admin
ID : amin-emperator Posts : 106 Points : 202 like : 2 Join date : 2013-06-20 asl : amin 22 kashan
| Subject: Re: cod haye carbordi c# 2013-06-25, 06:40 | |
| ijad about be vasile ye button form 2 ro ijad mikonim bad ba in cod be vesile button baz mikonim - Code:
-
Form2 about = new Form2(); about.ShowDialog(); | |
|
| |
Sponsored content
| Subject: Re: cod haye carbordi c# | |
| |
|
| |
| cod haye carbordi c# | |
|