|
|
|
Yes, Martin is a great help for all of us
Too bad he's not selected as an MVP
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: Yes, Martin is a great help for all of us
Thank you!
Muammar© wrote: Too bad he's not selected as an MVP
As my input is only limited to the C# disussion board, and also there I only have average knowledge, it would really be a much to high honor.
But reading this from you, was the zenith of this day.
So thanks again!
All the best,
Martin
|
|
|
|
|
If you're using MDI form as the main form, then just determine the child and call the Close() method.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Thanking you Muammar
But I am still in problem with my captioned subject.
and i am still trying to solve
|
|
|
|
|
How can I validate an email. That is an email is inputted in right format and domain is also exist. I need to verify whether the id is exist or not.
For example: emailid@yahoo.com is a valid format and also 'yahoo' is also a valid domain. But I've to know 'emailid@yahoo.com' such an email id exist or not.
jahed
|
|
|
|
|
|
Go for wild cards.. ie *@*.??? meaning "anything@anything.three letters"..
For the domain, you can ping it and see if it exists, that's your best bet.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: ie *@*.??? meaning "anything@anything.three letters"
abc@company.co.uk
|
|
|
|
|
Hi!
i m developing web portal in C# asp.net web application. i want to display image in hyperlink control rather than text. i can do it by using hyperlink's property that is 'imageurl', but problem is that in hyperlink,image displays in actual size not in that size which i have given in hyperlink height and width property.
can u plz tell me how i can restrict size of hyperlink upto my own requirment i mean i want to display all the images in hyperlink of size 100/100,even if image actual size is 500/500. just as i can do in image control.No matter how big image is but it always displays in that fixed size which i give to it.
Thanx
|
|
|
|
|
EEmaan wrote: i m developing web portal in C# asp.net web application.
People in the asp.net forum can be of more help.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
When I used theis code to copy file works fine.
File.Copy("w:\\DDBE\\Models.xml", "c:\\MODELS\\Models.xml");
How can I save the file with date,time or any other suggestion
mode1245
or
model120pm
or
anything that does not exist so won't overwrite prevoius file
using VS2003, C#
thanx in adcance
|
|
|
|
|
Use File.Exists. I usually just build a loop and append a number to the filename, until I get one that isn't there already
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
What would you recommend a beginner for some good C# books to learn from? I've checked Deitel, SAMs Teach Yourself, and O'reilly's books but not sure if their great. Suggestions? Thx in advance.
|
|
|
|
|
Make sure you get a C# 2.0 book, if you're using 2.0. O'Reilly books are always good. Sams books are always a great place for a beginner to start.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Complete C# from Sybex
But as Christian said, make sure you get C# 2.0
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi
I need to upload chunk to proxy server using Http Post multipart.
have two parameters
ChunkId - datatype long
ChunkBody- binary
Please advise how to send this two parameters thru HttpWebRequest..
Thanks in advance
|
|
|
|
|
|
Hello Gentlemen,
I have a less elementary question this time.
I have application that runs both full screen and in a window. Text appears on the screen. I want to take each frame of this application or perhaps a new snap shot every few seconds, and then OCR the frame to extract the text. I'd like to do this in c# but I do not know of a way to get the handler for this application and extract and store it's pixel information. This is probably going to be really resource intensive and I'd like to keep it as fast as possible.
What i'm basically looking for is a starting point. How can I get that pixel data from the external application into a format I can edit. I only need to monitor a certain section of the screen of this application. Is there a FCL class that I can look at to get me on my way?
Thank you.
|
|
|
|
|
If you're in C# 2.0, then you can use a method on the Graphics object to copy data from the screen to a bitmap. THe OCR stuff is a little more difficult. If you know what the app is and can get the window handle of the controls displaying text, GetWindowText is probably a better option ( that's a C API ).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The application i'm trying to get the text out of is a video game that can run in full screen or in window. Most likely the test being displayed is through some kind of proprietary direct x game engine that I have no control over. The only thing I can do is monitor the games' frames and pick out of them the information I want to perform OCR on. I like the idea about getting the window handle of the app. If I get the window handle of the app, how can I gain access to it's pixel data, or does that just intrinsiclly come with it? I'm a bit confused when you mention the "controls displaying text" because, as far as I know there are no controls (at least as far as I know of their definition goes in C#, ex, button, textbox, etc. I could easily be confused about the definition of controls, so don't rule that out.
I was hoping to avoid having to copy data from the screen to bitmap as that could take a very very large amount of data and cpu cycles if i'm doing that 30 frames per second. But the nice thing is that the text isn't constantly altering data and just kind of sits there until it scrolls away.I probably just need to capture 1 frame every second, but will the OCR (which can be pretty heavy itself) be able to compute and recognize that text before the next frame is pulled? It probably doesn't even need to be that quick as I could create an ocr buffer that checks to see if it already got that text and I can put a time in milliseconds next to that text to rule out the OCR not reporting duplicates.
This is just a hobby project by the way, ambitious as it may sound.
|
|
|
|
|
There's a problem with this. You can probably get the image from the screen, but only probably. There's no guarantee that you will be able to do this. Since this is a game, the screen updates will be happening VERY rapidly. This causes you two problems.
Since your talking about scrolling text, there is an issue of shearing. This is when you start to grab a shot of the area of the screen and it changes DURING the grab. This can make the OCR part fail quite easily.
The second problem IS the OCR part. This will be a very CPU heavy process that can hog the CPU and slow down the game performance. You definitly won't be getting this at 30 frames a second. Frame a second will be far more likely and this will leave more CPU time to the game itself.
|
|
|
|