CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ixilom

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    1,384

    Re: Very basic question - Paint event

    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...
  2. Replies
    13
    Views
    1,970

    Re: How do I play an audio file?

    Meh, C# is rather easy to learn, you'll be advanced by their definition in no time ;)
  3. Replies
    13
    Views
    1,970

    Re: How do I play an audio file?

    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...
  4. Replies
    9
    Views
    1,634

    Re: Html and Aspx in C# Form

    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.
    ...
  5. Replies
    37
    Views
    4,105

    Re: Command Prompt to read MP3 files.

    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...
  6. Replies
    37
    Views
    4,105

    Re: Command Prompt to read MP3 files.

    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,...
  7. Thread: Public arrays?

    by ixilom
    Replies
    11
    Views
    1,537

    Re: Public arrays?

    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.
    ...
  8. Replies
    37
    Views
    4,105

    Re: Command Prompt to read MP3 files.

    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...
  9. Replies
    13
    Views
    1,970

    Re: How do I play an audio file?

    Spent like, 30 seconds with google and I found this:

    http://www.daniweb.com/code/snippet217151.html

    Enjoy :)
  10. Thread: Text Alignment

    by ixilom
    Replies
    1
    Views
    928

    Re: Text Alignment

    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...
  11. Replies
    7
    Views
    5,681

    Re: Treeview Auto select?

    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...
  12. Replies
    3
    Views
    602

    Re: Issues with columns

    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 ?
  13. Replies
    3
    Views
    602

    Re: Issues with columns

    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" +...
  14. Re: Have a few quick questions about a program I'm writing

    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...
  15. Replies
    7
    Views
    5,681

    Re: Treeview Auto select?

    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...
  16. Replies
    5
    Views
    1,100

    Re: MultiLine Textboxes??

    While \r\n will work, the preferred way would be using Enviroment.NewLine which makes sure it will be handled correctly in the future :)
  17. Replies
    7
    Views
    5,681

    Re: Treeview Auto select?

    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...
  18. Replies
    2
    Views
    688

    Re: Simple Threading Question

    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...
  19. Re: Problem retrieving specific data from a web site

    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...
  20. Replies
    4
    Views
    831

    Re: Marked text? Only when color and font..

    No Problem :)
  21. Replies
    4
    Views
    831

    Re: Marked text? Only when color and font..

    The RichTextBox has following properties that will help you out.

    SelectionFont
    SelectionColor
    SelectionBackColor

    :)
  22. Thread: C# drawing help

    by ixilom
    Replies
    1
    Views
    797

    Re: C# drawing help

    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.
  23. Replies
    12
    Views
    1,589

    Re: Struct within a class... on stack?

    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 ?
  24. Replies
    7
    Views
    3,468

    Re: Trying to iterate through XML files

    ---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);
  25. Re: How to change button color using tag or name property

    ---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...
Results 1 to 25 of 36
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured