¡@

Home 

c# Programming Glossary: dialogresult

Calling ShowDialog in BackgroundWorker

http://stackoverflow.com/questions/10498555/calling-showdialog-in-backgroundworker

e MyForm f new MyForm f.FilesToAddDelete .. DialogResult result f.ShowDialog if No... return else keep working... c#.. new ConfirmationForm return confirmationForm.ShowDialog DialogResult.Yes And the background worker would do this I assume that mainForm..

C# how to browse for folder

http://stackoverflow.com/questions/1420408/c-sharp-how-to-browse-for-folder

strPath string strCaption Select a Directory and folder. DialogResult dlgResult Shell32.ShellClass shl new Shell32.ShellClass Shell32.Folder2.. 0 System.Reflection.Missing.Value if fld null dlgResult DialogResult.Cancel else strPath fld.Self.Path dlgResult DialogResult.OK.. DialogResult.Cancel else strPath fld.Self.Path dlgResult DialogResult.OK c# winforms share improve this question from msdn private..

Passing data between WPF forms

http://stackoverflow.com/questions/14433935/passing-data-between-wpf-forms

using ShowDialog and a public method then testing that the DialogResult is true then reading the value from the method. i.e. if newWindow.ShowDialog..

MVVM Light & WPF - Binding Multiple instances of a Window to a ViewModel

http://stackoverflow.com/questions/16993433/mvvm-light-wpf-binding-multiple-instances-of-a-window-to-a-viewmodel

Note The method used in this example to set the non DP DialogResult from the modal window is not MVVM friendly cos it uses code.. is not MVVM friendly cos it uses code behind to set the DialogResult property on a Window.Closing event which should be avoided If..

Open a second form while automatically closing the first form

http://stackoverflow.com/questions/2020261/open-a-second-form-while-automatically-closing-the-first-form

false using var login new LoginForm if login.ShowDialog DialogResult.OK return Application.Run new Form1 Your LoginForm should set.. Application.Run new Form1 Your LoginForm should set its DialogResult property to OK if it detected a proper login. share improve..

c# (WinForms-App) export DataSet to Excel

http://stackoverflow.com/questions/373925/c-sharp-winforms-app-export-dataset-to-excel

String fileName bool openAfter export a DataTable to Excel DialogResult retry DialogResult.Retry while retry DialogResult.Retry try.. openAfter export a DataTable to Excel DialogResult retry DialogResult.Retry while retry DialogResult.Retry try using ExcelWriter.. to Excel DialogResult retry DialogResult.Retry while retry DialogResult.Retry try using ExcelWriter writer new ExcelWriter fileName..

Good or bad practice for Dialogs in wpf with MVVM?

http://stackoverflow.com/questions/3801681/good-or-bad-practice-for-dialogs-in-wpf-with-mvvm

for my dialogviewmodel to implement. public interface IDialogResultVMHelper event EventHandler DialogResultTrueEvent Whenever my.. public interface IDialogResultVMHelper event EventHandler DialogResultTrueEvent Whenever my viewmodel think its time for dialogresult.. DependencyPropertyChangedEventArgs e var d e.NewValue as IDialogResultVMHelper if d null return d.DialogResultTrueEvent DialogResultTrueEvent..

How to change button text for Yes & No buttons on MessageBox.Show Dialog?

http://stackoverflow.com/questions/4264664/how-to-change-button-text-for-yes-no-buttons-on-messagebox-show-dialog

I dont know how to change the button text..Here is my code DialogResult dlgResult MessageBox.Show Patterns have been logged successfully..

How can I close a login form and show the main form without my application closing?

http://stackoverflow.com/questions/4759334/how-can-i-close-a-login-form-and-show-the-main-form-without-my-application-closi

it closes . When the login dialog closes you'll check its DialogResult property to see if the login was successful. If it was you can.. Main LoginForm fLogin new LoginForm if fLogin.ShowDialog DialogResult.OK Application.Run new MainForm else Application.Exit share..

convert windows form to pdf file

http://stackoverflow.com/questions/4813341/convert-windows-form-to-pdf-file

true PrintDialog1.Document printDocument1 DialogResult result PrintDialog1.ShowDialog if result DialogResult.OK .. DialogResult result PrintDialog1.ShowDialog if result DialogResult.OK printDocument1.Print public Form1 InitializeComponent..

WPF MVVM Newbie - how should the ViewModel close the form?

http://stackoverflow.com/questions/501886/wpf-mvvm-newbie-how-should-the-viewmodel-close-the-form

to close the Login form and have it return true as its DialogResult ... The problem is the ViewModel knows nothing about the actual.. can it close the view and tell it to return a particular DialogResult I could stick some code in the CodeBehind and or pass the View..

Sample using MSCHART in C#

http://stackoverflow.com/questions/509555/sample-using-mschart-in-c-sharp

EventArgs ea SimplerDialogBox dlg new SimplerDialogBox DialogResult dr dlg.ShowDialog Console.WriteLine dr c# forms mschart..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

form.InputText TextToHighlight if form.ShowDialog DialogResult.Cancel TextToHighlight form.InputText SaveOptions catch.. In this form place a TextBox and an Ok Button . Set the DialogResult of the button to Ok . Place this code in the form code using..

Customising the browse for folder dialog to show the path

http://stackoverflow.com/questions/576741/customising-the-browse-for-folder-dialog-to-show-the-path

Show the FolderBrowserDialog. DialogResult result dlg1.ShowDialog if result DialogResult.OK txtExtractDirectory.Text.. DialogResult result dlg1.ShowDialog if result DialogResult.OK txtExtractDirectory.Text dlg1.SelectedPath Capabilities..

WindowsMobile: Application Exits after handling Exception from DialogForm

http://stackoverflow.com/questions/724644/windowsmobile-application-exits-after-handling-exception-from-dialogform

looks like this try using DialogForm frm new DialogForm DialogResult r frm.ShowDialog label1.Text r.ToString catch Exception ex label1.Text..

use unassigned local variable 'multidimension'

http://stackoverflow.com/questions/7669026/use-unassigned-local-variable-multidimension

get the browsed file and get sure it is not curropted try DialogResult result openFileDialog1.ShowDialog if result DialogResult.OK.. DialogResult result openFileDialog1.ShowDialog if result DialogResult.OK using StreamReader sr new StreamReader openFileDialog1.FileName..

Safely disposing Excel interop objects in C#?

http://stackoverflow.com/questions/9962157/safely-disposing-excel-interop-objects-in-c

OpenFileDialog openFileDialog1 new OpenFileDialog DialogResult result openFileDialog1.ShowDialog Show the dialog. if result.. openFileDialog1.ShowDialog Show the dialog. if result DialogResult.OK Test result. myBigFile openFileDialog1.FileName Excel.Application..