¡@

Home 

c# Programming Glossary: close

Design - Where should objects be registered when using Windsor

http://stackoverflow.com/questions/1410719/design-where-should-objects-be-registered-when-using-windsor

In a desktop app that would be in the Main method or very close to it In an ASP.NET including MVC application that would be..

How to properly clean up Excel interop objects

http://stackoverflow.com/questions/158706/how-to-properly-clean-up-excel-interop-objects

Excel.exe process is still in the background even after I close Excel. It is only released once my application is manually closed... Excel. It is only released once my application is manually closed. Anyone realize what I am doing wrong or has an alternative..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

before it's opened the SqlTableAdapter will open and close the connection effectively finishing the transaction for you..

How to stop BackgroundWorker on Form's Closing event?

http://stackoverflow.com/questions/1731384/how-to-stop-backgroundworker-on-forms-closing-event

... never returns also understandably. Any ideas how do I close this app without getting the exception or the deadlock Following.. and set a flag to indicate that the user requested a close. Then check that flag in the BGW's RunWorkerCompleted event..

What NoSQL solutions are out there for .NET? [closed]

http://stackoverflow.com/questions/1777103/what-nosql-solutions-are-out-there-for-net

NoSQL solutions are out there for .NET closed What NoSQL solutions are out there for .NET c# .net nosql.. that needs to be done since it's API is already a close match to the Lists and in memory data structures your program..

C# webbrowser Ajax call

http://stackoverflow.com/questions/18333459/c-sharp-webbrowser-ajax-call

want to implement Feature Control to bring its behavior as close to IE as possible particularly FEATURE_BROWSER_EMULATION . Hopefully..

Will using 'var' affect performance?

http://stackoverflow.com/questions/356846/will-using-var-affect-performance

does using the 'var' keyword take and would it be even close to having a measurable level on the performance of the code..

When should I dispose of a data context

http://stackoverflow.com/questions/389822/when-should-i-dispose-of-a-data-context

appears to be a memory leak. The logic that automatically closes the DataContext connection can be tricked into leaving the.. to the end of a resultset triggers the connection to close. If the application uses IEnumerable's MoveNext method instead..

How do I save a stream to a file?

http://stackoverflow.com/questions/411592/how-do-i-save-a-stream-to-a-file

summary Copies the contents of input to output. Doesn't close either stream. summary public static void CopyStream Stream..

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

MVVM Newbie how should the ViewModel close the form I'm trying to learn WPF and the MVVM problem but have.. MessageBox and all is fine The login was valid we need to close the Login form and have it return true as its DialogResult ..... knows nothing about the actual view so how can it close the view and tell it to return a particular DialogResult I could..

Use of Application.DoEvents()

http://stackoverflow.com/questions/5181777/use-of-application-doevents

3 feet in front of the monitor. The user could for example close the main window while the loop that calls DoEvents is running... the user cannot do anything to mess up the logic. Both the close the window and start the job again failure modes are solved...

Creating a blocking Queue<T> in .NET?

http://stackoverflow.com/questions/530211/creating-a-blocking-queuet-in-net

queue return item edit In reality you'd want a way to close the queue so that readers start exiting cleanly perhaps something..

jQuery UI Dialog with ASP.NET button postback

http://stackoverflow.com/questions/757232/jquery-ui-dialog-with-asp-net-button-postback

jquery ui postback share improve this question You are close to the solution just getting the wrong object. It should be..

ExecuteReader requires an open and available Connection. The connection's current state is Connecting

http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren

many identical connections will be repeatedly opened and closed. To minimize the cost of opening connections ADO.NET uses an.. connections since actually they aren't created opened and closed at all. This is only a flag for the connection pool to know.. in VB.NET Always create open in case of Connections use close and dispose them where you need them f.e. in a method use the..

How can I make a .Net Winforms application that only runs in the System Tray?

http://stackoverflow.com/questions/995195/how-can-i-make-a-net-winforms-application-that-only-runs-in-the-system-tray

Does closing the application from the system tray properly close any open child forms Does the application enforce that only..

How to start WinForm app minimized to tray?

http://stackoverflow.com/questions/1730731/how-to-start-winform-app-minimized-to-tray

mAllowVisible ContextMenu's Show command used bool mAllowClose ContextMenu's Exit command used bool mLoadFired Form was shown.. void OnFormClosing FormClosingEventArgs e if mAllowClose this.Hide e.Cancel true base.OnFormClosing e private void.. object sender EventArgs e mAllowClose mAllowVisible true if mLoadFired Show Close Note a wrinkle..

How to stop BackgroundWorker on Form's Closing event?

http://stackoverflow.com/questions/1731384/how-to-stop-backgroundworker-on-forms-closing-event

in the BGW's RunWorkerCompleted event handler and call Close if it is set. protected override void OnFormClosing FormClosingEventArgs.. this.Enabled false e.Cancel true mClosePending true return base.OnFormClosing e void backgroundWorker1_RunWorkerCompleted..

