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

Search:

Type: Posts; User: rliq

Page 1 of 28 1 2 3 4

Search: Search took 0.06 seconds.

  1. Thread: LINQ Aggregate

    by rliq
    Replies
    0
    Views
    1,038

    LINQ Aggregate

    Can anyone see a way that I can calculate layerOutputs[layerIndex] using a LINQ expression?



    layerOutputs[layerIndex] = 0.0;
    for (int layerInput = 0; layerInput <...
  2. Re: Collision detection between a circle and rectangle

    1) Rectangle or Square?
    2) Are all Rectangles/Squares the same size?
    3) Are the circles always the same size?
  3. Replies
    4
    Views
    2,273

    Re: need help with priority queue/heapSort

    It's hard to read code that is not indented. Also, you've not actually told us what your problems is.

    People here will help you, but you need to be more specific. You can't just say "My...
  4. Replies
    4
    Views
    1,284

    Re: Need Help with C# program

    Also remember that if:

    index = 3

    then

    index++ / 5 is three fifths

    and
  5. Replies
    4
    Views
    6,066

    Re: String manipulation in c#

    Not sure how bullet proof this is, but it works for your sample. Probably best if you also include a flag to say whether you are inside or outside a tag. Then you can report an error (if desirable)...
  6. Replies
    1
    Views
    833

    Re: Need help with sorting in c#

    Can you post the code here, showing how you read the text from the file. Then we will be able to see what internal structure you have used and better answer your question.
  7. Thread: Drawing Control

    by rliq
    Replies
    3
    Views
    997

    Re: Drawing Control

    In general, all drawing code should be placed in the forms Paint event handler. This is automatically called when part of your application needs to be drawn.
  8. Replies
    6
    Views
    1,051

    Re: [RESOLVED] Using "this" keyword properly

    I tend to use 'this' when referring to member functions that I did not write, i.e. those in a class that mine is derived from. Having said that, I'm always arguing with myself over this standard. ...
  9. Replies
    5
    Views
    1,530

    Re: graph is vanished in tabpage

    You need to draw all of the lines every time in your Paint handler.

    I just wrote this code, it may help you make some progress.


    using System;
    using System.Collections.Generic;
    using...
  10. Replies
    23
    Views
    8,780

    Re: Reading a .txt file in real time

    If you write each block of data to a different temp file each time, then the whole of its contents is the string that was written. Then append the whole of that text to the end of another file and...
  11. Replies
    5
    Views
    983

    Re: Event Handling in different form

    I think you need to post a sample of your code. Saying that "you tried it the same way as you did in the other form", is meaningless, when we don't know what you did in the other form.
  12. Replies
    11
    Views
    5,850

    Re: How to use a string in a foreach outside of it?

    string autocode = string.Empty;
  13. Replies
    8
    Views
    1,198

    Re: Multithread writing data

    I guess you may already have seen the link, showing an implementation of the "Thread Safe" Dictionary class.
  14. Replies
    8
    Views
    1,198

    Re: Multithread writing data

    That is correct, I just read the Dictionary<> documentation on MSDN. Guess I was just lucky that I did not create two duplicate keys...

    Ultimately though, only testing will determine which way...
  15. Replies
    8
    Views
    1,198

    Re: Multithread writing data

    I just wrote this as an experiment...



    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Threading;

    namespace CodeGuruTest
  16. Replies
    11
    Views
    5,850

    Re: How to use a string in a foreach outside of it?

    yep.. should be....

    string autocode = new string();
  17. Replies
    11
    Views
    5,850

    Re: How to use a string in a foreach outside of it?

    string autcode;
    foreach ()
    {
    autcode = ...
    }

    // use autocode here
  18. Replies
    8
    Views
    1,198

    Re: Multithread writing data

    Can you explain the process a little more... You have 10 threads 'updating'. Is this adding, removing, updating? Is 1 removing and 9 adding or 9 removing and 1 adding etc...?
  19. Replies
    5
    Views
    1,530

    Re: graph is vanished in tabpage

    1) How are you drawing the graph?
    2) In which part of your code are you drawing the graph?

    Post some of your code here.
  20. Thread: Modifire help

    by rliq
    Replies
    3
    Views
    824

    Re: Modifire help

    You have not said what your issue is? What is the question that you want answering?
  21. Replies
    8
    Views
    1,198

    Re: Multithread writing data

    9 out of 10 times I believe the answer to this would be Dictionary<,>. (Memory access faster than Disk access)

    A database may be faster, if there are millions of items, the database is on a...
  22. Replies
    23
    Views
    8,780

    Re: Reading a .txt file in real time

    Your server program could write each incoming block of text to a new file. Eg: 1.txt, 2.txt, 3.txt (or even get the system to generate a temp file name for you, so you don't have to keep a counter)....
  23. Thread: New C# Moderators

    by rliq
    Replies
    10
    Views
    1,358

    Re: New C# Moderators

    Nice one!
  24. Replies
    6
    Views
    7,644

    Re: Check if DataGridView is empty.

    I'm not sure that you can add null items to a ComboBox...?
  25. Thread: Drawing Control

    by rliq
    Replies
    3
    Views
    997

    Re: Drawing Control

    You can use the:
    // Create a Graphics object for the Control.
    Graphics g = pictureBox.CreateGraphics(); to get the Graphics object for the PictureBox control. Then use the members of the...
Results 1 to 25 of 691
Page 1 of 28 1 2 3 4





Click Here to Expand Forum to Full Width

Featured