46 Posted Topics

Member Avatar for Usmaan

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 …

Member Avatar for Geekitygeek
0
194
Member Avatar for CloneXpert

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!

0
63
Member Avatar for punnoosepj

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

Member Avatar for CloneXpert
0
160
Member Avatar for luiso

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, …

Member Avatar for CloneXpert
0
4K
Member Avatar for DaveTran
Member Avatar for Jazerix

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 …

Member Avatar for Jazerix
0
147
Member Avatar for iinf

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 …

Member Avatar for iinf
0
765
Member Avatar for kendaop
Member Avatar for kendaop
0
125
Member Avatar for mysticstylez

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 ( …

Member Avatar for CloneXpert
0
90
Member Avatar for drake10k

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

Member Avatar for farooqaaa
0
138
Member Avatar for ITStrawberry

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 …

Member Avatar for Geekitygeek
0
105
Member Avatar for avi_d59

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 :)

Member Avatar for Geekitygeek
0
114
Member Avatar for becky007

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 :)

Member Avatar for becky007
0
86
Member Avatar for ddanbe

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 …

Member Avatar for CloneXpert
0
137
Member Avatar for Suzie999

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

Member Avatar for CloneXpert
0
155
Member Avatar for CloneXpert

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 …

Member Avatar for Momerath
0
150