What does the tilde (~) mean in C#?

http://stackoverflow.com/questions/188688/what-does-the-tilde-mean-in-c

class. Dispose It is preferable to dispose of objects in a Close or Dispose method that can be called explicitly by the user..

Kill child process when parent process is killed

http://stackoverflow.com/questions/3342941/kill-child-process-when-parent-process-is-killed

Dispose bool disposing if m_disposed return if disposing Close m_disposed true public void Close Win32.CloseHandle m_handle.. return if disposing Close m_disposed true public void Close Win32.CloseHandle m_handle m_handle IntPtr.Zero public bool.. disposing Close m_disposed true public void Close Win32.CloseHandle m_handle m_handle IntPtr.Zero public bool AddProcess IntPtr..

Question about terminating a thread cleanly in .NET

http://stackoverflow.com/questions/3632149/question-about-terminating-a-thread-cleanly-in-net

is blocked on a call to Send or Receive then calling Close will interrupt the socket on whatever blocking call it was in..

How do I extract a string of text that lies between two (parenthesis) using .NET?

http://stackoverflow.com/questions/378415/how-do-i-extract-a-string-of-text-that-lies-between-two-parenthesis-using-net

or more occurrences of the aforementioned non ' ' char # Close the capturing group # Ends with a ' ' character share improve..

parse and execute JS by C#

http://stackoverflow.com/questions/4744105/parse-and-execute-js-by-c-sharp

GetScriptState out ScriptState scriptState PreserveSig int Close PreserveSig int AddNamedItem string name ScriptItem flags PreserveSig.. Uninitialized 0 Started 1 Connected 2 Disconnected 3 Closed 4 Initialized 5 private const int TYPE_E_ELEMENTNOTFOUND unchecked..

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

the purity of the MVVM pattern and had the View publish a Closed event and expose a Close method. The ViewModel would then just.. and had the View publish a Closed event and expose a Close method. The ViewModel would then just call view.Close . The.. a Close method. The ViewModel would then just call view.Close . The view is only known via an interface and wired up via an..

Creating a blocking Queue<T> in .NET?

http://stackoverflow.com/questions/530211/creating-a-blocking-queuet-in-net

just returns rather than blocking bool closing public void Close lock queue closing true Monitor.PulseAll queue public bool..

Download/Stream file from URL - asp.net

http://stackoverflow.com/questions/5596747/download-stream-file-from-url-asp-net

What is the best workaround for the WCF client `using` block issue?

http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue

. Long story short when Dispose is called the client's Close method fires but throws an error because it's in a faulted state... clients and use them something like this try ... client.Close catch CommunicationException e ... client.Abort catch TimeoutException.. bool success false try codeBlock T proxy proxy.Close success true finally if success proxy.Abort Which then..

Calling null on a class vs Dispose()

http://stackoverflow.com/questions/574019/calling-null-on-a-class-vs-dispose

So if you open a FileStream but forget to call Dispose or Close the finalizer will eventually release the underlying file handle..

How do I convert Word files to PDF programmatically?

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically

ref oMissing ref oMissing ref oMissing ref oMissing Close the Word document but leave the Word application open. doc has.. be cast to type _Document so that it will find the correct Close method. object saveChanges WdSaveOptions.wdDoNotSaveChanges.. WdSaveOptions.wdDoNotSaveChanges _Document doc .Close ref saveChanges ref oMissing ref oMissing doc null word has..

Compression/Decompression string with C#

http://stackoverflow.com/questions/7343465/compression-decompression-string-with-c-sharp

Compress sw.Write byteArray 0 byteArray.Length Close DO NOT FLUSH cause bytes will go missing... sw.Close Transform.. Close DO NOT FLUSH cause bytes will go missing... sw.Close Transform byte zip data to string byteArray ms.ToArray System.Text.StringBuilder.. foreach byte item in byteArray sB.Append char item ms.Close sw.Dispose ms.Dispose return sB.ToString public static string..

Does Stream.Dispose always call Stream.Close (and Stream.Flush)

http://stackoverflow.com/questions/911408/does-stream-dispose-always-call-stream-close-and-stream-flush

Stream.Dispose always call Stream.Close and Stream.Flush If I have the following situation StreamWriter.. MySW.Write blah finally if MySW null MySW.Flush MySW.Close MySW.Dispose Can I just call MySW.Dispose and skip the Close.. MySW.Dispose Can I just call MySW.Dispose and skip the Close even though it is provided Are there any Stream implimentations..

ExecuteReader requires an open and available Connection. The connection's current state is Connecting

http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren

promotionTitle promotionUrl dr.Dispose sql.Dispose CloseConnection return promotion May I know what might have gone wrong.. of opening a new connection. When the application calls Close on the connection the pooler returns it to the pooled set of..