Search:
Type: Posts; User: ixilom
Search :
Search took 0.01 seconds.
December 25th, 2009, 04:32 PM
Without going way too deep in how controls are repainted in Windows OS I might be able to explain somewhat simplified :)
All controls/windows are only repainted when requested, by either you (the...
December 17th, 2009, 01:41 PM
Meh, C# is rather easy to learn, you'll be advanced by their definition in no time ;)
December 17th, 2009, 06:37 AM
The most simplistic way would be having two .wav samples, one louder than the other :)
This means of course that you need two separate SoundPlayers and decide which one to play.
Or you could load...
December 16th, 2009, 09:29 AM
By regular expressions I think he means the Regex class.
It can be used to parse specific data out of a string, for example the HTML source code for those pages you are interested in.
...
December 16th, 2009, 07:24 AM
Seems a bit strange as I see no namespace called mp3info in the files you pasted.
However, I see in your console application that you never told it to use the ReadMP3 namespace.
Does adding that...
December 16th, 2009, 06:29 AM
Looking quickly at the files you pasted it seems to me that the DLL file it creates doesn't actually expose any kind of outputting functions.
OTOH, it does give you a few classes you can utilize,...
December 16th, 2009, 06:10 AM
Just wanted to clarify WHY you cannot declare variables public in a function.
The reason is simply that variables defined in a function scope "die" when the function has completed its execution.
...
December 16th, 2009, 05:54 AM
Not sure what you mean by "What command prompts I should use".
Are you wondering how to utilize the DLL it created for you?
Not being familiar with ReadMP3.dll myself, I can only guess that it...
December 10th, 2009, 12:22 AM
Spent like, 30 seconds with google and I found this:
http://www.daniweb.com/code/snippet217151.html
Enjoy :)
December 4th, 2009, 05:15 AM
Where are you trying to align your text? I mean, is it a UserControl you built yourself and want to render the text aligned somewhere on your control? Or is it a RichTextBox ?
StringFormat is used...
December 3rd, 2009, 11:32 AM
Ehm, treeViewBonk is just my example, in your code it is probably still called treeView1 ;)
That is what I tried to demonstrate in my previous post. Read it again.
TreeNode tr3 = new...
December 2nd, 2009, 07:53 PM
No need to be all snarky about it.
Given it is a rather trivial thing using PadLeft to make "columns" in a textbox, do you have any reason not to use a GridView ?
December 2nd, 2009, 07:24 PM
I guess you could use the PadLeft and PadRight functions of string.
So in your code you could do something like:
Output.Text += "G " + (curgen + 1).ToString().PadLeft(10) + "\t\t" +...
December 2nd, 2009, 07:18 PM
I'm terrible at Regex as the pattern syntax is like Klingon to me, but I do know that it is in no way bound to only web usage.
A Regex (in C#) is simply a class you can create like any other class...
December 2nd, 2009, 07:12 PM
You ought to give me (us) more code, because from the codesnippet you have given us it is very hard to help you. What I can see in the snippet, you never add those nodes to the tree itself. They will...
December 2nd, 2009, 06:54 PM
While \r\n will work, the preferred way would be using Enviroment.NewLine which makes sure it will be handled correctly in the future :)
December 2nd, 2009, 03:18 PM
TreeNode tr3 = new TreeNode();
tr3 = treeView1.SelectedNode:
tr3.Nodes.Add(tr2);
That makes no sense what so ever. What you are doing is creating a new TreeNode, then immediately discard it by...
December 2nd, 2009, 01:04 PM
I'm far from being an "guru" on threads, but have you considered using a BackgroundWorker class instead?
Basically it is a thread with some extra functionality that might help you out.
Here is...
December 2nd, 2009, 08:37 AM
You can't really (in this case at least) retrieve just a snipped of HTML code from the server.
What I would do is to download the whole page into a string and figure out the best way to parse the...
December 2nd, 2009, 08:21 AM
December 2nd, 2009, 05:59 AM
The RichTextBox has following properties that will help you out.
SelectionFont
SelectionColor
SelectionBackColor
:)
November 29th, 2009, 11:16 PM
Just paste the classes in a pair of <code> and </code> tags.
Its impossible to help if we don't know how you are trying to draw to begin with.
November 19th, 2009, 06:12 AM
If you are worried about the small classes being created and destroyed over and over again and thus giving some sort of performance issue, considering using some sort of pool ?
November 15th, 2009, 03:27 PM
---EDIT---
Err... I just saw you had an foreach loop there,
But why are you refering to a single char in the fileName?
I think you meant to write
doc.Load(fileName);
November 15th, 2009, 11:21 AM
---EDIT----
You never assign anything to your .Tag property :P
I cant see why it wouldn't work except that in your web application you are looking for controls in panel1, whilst in your forms...
Click Here to Expand Forum to Full Width