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#.
User Profile
Collapse
-
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."...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?Leave a comment:
-
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... -
-
I'd recommend MSDN for things such as this, but here's a summary for you.
Code:new ThreadStart (Method1)
a parameterless method with no return. e.g.
Code:private void DoStuff()
Code:new Thread (new ThreadStart
Leave a comment:
-
IanWright replied to how do GPRS communication create for sending/receiving message through GSMmodem in c#in C SharpI'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.Leave a comment:
-
Firstly, why do you want to do this? It effects the answer to your problem quite dramatically.Leave a comment:
-
you should read some very basic tutorials on programming in the .NET framework before asking silly questions?Leave a comment:
-
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.Leave a comment:
-
Might want to take a look at latest post. Might help you out. -
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( ) {}...Leave a comment:
-
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.Leave a comment:
-
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
Leave a comment:
-
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.Leave a comment:
-
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.Leave a comment:
-
Sandcastle does work, there's also a plugin call DocProject which uses sandcastle but plugs directly into Visual Studio which is quite nice.Leave a comment:
-
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...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...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.Leave a comment:
No activity results to display
Show More
Leave a comment: