No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
In my program, there is a button you click that brings up a new form. This form runs a process. On the form (second form) closing event, I have [CODE]e.Cancel = true; Hide();[/CODE] So now the form that runs the process is hidden. Now, the way i want it to … |
|
Basically what i'm trying to do is delete an old textfile in place of a new one with the different text that a person types in. this is basically the code: [CODE] string Go = "go to"; System.IO.File.Delete("C:/text.txt"); StreamWriter realm = new StreamWriter("C:/text.txt"); realm.WriteLine(Go); realm.Write(comboBox1.Text); realm.Close(); MessageBox.Show("Done!", "Finished");[/CODE] So, when … |
|
I was wondering if there was a way to play music from within the program. For example. When they click the button, the music starts playing just as a background process without opening an other music program. Is this possible? Thanks |
|
Hello, everyone. I'm making a program that will get the install directory for the game world of warcraft. I think it has something to do with the registry, but i'm not sure how to use it. Its located at HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft . How could I turn that into … |
|
I have a php script that is interacting with the database. It gets an array of the Characters that the user's account has. I get their account number using [CODE] $GetAccNum = "SELECT acct FROM accounts WHERE login = '$user'"; $AccNumResult = mysql_query($GetAccNum); while ($AccNumRow = mysql_fetch_array($AccNumResult, MYSQL_NUM)) { $AccNum … |
|
I'm trying to make a program that can hide a process that is running, and then restore it for you. I can successfully Hide the window using [CODE] private const int SW_HIDE = 0; private const int SW_RESTORE = 9; [DllImport("User32")] private static extern int ShowWindow(int hwnd, int nCmdShow); private … |
|
I'm making a program that divides by 1000. It works fine until it divides by a number higher than itself. For example [CODE] double asdf = (1000 / 3000); Math.Round(asdf); txtSpeed.Text = asdf.ToString();[/CODE] When it divides by a number higher than 1000 it just gives me 0. Anyone know what's … |
|
I have a program that is going to read an IP from a certain file. The IP is already written within in the file. Its written as [CODE]Address = "127.0.0.1:8129"[/CODE] The thing is, that I want to be able to read between the quotation marks and the colon and just … |
|
Re:
We been asked to develop GUI for mobile pc 2003. Just interface, which is no problem. Part of my interface are some ComboBoxes. I found the way to add elements to them, but strangely I can't figure out how to force combo box to display selected element in the box. … |
|
I have a program that reads an sql file and then executes it into the mysql database. The problem is that when a file larger than 1 mb is executed, an error comes up saying the file is too large. Is there anyway that i can read, say 200 lines … |
|
I'm trying to send an email from my contact form using gmail, but i get a runtime error when try to send it. Heres the code: [CODE] MailMessage email = new MailMessage(); email.From = new MailAddress(from); email.To.Add(new MailAddress(to)); email.Subject = subject; email.Body = body; email.IsBodyHtml = false; System.Net.NetworkCredential auth = … |
|
I want to make a program that will check to see if a process is running. And if it is not running, the program should start it back up. Basically i made a new process. This is what is executed when the button is clicked. [CODE]System.Diagnostics.Process proc = new System.Diagnostics.Process(); … |
|
Alright, my situation is as stated: After a create a asp webpage, (build it) i upload it to my ftp to get it online. But when I try to get to the url, it just displays the code as if it were a text file. When i press F5 and … |
|
Is there a simple way to send an email in C# without any extra DLLs? Any help on this would be appreciated. Thanks SiPex |
|
Okay what i want to is make a program that when you input text into the textbox and click submit it inputs that same text into a textbox on the website. For example i want the text from my program to put the text into my web proxy so that … |
|
This is my first post here, so i hope i can get some help, i've been searching for help on this for a while. I'd imaging that this isnt a very hard thing to do but, i'm a bit new to C# programming, and thought that maybe someone here could … |