|
Hi,
this should be simple:
MyForm.Close();
|
|
|
|
|
|
|
|
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 )
|
|
|
|