46 Posted Topics
Re: Hi there, well you can make this for instance: you first enter 1, a will get the value 1, then you hit +, then a number again: 3 -> b will get 3, you hit plus again and what happens? exactly, the result will get into a again :D and … | |
Hi, I'm writing in the hope that somebody is familiour with the [URL="http://naudio.codeplex.com/"]NAudio library [/URL], and can tell me how to change instrument on a channel. I kept trying like this, but didn't work out... [CODE]midiout.Send(new PatchChangeEvent(0,1,30).GetAsShortMessage()); midiout.Send(new NoteOnEvent(0, 1, 0, 127, 100).GetAsShortMessage()); [/CODE] Thanks! | |
Re: Hi, Please read first some tutorials on how to manipulate registry keys in C# for example [URL="http://www.csharphelp.com/2007/01/registry-ins-and-outs-using-c/"]this[/URL]. Try to integrate it in your code, and make it work. If you have specific problems doing this, please paste a code snippet where the problem occurs. Thanks :) Best regards | |
Re: Hi, use this as a template, this shouldn't work yet because I couldn't test it with a printer, but you have the threadding part: [CODE]delegate string GoPrint(); Process proc = new Process(); private void button1_Click(object sender, EventArgs e) { GoPrint print = new GoPrint(Print); AsyncCallback callback = new AsyncCallback(PrintCallback); print.BeginInvoke(callback, … | |
Re: x*width*height + y*height + z | |
Re: Hi there, Ok, I suggest you to put the list into a ListBox, as it's much readable in this case, if you insist to the ComboBox, I can tell you that version too. First of all you can add the Diagnostics namespace at the first lines: [CODE]using System.Diagnostics;[/CODE] This is … | |
Re: Hi, You need to save them seperately, because when you merge them then you get the colors back. If you use the same value for all three components (rgb) then it willl be grayscale. So if you saved the components separately, you can use later the [CODE]Color.FromArgb(alpha,red,green,blue)[/CODE] and you'll get … | |
Re: Hey, Actually it's absolutely normal, you can use multiple ref. :) | |
Re: Hi, I would use something like this, but I'm sure there are much better ways doing it. [CODE]string[] names = new string[] { "a", "b", "c", "d", "e", "f", "g", "h", "i","j", "k" }; int element = 0; List<ListBox> list = new List<ListBox>(); list.Add(listBox1); list.Add(listBox2); list.Add(listBox3); list.Add(listBox4); list.Add(listBox5); while ( … | |
Re: Hi there, Look for the "FormBorderStyle" property of your form and set it to None. I think you want to get this effect :) Hope it helped Best regards, Tamas | |
Re: Hi, One way to do that is to pass the value as a parameter when you create the "other form": [CODE] //This is where you create the "Other form" OtherForm otherForm = new OtherForm(treeview.selectednode.text); otherForm.Show(); //This is in the "Other form" public class OtherForm : Form { string value; public … | |
Re: Hi there, I suggest you to read first [URL="http://msdn.microsoft.com/en-us/library/aa288467(VS.71).aspx"]some tutorials[/URL] and try to understand how it works. If you read through and you don't understand specific parts or have questions, post it here and I'm sure we can help you out :) | |
Re: Hi, [url]http://msdn.microsoft.com/en-us/library/system.io.file.opentext.aspx[/url] Look what MSDN says: the OpenText method [B]Opens an existing UTF-8 encoded text file for reading.[/B] If you give a directory, it cannot open it as a text file. Hope it helped :) | |
Re: Hi, I'm so unskilled compared to you and I really shouldn't know things better than you :D but I think I know why, tell me please if I'm wrong! [CODE]TwoDShape[] shapes = new TwoDShape[4];[/CODE] this will create the array only, but it will not instantiate the members in it, they'll … | |
Re: Hi, please check this link, it talks about exactly what you need to know :) [url]http://msdn.microsoft.com/en-us/library/ms171728.aspx[/url] if it doesn't help you, please paste your code snippet and we'll figure out what's wrong. Hope it helped | |
Hi, I have a constantly rotating image and i want to get the pixel at a specific point (where i click). The problem is that after the rotation the image won't update the bitmap with the new position, so the pixels will remain exactly the same whether the image is … |