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

Search:

Type: Posts; User: bixel

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: TabControl selectedIndex 1 with colorDialog [SOLVED]

    Arjay: yes checked and double checked

    I found the problem!!! I had a Picture box with a custom Paint command. It seemed it was try to paint waaay too many times. So I slowed it down with a Control...
  2. Re: TabControl selectedIndex 1 with colorDialog

    Even creating a new project did not work. I tested with a simple project and works fine.. However as soon as I add more Dialogs to the main Form, colorDialog get hidden somewhere when I try to fire...
  3. Re: TabControl selectedIndex 1 with colorDialog

    @ rockmurali, yeh started new project used many different combinations of adding the colorDialog to the form and it all works. There must be something deep in the form that is causing this....
  4. Re: TabControl selectedIndex 1 with colorDialog

    @ rockmurali - im using 4.0 Framework
    @ arjay - thanks you gave me some ideas: but I don;t know how to check the control for a child control so I just dragged another ColorDialog directly onto Tab...
  5. Replies
    4
    Views
    1,133

    Re: Display List items in ListView

    I don't see anything wrong with what your doing there....
  6. [RESOLVED] TabControl selectedIndex 1 with colorDialog

    weird bug - not sure what I am doing wrong
    dragged a ColorDialog from the toolbox to the form...

    I have a TabControl for my form. Tab 0 and Tab 1, as long as I am on selectIndex 0, if I open my...
  7. Replies
    1
    Views
    909

    Fix Code in code example???

    I am trying to use this guy's code but I don't know enough on how to fix it - because he was a little lazy in typing it.

    from here>...
  8. Replies
    2
    Views
    634

    Re: Loading Content in same folder of exe

    Awesome! Thanks!
  9. Replies
    18
    Views
    3,050

    Re: Using custom object arrays

    I'm just a newb, but maybe some form of bit-wise logic programming can be done BEFORE determining if dog[] d = new dog[50000000] OR dog[] d = new dog[5]

    if so - you can check for space, alert...
  10. Replies
    2
    Views
    634

    Loading Content in same folder of exe

    been working on getting a nice release of my program, it needs to read files from this directory



    string homePath = (Environment.OSVersion.Platform == PlatformID.Unix ||
    ...
  11. Replies
    2
    Views
    648

    Re: Cleaning up code with Regular Expressions

    Yeh I fixed it made it waaay smaller just by changing the way I saved out the xml file. Before I had it like this >> "This_Is_OneHere_Is_AnotherYetMoreAgainSplitEachByCapital_Word"
    to >>...
  12. Replies
    2
    Views
    648

    Cleaning up code with Regular Expressions

    I am terrible at knowing regular expressions very well so mostly I find examples then try to use them, however my code usually ends up being really ugly even though it works.



    ...
  13. Replies
    2
    Views
    794

    Re: [RESOLVED] FileInfo look up problems

    Figured it out, realized I needed to parse out file to make a better comparison



    private void LookForFile(string armorName)
    {
    string directory = itemsContentPath +...
  14. Replies
    2
    Views
    794

    [RESOLVED] FileInfo look up problems

    Getting the most subtle error took me forever to narrow it down, now that I found it I don't know what to do

    so here's the deal: I want to read into a Directory and load a file from the directory...
  15. Replies
    5
    Views
    1,531

    Re: [RESOLVED] Sorting a Generic List

    Ok!!!! I solved it - its a hack really, the List<Labels> is getting populated from a Dictionary, and since a Dictionary cannot be sorted unless its recreated I simply sorted it BEFORE I created the...
  16. Replies
    5
    Views
    1,531

    Re: Sorting a Generic List

    ok picked up on a couple of examples but so far no success

    1st > in Label


    public static Comparison<Label> NameComparison = delegate(Label p1, Label p2)
    {
    return...
  17. Replies
    5
    Views
    1,531

    Re: Sorting a Generic List

    hrmm... getting a

    does not implement interface member & not all code paths return a value

    labels.Sort(new LabelComparer("Name"));

    so its saying, Sort a LabelComparer with the field of...
  18. Replies
    5
    Views
    1,531

    [RESOLVED] Sorting a Generic List

    1st > Not using Forms!

    so I have a class called Label that draws text on a screen - and no this is not Windows Forms!

    I have a Party and that Party has an inventory, like items, weapons and...
  19. Replies
    7
    Views
    1,091

    Re: Trying to eliminate Redundant code

    yes but - you can't declare a var outside of a method, for instance it cannot be a field or property. Maybe it goes to garbage collection faster than something properly declared in a field??
  20. Thread: help with loops

    by bixel
    Replies
    3
    Views
    825

    Re: help with loops

    use

    (code) (/code) to post code, replace ( ) with [ ]

    one problem is see

    you need to put this


    if (myInput == "4")
  21. Replies
    7
    Views
    1,091

    Re: Trying to eliminate Redundant code

    Fantabulous. Had to clean up the code a little but it works like a charm. I got a question though..

    what is the difference between this

    var shieldList = new List<string>( );

    and this
    ...
  22. Re: Single Public Bool affecting all Instanced Classes

    I think my brain wants to see this

    SoundPlayer.MuteGlobal = if (waveOutNumDevices() == 0);

    can we be friends?
  23. Replies
    7
    Views
    1,091

    Re: Trying to eliminate Redundant code

    I think I need a delegate..... Going to learn up on Delegates.
  24. Re: Single Public Bool affecting all Instanced Classes

    Yeh. it was my kneejerk reaction - I was drinking a tun of coffee. There is a lot of stuff I still don't know. But it never would have occurred to me that waveOutNumDevices was ever going to act like...
  25. Replies
    7
    Views
    1,091

    Trying to eliminate Redundant code

    I got several properties that are almost exactly the same, I'm trying to merge them down to just one property, but I'm not doing it right. Here are the over-redundant properties



    public...
Results 1 to 25 of 154
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured