¡@

Home 

c# Programming Glossary: my

Create Excel (.XLS and .XLSX) file from C# [closed]

http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp

so I don't have to add any third party dependencies to my code and I would like to avoid using Excel directly to create.. am still looking at these to see the best alternative for my solution. Interop will work but it requires Excel to be on the..

How to properly clean up Excel interop objects

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

C# ApplicationClass and have placed the following code in my finally clause while System.Runtime.InteropServices.Marshal.ReleaseComObject.. even after I close Excel. It is only released once my application is manually closed. Anyone realize what I am doing.. for the Worksheets COM object which didn't get released by my code because I wasn't aware of it and was the cause why Excel..

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.. my .NET App to run as administrator on Windows 7 Once my program is installed on a client machine how to force my program.. my program is installed on a client machine how to force my program to run as administrator on Windows 7 c# .net windows..

Deserialize JSON into C# dynamic object?

http://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-object

here . I modified the code slightly to fix a bug and suit my coding style. All you need is this code and a reference to System.Web.Extensions..

Sending email in .NET through Gmail

http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail

email in .NET through Gmail Instead of relying on my host to send email I was thinking of sending the messages though.. send email I was thinking of sending the messages though my Gmail account. The emails are personalized emails to the bands.. The emails are personalized emails to the bands I play on my show. Is it possible to do c# .net email gmail share improve..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

of that I've ended using a lot of interfaces. One of my goals is to program to an interface not an implementation. What.. public class Implementation IMyInterface _MyObj MyClass _myCls1 MyClass _myCls2 public Implementation _MyObj new MyClass.. IMyInterface _MyObj MyClass _myCls1 MyClass _myCls2 public Implementation _MyObj new MyClass What is the difference..

How to use HTML Agility pack

http://stackoverflow.com/questions/846994/how-to-use-html-agility-pack

valid. That's why I wanted to use it. How do I use it in my project My project is in C#. c# html html agility pack share..

Is there a way to check if a file is in use?

http://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use

access 1 image file. Most of the time it works but if my computer's running fast it will try to access the file before.. process . I would like to find a way around this but all my Googling has only yielded creating checks by using exception.. checks by using exception handling. This is against my religion so I was wondering if anyone has a better way of doing..

decimal vs double! - Which one should I use and when? [duplicate]

http://stackoverflow.com/questions/1165761/decimal-vs-double-which-one-should-i-use-and-when

I read somewhere that doubles sometimes lose precision. My question is when should a use a double and when should I use..

How to create and connect custom user buttons/controls with lines using windows forms

http://stackoverflow.com/questions/15819318/how-to-create-and-connect-custom-user-buttons-controls-with-lines-using-windows

of the example I created for A similar requirement My intention is to show that winforms is no longer an option for..

TransactionScope automatically escalating to MSDTC on some machines?

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

5 Windows Vista x86 SQL2005 Dev 6 Windows XP X86 SQL2005 My Home PC Windows Vista Home Premium x86 SQL2005 I should add..

Dependency Inject (DI) “friendly” library

http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library

just to get to the real classes they want to use. My current thinking is to provide a few DI registration modules.. Fluent Builders. Something like this public class MyFacade private IMyInterface dep public MyFacade this.dep new.. Something like this public class MyFacade private IMyInterface dep public MyFacade this.dep new DefaultDependency..

Creating application shortcut in a directory

http://stackoverflow.com/questions/234231/creating-application-shortcut-in-a-directory

Application.ExecutablePath shortcut.Description My Shorcut Name Here shortcut.DisplayMode ShellLink.LinkDisplayMode.edmNormal..

Best Practice: Initialize class fields in constructor or at declaration?

http://stackoverflow.com/questions/24551/best-practice-initialize-class-fields-in-constructor-or-at-declaration

to one approach. c# java share improve this question My rules 1. Don't initialize with the default values in declaration..

Tips for optimizing C#/.NET programs [closed]

http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs

had no idea what to do about it so these tips are useful. My point for even posting this is to have a place for common bottle..

Repository pattern tutorial in C# [closed]

http://stackoverflow.com/questions/3175/repository-pattern-tutorial-in-c-sharp

Domain Driven Design and Patterns by Jimmy Nilsson My blog post Using the unit of work per request pattern in ASP.NET..

How to read embedded resource text file

http://stackoverflow.com/questions/3314140/how-to-read-embedded-resource-text-file

an embedded resource txt file and return it as a string My current script uses a windows form and texbox that allows the.. textBox1.Text StreamReader FileReader new StreamReader @ C MyFile.txt string FileContents FileContents FileReader.ReadToEnd.. stringToReplace StreamWriter FileWriter new StreamWriter @ MyFile.txt FileWriter.Write FileContents FileWriter.Close c#..

How to detect Windows 64-bit platform with .NET?

http://stackoverflow.com/questions/336633/how-to-detect-windows-64-bit-platform-with-net

programmatically whether you are running on 64 bit Windows My solution bool is64BitProcess IntPtr.Size 8 bool is64BitOperatingSystem..

Panel not getting focus

http://stackoverflow.com/questions/3562235/panel-not-getting-focus

program using C# . And I ran into trouble once again. My problem is that I want to process the keyboard input to move..

