¡@

Home 

c# Programming Glossary: app

Elevating process privilege programatically?

http://stackoverflow.com/questions/133379/elevating-process-privilege-programatically

from an elevated command prompt works running from my app using the above code does not. I assume I'm dealing with some.. user if this is undesirable for example because it would happen in the middle of a lengthy process you'll need to run your.. host process with elevated permissions by embedding the appropriate manifest in your application to require the 'highestAvailable'..

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

maintainable because You don't have to recompile your C# app whenever you want to change some SQL You'll end up recompiling.. 'transparently' change the SQL out from underneath your app is pretty small on the whole You end up reusing SQL code. Programming.. it for you. I believe they're called Object Relational Mappers and are pretty common these days. Code repetition is the..

How to properly clean up Excel interop objects

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

even after I close Excel. It is only released once my application is manually closed. Anyone realize what I am doing wrong.. improve this question Excel does not quit because your app is still holding references to COM objects. I guess you're invoking.. What I didn't know was that internally C# created a wrapper for the Worksheets COM object which didn't get released by..

How to stop BackgroundWorker on Form's Closing event?

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

returns also understandably. Any ideas how do I close this app without getting the exception or the deadlock Following are..

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

the problem of creating add and edit dialogs for my wpf app. All I want to do in my code was something like this. I mostly.. code was something like this. I mostly use viewmodel first approach with mvvm ViewModel which calls a dialog window var result.. least I have to create a DataTemplate in my resource file app.xaml or something DataTemplate DataType x Type DialogViewModel..

Performance differences between debug and release builds

http://stackoverflow.com/questions/4043821/performance-differences-between-debug-and-release-builds

3 This simple example is caught early by the compiler but happens at JIT time when other optimizations make this possible... when for example you profile the Debug build of your app and compare it to the Release build. That only really matters.. smart enough to know up front what is critical it can only apply the turn it to eleven dial for all the code. The effective..

How do I make a textbox that only accepts numbers?

http://stackoverflow.com/questions/463299/how-do-i-make-a-textbox-that-only-accepts-numbers

textbox that only accepts numbers I have a windows forms app with a textbox control that I want to only accept integer values... to increment and decrement the current value. Handle the appropriate keyboard events to prevent anything but numeric input...

How do I suspend painting for a control and its children?

http://stackoverflow.com/questions/487661/how-do-i-suspend-painting-for-a-control-and-its-children

At my previous job we struggled with getting our rich UI app to paint instantly and smoothly. We were using standard .Net.. stops controls drawing whilst you update them and can be applied IIRC to the parent containing panel. This is a very very..

Use of Application.DoEvents()

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

a way to allow the GUI to catch up with the rest of the app in much the same way that VB6's DoEvents does c# doevents .. modal without it freezing the rest of the windows in the app. Most programmers want to use DoEvents to stop their user interface.. it does something else. It disables all the windows in the application other than the dialog. Now that 3 feet problem is solved..

C# DLL config file

http://stackoverflow.com/questions/594298/c-sharp-dll-config-file

DLL config file Im trying to add an app.config file to my DLL but all attempts have failed. According.. ConnectionString However when I copy the app.config file to my console application it works fine. Any ideas.. However when I copy the app.config file to my console application it works fine. Any ideas c# app config share improve..

How can I detect the encoding/codepage of a text file

http://stackoverflow.com/questions/90838/how-can-i-detect-the-encoding-codepage-of-a-text-file

can I detect the encoding codepage of a text file In our application we receive text files .txt .csv etc. from diverse sources... intelligence you can guess this. I've created a small app that the user can use to open the file with and enter a text.. the file with and enter a text that user knows it will appear in the file when the correct codepage is used. Loop through..

Using Side-by-Side assemblies to load the x64 or x32 version of a DLL

http://stackoverflow.com/questions/108971/using-side-by-side-assemblies-to-load-the-x64-or-x32-version-of-a-dll

assembly install a custom assembly resolver in the current AppDomain Now when the main application needs the platform specific.. static class Bootstrapper public static void Main System.AppDomain.CurrentDomain.AssemblyResolve CustomResolve App.Run private.. CustomResolve App.Run private static System.Reflection.Assembly CustomResolve..

Displaying the build date

http://stackoverflow.com/questions/1600962/displaying-the-build-date

