Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 07:07 PM
KL KL is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Showdialog Help!!!

When i use showdialog, i have one button with a dialogresult as yes. when that button is pressed i want to be able to save data. i can do that, but when the form tries to close, it does so slowly, as if it's waiting to run through the steps of saving the data. the form will somewhat disappear and then after the save is done the entire form will disappear. what is going on? how can i fix this?

for ex i have...

result = myform.dialogresult

if result = dialogresult.Yes then
confirmDialog.disableTimer()
confirmDialog.Dispose()
saveProc()
elseif....
 
Old December 15th, 2003, 05:22 PM
Authorized User
 
Join Date: Nov 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
if i understant what you want, just try this it's a fonctionnal example just modify it this one for your purpose.


        If MsgBox("A question", MsgBoxStyle.YesNo, "Question") = DialogResult.Yes Then
           function1(" test 1")
            function2(" test 2 ")
        Else
            function3(" test 3 ")
            function4(" test 4 ")
        End If


 I hope that will help you .

Exarkuun






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with ShowDialog() mori .NET Framework 2.0 0 August 21st, 2008 07:19 AM
Problem with form.ShowDialog() karveajit C# 1 October 6th, 2007 04:35 PM
Alternative of Form.ShowDialog(this) for .NET CF? arif_1947 VS.NET 2002/2003 0 November 9th, 2004 05:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.