Regarding IE9 WebBrowser control

http://stackoverflow.com/questions/4612255/regarding-ie9-webbrowser-control

control will exhibit all properties and functions of IE9 My concern is I want to render some SVG graphics on it. Thanks..

When to use struct in C#?

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c

in C# When should you use struct and not class in C# My conceptual model is that structs are used in times when the..

How do I get the path of the assembly the code is in?

http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in

Edit People seem to be misunderstanding what I'm asking. My test library is located in say c projects myapplication daotests..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

should take care of that for you. For example public class MyCollection IDisposable private List String _theList new List.. _theList.clear _theDict.clear _theList null _theDict null My question is does this make the garbage collector free memory.. does this make the garbage collector free memory used by MyCollection any faster than it normally would edit So far people..

jQuery UI Dialog with ASP.NET button postback

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

e.pageX 10 e.pageY 10 jQuery '#dialog' .dialog 'open' My div div id dialog style text align left display none asp Button..

C# Events and Thread Safety

http://stackoverflow.com/questions/786383/c-sharp-events-and-thread-safety

avoid a null reference exception under all circumstances. My point is that this particular null reference exception can only..

How to use HTML Agility pack

http://stackoverflow.com/questions/846994/how-to-use-html-agility-pack

use HTML Agility pack How do I use the HTML Agility Pack My XHTML document is not completely valid. That's why I wanted.. why I wanted to use it. How do I use it in my project My project is in C#. c# html html agility pack share improve..

C# Finalize/Dispose pattern

http://stackoverflow.com/questions/898828/c-sharp-finalize-dispose-pattern

a while now. And I am still confused about some issues. My questions below I know that you only need a finalizer if you..

Double ToString - No Scientific Notation [duplicate]

http://stackoverflow.com/questions/14964737/double-tostring-no-scientific-notation

answer. People on this website get way too power happy. MY SOLUTION In case it's useful to anyone summary Converts the..

Using the instance version of CreateMap and Map with a WCF service?

http://stackoverflow.com/questions/1668962/using-the-instance-version-of-createmap-and-map-with-a-wcf-service

I return via LINQ a collection of records THIS IS MY SOURCE so I entered a new field on every record that has the..

Accessing Database Entities from Controller [closed]

http://stackoverflow.com/questions/17556967/accessing-database-entities-from-controller

Hmmm ... it is difficult... the desparate cashier says. IS MY PIZZA ALREADY IN THE OVEN suddenly it shouts through the kitchen..

Convert all first letter to upper case, rest lower for each word

http://stackoverflow.com/questions/1943273/convert-all-first-letter-to-upper-case-rest-lower-for-each-word

I need to convert. Currently the text looks like THIS IS MY TEXT RIGHT NOW I want to convert it to This Is My Text Right.. regex share improve this question string s THIS IS MY TEXT RIGHT NOW s System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase..

Access ASP.NET control from static [WebMethod] (JS ajax call)

http://stackoverflow.com/questions/2133194/access-asp-net-control-from-static-webmethod-js-ajax-call

List CustomListControl.IListItem GetListItems CAN'T GET TO MY CONTROL need to return myContorl.Items return null c# asp.net..

Random number generator in C# - unique values

http://stackoverflow.com/questions/2351308/random-number-generator-in-c-sharp-unique-values

100 Number of elements 100 IMPORTANT PLZ WORK FURTHER ON MY IDEA my idea public void FillArray int A int Range for int I..

Why do I need to use the Rfc2898DeriveBytes class (in .NET) instead of directly using the password as a key or IV?

http://stackoverflow.com/questions/2659214/why-do-i-need-to-use-the-rfc2898derivebytes-class-in-net-instead-of-directly

key of My AES key sucks 16 bytes for AES 128 and with MY AES KEY SUCKS a related key attack might be possible. The currently..

How do I check if a number is positive or negative in c#?

http://stackoverflow.com/questions/4099366/how-do-i-check-if-a-number-is-positive-or-negative-in-c

number is positive or negative Thanks. Edit APOLOGIES FOR MY QUESTION. I was very very tired I had a liquid lunch if you..

Update a progressbar from another thread

http://stackoverflow.com/questions/5789926/update-a-progressbar-from-another-thread

myBackgroundWorker.ReportProgress 1 PROCESSING MY STUFF HERE myBackgroundWorker.ReportProgress 1 private void..

How to get the EXIF data from a file using C#

http://stackoverflow.com/questions/58649/how-to-get-the-exif-data-from-a-file-using-c-sharp

photos and for example sorts them into dated folders using MY dating conventions dammit... . Does anyone know a relatively..

FileInfo Exceptions

http://stackoverflow.com/questions/7184472/fileinfo-exceptions

sw.WriteLine s sw.Flush sw.Close fileStream.Close HERE IS MY OUTPUT WHENEVER I HAVE CREATED A NEW FILE OnCreate Could not..

C# - Capturing the Mouse cursor image

http://stackoverflow.com/questions/918990/c-sharp-capturing-the-mouse-cursor-image

the the mouse cursor also which is desirable for me MY PROBLEM Code works fine when the mouse cursor is the normal.. version of it instead of the blank white one would expect. MY QUESTION How can I capture the mouse cursor image when the image..