Pop up box with Ok and Cancel choices, not working. Please Help.
Hello! I am trying to create a pop up box that allows users to choose Ok and Cancel (i'm just testing with Ok and Cancel for now). For some reason when I run it a CMD line pops up and closes very quickly, but i do not get errors. Here is my code:
private void button1_Click(object sender, EventArgs e)
PopupForm popup = new PopupForm();
DialogResult dialogresult = popup.ShowDialog();
if (dialogresult == DialogResult.OK)
Console.WriteLine("You clicked OK");
else if (dialogresult == DialogResult.Cancel)
Console.WriteLine("You clicked either Cancel or X button in the top right corner");
popup.Dispose();
Please help!
Thanks
- Rocketman123
Hi Rocketman123,
Per my understanding, you are developing a winform application, but in your code, I see "Console.WriteLine".
So please use MessageBox.Show() instead.
http://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k(System.Windows.Forms.MessageBox.Show);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5);k(DevLang-csharp)&rd=true
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
I have installed adobe flash player on my computer and this is not working please help
I have installed adobe flash player on my computer and this is not working please help
What is your operating system & version?
What is your web browser?
What means "not working"; what do you see instead of the expected Flash content? -
My headphones speakers and microphone are not working please help
hi i have had my hp windows 7 lap top for 2 years and never had a problme but recently my speakers and microphone are not working even if i put in my headphones i have installed new audio drivers checked my sound settings and did a restore to a date and a factory reset and still no sound ( my speakers say there working the geen bar goes up and down showing the volume but still no sound) please help me thanks
Hi,
Please use the following instructions to check and fix:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01912228&cc=ad&dlc=en&lc=en&jumpid=reg_r1002_us...
Good luck.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Since I have updated my software, my imessage and facetime is not activating. I have tried to reset the phone, holding the lock button and the home button, trying to connect it under different wifi. Nothing seems to be working, it is really frustrating as I am a big user of facetime & imessage and many of my messages are not being recieved due to imessage not working. If anyone has anyother ideas or tips how to help me out I would really really appreciate it!!
ThanksHello Sophia,
Thank you for the details of the issue you are experiencing with iMessage. If you are still experiencing the same issue, I recommend the following article:
iOS: Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
Thank you for using Apple Support Communities.
Best,
Sheila M. -
I opened my I pad and for the first time it's asking me to show my yahoo password and I try and it does not work
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
Setting up and troubleshooting Mail
http://www.apple.com/support/ipad/assistant/mail/
Why Does My iPad Say "Cannot Connect to Server"?
http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
iPad Mail
http://www.apple.com/support/ipad/mail/
Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts Tap on the Account, then on the red button that says Remove Account.
Cheers, Tom -
I am trying to download itunes to my computer, when i hithe download button all it does is go to the "now that you have downloaded itunes" screen.....NOTHING HAS BEEN DOWNLOADED!!!!!!!!!......i have been trying for 2 days to do this, please help.....Thanks
i have the same problem, i have a windows 7 and the little screen comes up saying statues: processing additional packages help us
-
My iPhone got stolen and FindMyiPhone does not work PLEASE HELP!
Hello there.
This is my first post and I got a question.
Here's my story
My iPhone 3GS got stolen this week and I had "FindmyiPhone" (iOS 5.0.1) configured, but when I try to locate my iPhone it will show up as "offline".
I've once heared you can trace your iPhone by an EMEI or UPC number or something like that.
Do you guys know more about that so I can trace down my iPhone and can show it the police?
Thanks!
Kind regards,
RenzeauI just got my macbook pro stolen last night. the theive opened it and I got the email from findmyiphone. I can see which house it is at, but the thing is cops can't help. Im still watching it on my iphone waiting for them to ope it again so I can see its location. But Im already ****** as $%#% because 911 told me that they cant keep following a missing laptop.
so that was my story, right now my macbook is showing as red also. But keep watching it because they have to turn it on eventually and as long as you check email me when found on icloud.com then you will get an email. Or you can also keep watching on your computer.
So again go on icloud.com and sign in with the itunes account/email that you use on your iphone, you'll see the find my iPhone option there! -
I bought 2 same plan for Lightroom accidentally and need to terminate and cancel both of them,please help me
Unfortunately, you will have to contact Adobe directly to do this sort of thing, with the best bet being by phone. They may, or may not, be willing to refund you your purchase cost.
-
please helpme i block my ipod touch second generation and forget the code, try putting the code so many times that now says connect to itunes, I connect but will not let me do anything that tells me this should unlock with key and I should do for Please help!. thanks
Place the iPOd in recovery mode and then restore. For recovery mode:
iPhone and iPod touch: Unable to update or restore -
I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?
Hey tulgan,
This link will provide information on what to do after you change your Apple ID:
Apple ID: What to do after you change your Apple ID
http://support.apple.com/kb/HT5796
Welcome to Apple Support Communities!
Take care,
Delgadoh -
i am having bugs with the ios 5, after it got the update it is unable to make outgoing calls. in-place the incoming and outgoing texts are working please help me asap...!
Sometimes and this is network dependant if they suspect the phone to be lost or stolen as in this case with change of Sim card and provider then the origonal network can and some will block the phone untill you have rang them and proven it's not the case or if you have bough this 2nd hand then the origonal seller may have stopped paying the contract bill and thus the phone is blocked
-
My ipad turns off randomly and doesnt turn back on and wont restore with itunes and i tried holding the power and home button down and i see a faint apple logo than it disappears and still does not operate please help solve this issue
i have the same problem...my ipod is 4th generation?uggghhhhh
-
All my old tv shows are not working please help my computer sed I have to Atheris 5 computers to play all my old tv shows I Pade for with eney Itunas cards.
What do y mean by not work?
What happens when y try to play them on yur iPod?
What happens when yo try to play them in iTunes on yur computer?
If you get a message what is the exact wording of the message?
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Some countries do not allow redownloads some kinds of media -
After I updated my new Ipad with IOS 6, now Map& Dictation icon are not working. please help me
Thank you wjsten for your soon reply. Unfortunately on these days I'm in a country that Apple don't have any retail store here and for sake of time I prefer to fix it myself to DHL it to the nearest country to use its warranty. Do you have any idea how can I fix it? Do you think it's a software issue?
-
I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!
You mean an image such as a scanned document?
If that is the case, the file doesn't contain any text for Reader Out Loud to read. In order to fix that, you would need an application such as Adobe Acrobat that does Optical Character Recognition to convert the images to actual text.
You can also try to export the file as a Word document or something else using ExportPDF which I believe offers OCR and is cheaper than Acrobat.
Maybe you are looking for
-
How can I access Advanced Javascript Settings?
I'm aware that, in recent versions of Firefox, the ability to disable Javascript has been removed. I don't intend to re-open discussion of that particular decision. But removing that option has also removed access to the Advanced Javascript Settings
-
Confirmation with errors in calc. actual costs for PM-order
Hi, We have a PM-order with notifications and good movements that has tecnical completion status and is already settled. So we want to set it with bussines completion status, but an error arises: "Unprocessed future change recs for order 5009385 prev
-
OS 10.6.3 & DVD burning failure
Not too long ago I downloaded and installed an update to Snow Leopard. Since that time I have , once again, been unable to successfully burn DVDs. CDs will burn just fine but the internal optical drive and my external LaCie optical drive will not bur
-
Smart Object goes to Preview not Illus
I recently upgraded to Maverick. I have found to my frustration that when I click on an Illustrator file that it opens as a pic in Mac's Preview - which I don't want. Now, worst of all, if I click on a smart object in Photoshop it should take me to
-
Iphoto folders(organized) transferred to photoshop?
Due to my occupation I have to use a PC. I have photoshop on both Mac and PC. 1. Is there any way to transfer my iphoto folders and pics to windows and keep the organization I have? 2. Is there anyway to keep organization of iphoto folders and pics a