User Profile

Collapse

Profile Sidebar

Collapse
IanWright
IanWright
Last Activity: Dec 7 '09, 04:48 PM
Joined: Jan 17 '08
Location: York
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • IanWright
    replied to Adding Item in listbox on parent form
    Well everything you suggest, suggests what you have posted is working fine. You might like to post the code within GetOrderDetails Func() or at least something that interacts with a listbox.

    Also I don't recommend ending you're methods with Func(), its not standard and methods are called methods, rather than functions in C#.
    See more | Go to post

    Leave a comment:


  • I posted this message to another user about a Uni Project...

    "How about something slightly different.... Maybe a remote drawing application? (Like instant message drawing) that works over a TCP or UDP connection and supports basic shape drawing + encrypted transmission.

    Then you get some connection based stuff, some graphics and shapes fit quite nicely with polymorphism normally so would be quite nice all around."...
    See more | Go to post

    Leave a comment:


  • Umm, yeah. Kettles... Ajax doesn't boil water very well and I like tea.

    Maybe you should make your question a little more specific?
    See more | Go to post

    Leave a comment:


  • IanWright
    started a topic Class Library with Thread Safety

    Class Library with Thread Safety

    Right, here goes. I'm designing a class library that runs a heuristic on several threads and therefore has to be thread safe. I'm going to outline the current design in a second, but I'm not sure that it's quite right, so I'd like some suggestions.

    How it currently works:

    1) A collection of a custom class, A are defined by the developer using the class library.
    2) To ensure that the A's aren't modified during...
    See more | Go to post

  • mbewers1,

    Javascript code certainly won't work on WinForms.
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to creating threads
    I'd recommend MSDN for things such as this, but here's a summary for you.

    Code:
    new ThreadStart (Method1)
    A Thread needs somewhere to start, which obviously will be a Method. Normally this will be
    a parameterless method with no return. e.g.
    Code:
    private void DoStuff()
    Overall we call this starting point a ThreadStart, and we pass in a method to the constructor.

    Code:
    new Thread (new ThreadStart
    ...
    See more | Go to post

    Leave a comment:


  • I'm afraid I don't know how to build a GPRS communication system either... but if there is a particular coding difficulty you are having I'm sure I might be able to help...

    Your question could be the topic of a thesis... or the software forming the foundation of a whole company. It's a little tricky to give an answer to such a broad question.
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to Returning to execution after exception?
    Firstly, why do you want to do this? It effects the answer to your problem quite dramatically.
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to c#: Setup and Deployment Project
    you should read some very basic tutorials on programming in the .NET framework before asking silly questions?
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to Threading & Event Handlers
    Start a new thread (e.g. post a new question), and in it ask why your WriteDataToDb class isn't working. Then post some details on what it does.
    See more | Go to post

    Leave a comment:


  • IanWright
    IanWright posted a Visitor Message for cmwb2000
    Might want to take a look at latest post. Might help you out.
    See more | Go to post

  • IanWright
    replied to Threading & Event Handlers
    By the way. Thinking about it, it sounds like you want to create some new classes, with Events that have an associated stopwatch.

    e.g.

    public class BaseEventChecke r
    {
    public virtual OnMouseDown() {}
    public virtual OnMouseRelease( ) {}
    }

    public class Duration : BaseEventChecke r
    {
    public override OnMouseDown() {}
    public override OnMouseRelease( ) {}...
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to Threading & Event Handlers
    Right, Ok. And you're saying the bit of code above on its own doesn't work?

    Could you post your actual code (something that compiles and runs) then we might be able to give it a try.
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to Threading & Event Handlers
    So something like this running just on the main thread? If so I'd expect that to work fine...

    Code:
    StopWatch durationTimer = new StopWatch();
    StopWatch latency = new StopWatch();
    
    public void OnMousePress(object sender, MouseEventArgs e)
    {
       latency.Stop();
       durationTimer.Start();
       Trace.WriteLine(latency.ToString());
    }
    
    public void OnMouseRelease(object
    ...
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to Threading & Event Handlers
    I believe events work cross threaded, which is why you get them from both threads.

    Can you explain the problem a little more, i.e. what are latency and duration? Trying to get an idea exactly what you're doing.
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to Custom/named indexes for a Listbox?
    Ok, I've only read a few sentences so not got the full post context. But it sounds like you want to bind a Dictionary to a ListBox and change the DisplayMember property so that the things it displays are the values in the Dictionary?

    Look at the ListBox.DataSou rce and ListBox.Display Member/ListBox.ValueMe mber properties if thats the case.
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to Generating Help Files
    Sandcastle does work, there's also a plugin call DocProject which uses sandcastle but plugs directly into Visual Studio which is quite nice.
    See more | Go to post

    Leave a comment:


  • IanWright
    replied to C# voice and video chat
    Yeah, start off by coming up with a specification of what exactly you want it to do, then do some research (e.g. do you want to send compressed audio video, what formats are best, what libraries are available to compress the streams for you).

    Once you've got that, have a look at some TCP server/client demo applications. You should easily find them on google, and then you'll need to adapt one so that data it actually sends is audio and...
    See more | Go to post

    Leave a comment:


  • Well I haven't done a computing degree so have no idea on the level of difficulty.

    I also imagine that it varies between universities, specific courses and the person marking the project. Ask you're supervisor on the difficultly level expected...
    See more | Go to post

    Leave a comment:


  • How about something slightly different.... Maybe a remove drawing application? (Like instant message drawing) that works over a TCP or UDP connection and supports basic shape drawing + encrypted transmission.

    Then you get some connection based stuff, some graphics and shapes fit quite nicely with polymorphism normally so would be quite nice all around.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...