Search:

Type: Posts; User: Midol

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Thread: Constructors

    by Midol
    Replies
    2
    Views
    549

    3.0/LINQ Re: Constructors

    Thanks, got it all going how I wanted it now :)
  2. Thread: Constructors

    by Midol
    Replies
    2
    Views
    549

    3.0/LINQ Constructors

    Stupid question I am sure but I have no idea how to do it.

    Lets say I have a window (wpf) called wndWindow.


    wndWindow tWindow = new wndWindow();

    Now I'd like to create a constructor for...
  3. Thread: Parsing Data

    by Midol
    Replies
    1
    Views
    490

    Parsing Data

    Hey guys,

    Need some help here. In VB I used nested splits. Not sure how to do this here.

    I'm parsing data from a forum.



    Is an example of a section.
  4. Replies
    2
    Views
    565

    Re: c# data structures

    Thanks.

    Haven't delved into LINQ. Will start smashing through my LINQ book.
  5. Replies
    2
    Views
    565

    [RESOLVED] c# data structures

    G'day guys,

    Just wanting some ideas on how I can organise the following data:

    Bob 100 100 ELEPHANT STIFFLE
    Jane 100 100 DOG CAT
    Fred 55 98 JOE BLOW
    Smith 1 3 BIRD HARE

    I'll be looking up...
  6. Thread: Registry Reading

    by Midol
    Replies
    3
    Views
    593

    Re: Registry Reading

    Thanks guys.

    I must not have been following the tutorial properly :)

    All working.
  7. Thread: Registry Reading

    by Midol
    Replies
    3
    Views
    593

    Registry Reading

    Keep getting an error on this code:



    RegistryKey rKey = Registry.LocalMachine;
    rKey.OpenSubKey(@"\SOFTWARE\Blizzard Entertainment\World of Warcraft", true);
    ...
  8. Replies
    5
    Views
    630

    Re: Classes/Functions

    Haven't arrived yet, might have to head to a local store.

    I've learn't a fair bit already. I am coding a multiboxing program for WoW and this was just something I never needed to know till now.
  9. Replies
    5
    Views
    630

    Re: Classes/Functions

    VB6.

    And thanks, that helped a ton. Perfect understanding of it now.

    Jen, I ordered 4 from Amazon over a month ago :(
  10. Replies
    5
    Views
    630

    Classes/Functions

    Fairly basic question.

    In VB I could create public functions simply using public.

    How can I create a class in C# and have a function accessible by other forms and what not.

    just as an...
  11. Replies
    5
    Views
    1,156

    Re: [2.0] Sending Modifier keys

    Errr, fixed.

    VK_CONTROL = 0x11.
  12. Replies
    5
    Views
    1,156

    Re: [2.0] Sending Modifier keys

    No error message.

    It just sends a single key of V (a capital.)

    It doesn't seem to be sending the modifier.

    I am defining VK_CONTROL as 0x0002 (maybe minus one zero, cant recall) and in...
  13. Replies
    5
    Views
    1,156

    [RESOLVED] [2.0] Sending Modifier keys

    G'day guys,

    Having a bit of trouble, here is the code:

    public static void PostKeyPress(int Handle, int keycode, int mod)
    {
    if (mod != 0)
    ...
  14. Thread: Arrays & Ideas

    by Midol
    Replies
    0
    Views
    386

    Arrays & Ideas

    G'day guys,

    I have a bit of a problem, and I think using Arrays is an option here.

    Now, I don't need help with specific code (unless with your idea you want to attach some) but if it includes...
  15. Replies
    13
    Views
    4,159

    Re: Hotkeys - ignoring

    That's what I am considering, but the program will be shared around (not released but shared to people) who may want the option to use single letters/numbers.

    However, I've just been given the...
  16. Replies
    4
    Views
    641

    Re: [RESOLVED] Active Control(?) handles.

    Nah, I just found a work around.

    The solution in your thread is far better though. Thanks for posting - I did do a search so it is amazing I didn't find it!
  17. Replies
    4
    Views
    641

    Re: Active Control(?) handles.

    Browsed through the API list and the only way I can figure this out is to grab the handle of everything I click on and disable tab so users can't tab between controls.
  18. Replies
    4
    Views
    641

    [RESOLVED] Active Control(?) handles.

    G'day guys,

    As an example I'll use notepad.

    Notepad is easy, it just has the Edit box and we can find its handle via its class.

    However, what if notepad had two edit boxes? How can we find...
  19. Replies
    4
    Views
    1,038

    Re: Selecting listview item

    Ack.

    Forgot c# uses [ ] instead of ( ) and misread your post. Just hit me then.

    Thanks :)
  20. Replies
    4
    Views
    1,038

    Re: Selecting listview item

    Thanks mate, the second was the one I was after!

    Huge help, this hurdle had stalled me.

    ETA: Spoke to soon. Getting an error.


    Code was basically a copy/paste of yours but with 2 as 1 :P
    ...
  21. Replies
    13
    Views
    4,159

    Re: Hotkeys - ignoring

    Yeah, I just couldn't be bothered implementing a keyboard hook and using hotkeys so I am just using hotkeys for everything.

    Now that I actually understand sub classing I also understand how the...
  22. Replies
    4
    Views
    1,038

    Selecting listview item

    G'day guys,

    Just wondering how I can grab the info from a list view row. I know the index of the row but have no idea how to pull the data from the columns.

    Did a bit of a search but made no...
  23. Replies
    13
    Views
    4,159

    Re: Hotkeys - ignoring

    Ummm.

    I've got my program, then a few copies of WoW running. If either of the WoWs are active then I perform the code related to the hotkey, but since I am using normal keys like "1" and I am...
  24. Replies
    13
    Views
    4,159

    Re: Hotkeys - ignoring

    Nah, you've got it.

    I was just wondering if there is something basic which ignores it or whether I have to receive the key, grab the keys pressed then send them back out.
  25. Replies
    13
    Views
    4,159

    Re: Hotkeys - ignoring

    AFAIK, no.

    Windows only sends the hotkey to the window (handle) you register the hotkey to. If it is suppose to go to all windows then my computer is broken :P
    ...
  26. Replies
    13
    Views
    4,159

    Re: Hotkeys - ignoring

    I'm in c# now but any advice is easy enough to transfer to c# (and vice versa)

    Hotkeys are registered with the registerhotkey api. An example would be I need to register keys 1-9, the program...
  27. Replies
    2
    Views
    729

    Re: First day of C# -

    G'day,

    Yeah, so far it does nothing - just wanted to make sure I wasn't in any bad habits like I got into when I entered VB6. Not sure if you know what WoW is (Well, everyone knows what world of...
  28. Replies
    2
    Views
    729

    First day of C# -

    G'day all,

    Today I downloaded the .net express package and did my first lot of c# coding.

    I was just wondering if anyone can take a look at the code I wrote and just let me know of any bad...
  29. Replies
    5
    Views
    587

    Re: Formating percentages

    *sigh*

    I always get embarrassed by things like this :P Always trying to find the most complicated method ever.

    Thanks!
  30. Replies
    5
    Views
    587

    Formating percentages

    Is there an easy way to format a % into a normal number?

    For example, 55.5% into .555?

    I've written some code to do it, but it's quite a few lines so was wondering if there is a way to do it...
  31. Replies
    16
    Views
    1,082

    Re: Problem with listviews

    si_the_geeks technique is what I'd use in this case. I misunderstood your initial post.

    In the program I am currently writing I have a few flexgrids and I just hide specific columns (set width to...
  32. Replies
    7
    Views
    1,733

    Re: Measuring time taken to process block.

    I attempted to use a timer by setting the interval to "1" then inside the timer having it increase a variable bTime by 1.

    At the start of the block I'd enable the timer then disable it at the end...
  33. Replies
    16
    Views
    1,082

    Re: Problem with listviews

    You need a unique field.

    Can you add an ID field to the database, which is unique and primary. Each ID is a different number.

    That is how I would do it.
  34. Replies
    9
    Views
    1,246

    Re: Bring messagebox from textbox

    use an if statement.


    if txtInput.text = "" then
    msgbox "You have to input some text"
    else
    msgbox txtInput.text
    end if
  35. Replies
    7
    Views
    1,733

    Measuring time taken to process block.

    Is there anyway to measure the time it takes for a block of code to be executed?

    Just want to measure if my optimisations are really optimising.
  36. Replies
    3
    Views
    931

    Re: Simple DataGrid question

    I hate datagrids.

    flexgrids seem to have more tutorials out for, I'd use a flexgrid if I were you. When I was looking into them I couldn't find many people with experience using datagrids.
  37. Replies
    37
    Views
    1,692

    Re: Send Data / Winsock

    Yeah, ditto, without seeing both server/client code I can't really help anymore. There is no logical reason that a connection would close by itself after receiving data.
  38. Replies
    2
    Views
    580

    Re: Drag/Drop picture boxes

    Thanks a ton, code works great.

    Saved me a bit of time too. I had a go last night but just couldn't get the maths right - it leaps out at you when you see it done though!

    I think that's a chunk...
  39. Replies
    2
    Views
    580

    [RESOLVED] Drag/Drop picture boxes

    I'll set the scene first :P

    I have one big picture box with multiple smaller ones inside the big one.

    Is it possible to use the drag/drop function to drag the little one around inside the big...
  40. Replies
    4
    Views
    577

    Re: Getting a percentage

    n1 = val(txt1)
    n2 = val(txt2)

    percentage = (n2/n1) * 100

    lblpercentage = percentage

    Or the n2/n1 around the other way, can't figure out which way you wanted them. I
Results 1 to 40 of 60
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width