¡@

Home 

c# Programming Glossary: rk

How can I embed any file type into Microsoft Word using OpenXml 2.0

http://stackoverflow.com/questions/3322247/how-can-i-embed-any-file-type-into-microsoft-word-using-openxml-2-0

GIF JPG HTML etc.... What is a good way to get this to work for any file type in C# c# ms word word openxml openxml sdk.. fileInfo.Name .ToLower Microsoft.Win32.RegistryKey rk Microsoft.Win32.Registry.ClassesRoot.OpenSubKey ext if rk null.. rk Microsoft.Win32.Registry.ClassesRoot.OpenSubKey ext if rk null rk.GetValue Content Type null mime rk.GetValue Content..

Localizing enum descriptions attributes

http://stackoverflow.com/questions/569298/localizing-enum-descriptions-attributes

public string EnumDescription Enum enumerator string rk String.Format 0 . 1 enumerator.GetType enumerator string localizedDescription.. string localizedDescription _resources.GetString rk if localizedDescription null A localized string was not found..

Way to write on registry location

http://stackoverflow.com/questions/5927152/way-to-write-on-registry-location

to write on registry location work on C# window application.I want to write on registry.i know.. SOFTWARE Microsoft Windows CurrentVersion Run RegistryKey rk Registry.CurrentUser.OpenSubKey keyName true rk.SetValue abc.. rk Registry.CurrentUser.OpenSubKey keyName true rk.SetValue abc efd rk.Close For HKLM you need to do it with administrative..

How to get recommended programs associated with file extension in C#

http://stackoverflow.com/questions/6679385/how-to-get-recommended-programs-associated-with-file-extension-in-c-sharp

CurrentVersion Explorer FileExts . ext using RegistryKey rk Registry.CurrentUser.OpenSubKey baseKey @ OpenWithList if rk.. Registry.CurrentUser.OpenSubKey baseKey @ OpenWithList if rk null string mruList string rk.GetValue MRUList if mruList null.. baseKey @ OpenWithList if rk null string mruList string rk.GetValue MRUList if mruList null foreach char c in mruList.ToString..