|
Yes, but you'll have to be careful with regards to database authentication and security.
|
|
|
|
|
Pete O'Hanlon wrote: g ClickOnce[^],
how does it handle multiple request?
|
|
|
|
|
I have an application with a regular "main" or "parent" System.Windows.Forms.Form. Sometimes, I would like to display a dialog-looking form as a child form to the main main form. I would like the child form to meet these requirements:
1. When the child form is shown, no additional task is shown in the taskbar on the lower part of my screen.
2. When the child form is shown, it becomes impossible to access any controls on the main form. Basically, the main form can't be activated when the child form is shown.
3. When making the call to show the child form, the calling thread does NOT get blocked.
4. The child form can easily be moved anywhere on the screen, even outside of the main.
5. The child form is ALWAYS in front of the parent form.
How can I accomplish this? I am most grateful for any suggestions.
|
|
|
|
|
Form1 dialog;
private void button1_Click(object sender, EventArgs e)
{
dialog = new Form1();
this.dialog.FormBorderStyle = FormBorderStyle.FixedDialog;
this.dialog.ShowInTaskbar = false;
this.dialog.MaximizeBox = this.dialog.MinimizeBox = false;
this.dialog.Show();
this.Text = "Thread is not blocked.";
}
private void Form1_Activated(object sender, EventArgs e)
{
if (dialog != null)
dialog.Activate();
}
Hope this helps.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
That was pretty much exactly what I was looking for. Thanks a bunch!
|
|
|
|
|
arnold_w wrote: 1. When the child form is shown, no additional task is shown in the taskbar on the lower part of my screen.
Set Form.ShowInTaskbar = false;
As for the rest, Form.ShowDialog does all this for you, except for:
arnold_w wrote: 3. When making the call to show the child form, the calling thread does NOT get blocked.
The parent form still pumps some messages: are you sure you care that ShowDialog "blocks"?
If so, try:
private void button1_Click( object sender, EventArgs e )
{
new Thread( () => new Form2().ShowDialog( this ) ).Start();
}
Nick
----------------------------------
Be excellent to each other
|
|
|
|
|
|
Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail.
I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem.
Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.
modified on Monday, October 13, 2008 6:00 AM
|
|
|
|
|
I'm afraid you can't do it. There is no central registry of email addresses, so you can only identify a valid email by sending them a mail and getting them to reply back.
|
|
|
|
|
Pete O'Hanlon wrote: so you can only identify a valid email by sending them a mail
Checking the MX record notwithstanding. Granted not a perfect method for numerous reasons, but one step in between email-address-looks-valid and send-email-address-mail
|
|
|
|
|
J4amieC wrote: Granted not a perfect method for numerous reasons
It would be a fair start, but as you note - not perfect.
|
|
|
|
|
The only sure fire way is to send an email to the address.
You can use regex to check if the address is technically valid, dns lookup to verify the domain exists and has mx records but that's about as far as you can go without sending an email.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
this[^]is in asp but it should give you some ideas
|
|
|
|
|
|
Shweta Gulati wrote: its urgent...
How original. It's urgent - because nobody ever posts here and says "Take your time. I have all the time in the world to get the answer to this."
With only the filename, you have to walk the entire directory structure, looking for names that match it. You could have written the code in the time it took you to post this.
|
|
|
|
|
|
Shweta Gulati wrote: need answer,not comments.
You were given the answer. If you can't implement it, then that's not my problem.
|
|
|
|
|
You need a clue more than anything else. He gave you the answer, but I seriously doubt he'll actually write/test the code for you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I can't speak for Pete, but for the proper remuneration I could. My rate for YAFM code is $500/hour, 4 hour minimum. All new customers must pay 100% prior to source delivery.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
dan neely wrote: My rate for YAFM code is $500/hour, 4 hour minimum. All new customers must pay 100% prior to source delivery.
Nice terms there, Dan
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
If you can't follow the rules then don't post the question. Mouthing off at senior members will get you little help ever here.
Blog link to be reinstated at a later date.
|
|
|
|
|
It's my fault. I engaged with a troll, so I should be named and shamed.
|
|
|
|
|
If anyone got hurt by my words,I m sorry 4 that...I should not raise my temper for a small comment
|
|
|
|
|
Shweta Gulati wrote: If anyone got hurt by my words,I m sorry 4 that
Don't worry about it - nobody got hurt in the cross fire, and a 5 for the sentiment.
|
|
|
|
|
I have an application which communicate with the device using httpWebrequest. i need to use AutomaticDecompression proprty..
there are two option for compression and decompression
1) Gzip &
2) Deflate
can anyone sugesst an article/ give some material to know which is efficient one to use..
means i need to find advantages and Disadvantages between GZip and Defalte?
please do help me..
|
|
|
|