The plan is to put the build date there instead So App built on 21 10 2009 for example. I'm struggling to find a programmatic..

Using global keyboard hook (WH_KEYBOARD_LL) in WPF / C#

http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-c-sharp

call the CallNextHookEx or not. Which I use like this App.xaml Application ... Startup Application_Startup Exit Application_Exit.. the CallNextHookEx or not. Which I use like this App.xaml Application ... Startup Application_Startup Exit Application_Exit.. Which I use like this App.xaml Application ... Startup Application_Startup Exit Application_Exit ... App.xaml.cs public..

The breakpoint will not currently be hit. No symbols have been loaded for this document

http://stackoverflow.com/questions/2301216/the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-for-this-d

Hosting the Silverlight application in a ASP.NET Web Application Project. Silverlight Version 3.0. Added a LinqToSQL.. Added a LinqToSQL Class a WCF Service a Winform Tester Application Project in the Solution and a few Classes also as Projects.. message to appear in the IDE but it only affects the Web Appliaction i can debug the Silverlight and the Winform App. What..

How to force my .NET App to run as administrator on Windows 7?

http://stackoverflow.com/questions/2818179/how-to-force-my-net-app-to-run-as-administrator-on-windows-7

to force my .NET App to run as administrator on Windows 7 Once my program is installed.. works on VS2008 and higher Project Add New Item select Application Manifest File . Change the requestedExecutionLevel element..

How can I create a Product Key for my C# App

http://stackoverflow.com/questions/453030/how-can-i-create-a-product-key-for-my-c-sharp-app

can I create a Product Key for my C# App How can I create a Product Key for my C# Application I need.. for my C# App How can I create a Product Key for my C# Application I need to create a product or license key that I update..

Checking if Windows Application is running

http://stackoverflow.com/questions/4722198/checking-if-windows-application-is-running

if Windows Application is running how do i check if my C# windows application.. is any way to have a hash key or something to make my Application Unique thanks in advance. c# winforms share improve.. share improve this question public partial class App System.Windows.Application public bool IsProcessOpen string..

Model-View-Presenter in WinForms

http://stackoverflow.com/questions/4794121/model-view-presenter-in-winforms

control on the Winform as I also have a datagridview My App has a number of model classes with the same assembly. It also.. the view's contract that it wants tabular data. 3. My App has a number of model classes with the same assembly. It also..

C# DLL config file

http://stackoverflow.com/questions/594298/c-sharp-dll-config-file

ConnectionString from my DLL return ConfigurationManager.AppSettings ConnectionString However when I copy the app.config.. object you get back is tied to the configuration of the App Domain you are executing in rather than the particular assembly... are executing in rather than the particular assembly. The App Domain is bound to the root assembly which loaded the assembly..

Multithreading reference?

http://stackoverflow.com/questions/601558/multithreading-reference

Logging and Threading Made Easy with .NET Juice Up Your App with the Power of Hyper Threading Concurrency Hazards Solving..

Passing command line arguments in C#

http://stackoverflow.com/questions/653563/passing-command-line-arguments-in-c-sharp

C Documents and Settings All Users Start Menu Programs App name even if I add to the argument Any help Here is the code.. what I'm passing C WINDOWS Uninstaller.exe C Program Files Application name username C Documents and Settings All Users Start.. but it is the last in the first argument. C Program Files Application name remove the last ' ' This needs more explanation..

How can I update the current line in a C# Windows Console App?

http://stackoverflow.com/questions/888533/how-can-i-update-the-current-line-in-a-c-sharp-windows-console-app

can I update the current line in a C# Windows Console App When building a Windows Console App in C# is it possible to.. a C# Windows Console App When building a Windows Console App in C# is it possible to write to the console without having..

WCF Service or Web API

http://stackoverflow.com/questions/9502548/wcf-service-or-web-api

elements ASP.NET MVC website C# console application iPhone App To get all these separate applications talking to the database..

Launching a Desktop Application with a Metro-style app

http://stackoverflow.com/questions/9527644/launching-a-desktop-application-with-a-metro-style-app

a Desktop Application with a Metro style app Is there a way to launch a desktop.. false p.StartInfo.FileName C Path To App.exe p.Start Exp 2 Uses the ProcessStartInfo class to start new.. discovered this How to Start a external Program from Metro App . All the Metro style applications work in the highly sand boxed..