|
I have used Microsoft Visual C# 2008 Step by Step book to learn C# be sides from the writer adding in text to make it longer, like instead of saying Chapter 12. He writes a 50-word title and so on. However, this is not the problem. The problem is they write the tutorial programs to the console, which I cannot see, work because the console just blinks on and off and you cannot see what you did. Is there a way to make the console stop for 10 seconds or stop at the end of the program so I can see it?
Console.WriteLine("default constructor called:");
Console.Write("Press ENTER to finish.");
Console.Read();
This works to stop the console sometime for one line, but there must be a better way. If someone know if would be good to post it. I cannot find an easy way to do this.
|
|
|
|
|
rodbiser wrote: Console.Read();
That's the way if you are running using F5 . You don't have to wait for a key press if you run the executable directly (Ctrl + F5 ).
|
|
|
|
|
use:
Console.ReadLine()
or thread.sleep
Natza Mitzi
|
|
|
|
|
Yes, use Console.ReadLine();
It works wonders. The screen will stay up until you hit the Enter key.
|
|
|
|
|
... or run from a "Command Prompt" (aka "DOS window"). Doing so you don't need to modify your code at all.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I want to ask you if how can I use the dos window? I tried the properties and put it in the start but that did not work. Do you know how to make the compliler open the console you want? I know this is something that is not importion but I just want to know for my self. thanks for your answers
|
|
|
|
|
Hi,
Console.Read is good but if you want to wait on any key, not just Enter, then use ReadKey. A loop to empty the keyboard buffer will consume stored up keystrokes and ensure that a wait does occur.
Alan.
while (Console.KeyAvailable) {
Console.ReadKey(true);
}
Console.WriteLine("Press any key to continue...");
Console.ReadKey(true);
|
|
|
|
|
I'm creating a user control. It's possible to overwrite the Controls collection and
raise an event in the Add when the user does
MyCustomUserControl.Controls.Add(new textbox());
Is it possible to tell when the user drops a control onto my user control in design mode?
Thanks
Everything makes sense in someone's mind
|
|
|
|
|
Have you tried ControlAdded[^] event? Not sure it works on design mode though.
|
|
|
|
|
I need to complete a project called "Computer Vision based Human blood Recognition and counting"
I used some tools of AForge.NET for cell count (as object count) but it gives incorrect result. How i can count cell from microcopic picture.
I badly need a solution.
I used connected component labelling method from AForge.NET but it does not work. Is my method is wrong?
I have two requirement
1)blood cell count
2) blood cell recognition (eg; roundness, saliency, diameter, orientation etc)
can any body help me in this regard...
Mohammad Shakil
shakil0404036@yahoo.com
|
|
|
|
|
Is this for school ? What have you tried ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have solutions for this.
For somewhere in the 6 figure $US range I can probably work something out...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Haha, well played Mark. Well played.
|
|
|
|
|
Sir,
Actually I am a student and very much interested to do a different project like this. Although I know about my very poor knowledge over such programming capability. At least I want to do RBC or WBC counting.
|
|
|
|
|
Machine vision is a univeristy research grade project. So what you're telling us is that you want a solution completely written for you, that would normally cost hundred of thousands of dollars to develop, for free?? Am I reading this correctly??
BTW: What are you charging your client??
|
|
|
|
|
Sir,
I know its a great project. But I am trying to do at least I can. I don't need complete solution written for me but only want how I can count different shape of objects using c# language.Because cell are of different types. I have discussed with pathologies and study different journal written over it.
sir, I am not a employee or I have no client but a student want to do this project for my own interest.
regards
Mohammad Shakil
|
|
|
|
|
Let's see. You have very little programming experience (quoted from your reply to Christian) and you want to take an an extremely advanced programming problem?? Yeah, good luck with that. As I said before, this is a final-year, university research level, and beyond, project. If you have so little experience, you're going to find this impossible.
|
|
|
|
|
Md. Shakil wrote: need to complete a project called "Computer Vision based Human blood Recognition and counting"
I used some tools of AForge.NET for cell count (as object count) but it gives incorrect result. How i can count cell from microcopic picture.
I badly need a solution.
I used connected component labelling method from AForge.NET but it does not work. Is my method is wrong?
I have two requirement
1)blood cell count
2) blood cell recognition (eg; roundness, saliency, diameter, orientation etc)
can any body help me in this regard...
You could always read this[^] document that's freely available on the web.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Yet another outsourcing moron takes work well outside his ability, tries to get us to write it, and does not even reply when people respond. contact your client and tell them you are a thief. This project, more than most, will get you in legal trouble if you keep it and it's this far beyond you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear Sir,
Pardon me. I know about my very little knowledge about programming. But I am trying to do this. I could not respond due of lacking internet connectivity for few days.
I have no client.I am a student.I know it is a gigantic project for a single person like me. But I am trying to implement some of the feature using some algorithm published in some journal. I have studied wiki too.
There exist some concept like this.
regards
Mohammad Shakil
|
|
|
|
|
I'd suggest popping along to here[^] and asking your question.
You almost certainly won't get the answer you seem to be looking for (aka plz send codez) but it would be more relevant, I think, than this forum
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
Dear Sir,
Thanks for your suggestion.
Mohammad Shakil
|
|
|
|
|
Dear Sir/Madam,
I am a B.Sc. final year student. I am trying to do this for final year project.
I have obtained the concept from a journal and a website that it is possible to count different blood cell based on microscopic image. For this I have selected "Computer vision based human blood cell recognition and counting".
I have taken this project to do as my own interest not for another purpose.
I know it is very hard to me to do the project. I am following some algorithm given by the journal. I am practicing using some method described in a library AForge.NET. I also download EMGU cv and trying how i can use this library for my project.
In this time I at least want to count RBC (red blood cell) and WBC (white blood cell) of total count. I have studied different journal but could not get code help properly.
Can anybody give me tips and some source help please.
I will try my best to do this as I can.
regards
Mohammad Shakil
shakil0404036@yahoo.com
|
|
|
|
|
Hello, I am trying to stream multiple byte[]'s to a web browser making it seem as if it is just one file. I can easily do one, but have multiple to stream.
Coding Language: C#
Thanks
~Any help is good help...
|
|
|
|
|
How do you expect this to work ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|