archive-de.com » DE » A » ACAPIO.DE

Total: 146

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    Microsoft Access database from C Ein kleines Beispiel wie man auf eine Microsoft Access Datenbank in C zugreift OpenFileDialog dlg new OpenFileDialog dlg Filter Access Datei mdb mdb Alle Dateien if dlg ShowDialog DialogResult OK conn new OleDbConnection String connection Provider Microsoft ACE OLEDB 12 0 Data Source dlg FileName Persist Security Info True string sql SELECT FROM Table conn ConnectionString connection conn Open OleDbCommand cmd new OleDbCommand sql conn

    Original URL path: http://www.acapio.de/Programmierung/CSharp/Access_Database_from_CSharp/index.html (2016-04-25)
    Open archived version from archive


  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    the xml root summary private const String XML ROOT xml private static String lang public static String Lang get return AppSettings lang set AppSettings lang value summary Saves the settings summary public static void Save String appData GetSettingsPath XmlDocument doc new XmlDocument XmlElement root doc CreateElement XML ROOT save variables here CreateTextElement root doc CreateElement Lang Lang doc AppendChild root doc Save appData summary Loads the settings summary public static void Load String appData GetSettingsPath if File Exists appData Init XmlDocument doc new XmlDocument doc Load appData load variables here Lang GetSetting doc Lang Consts LANG DE summary Inits the settings with defaults summary public static void Init Init your variables here Lang Consts LANG DE s Save region InternalCode summary Creates a text element in the xml file summary param name root param param name node param param name text param private static void CreateTextElement XmlNode root XmlNode node string text node InnerText text root AppendChild node summary Gets the settings path if it not exists it is created summary returns returns private static String GetSettingsPath String appData Environment GetFolderPath Environment SpecialFolder ApplicationData appData Path Combine appData APP NAME if Directory Exists appData Directory CreateDirectory appData appData Path Combine appData SETTINGS FILENAME return appData summary Loads a node if the node cannot be found the default value is used summary param name settingName param param name defaultValue param private static String GetSetting XmlDocument doc String settingName String defaultValue String value try value doc SelectSingleNode XML ROOT settingName InnerText catch value defaultValue return value endregion You can add your own settings to the class like that private static String lang public static String Lang get return AppSettings lang set AppSettings lang value You also need to add the logic for saving and loading each property See Load and Save methods

    Original URL path: http://www.acapio.de/Programmierung/CSharp/App_Settings_example/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    QT XCode Webseiten HTML Server JavaScript Impressum Home Programmierung CSharp Get common paths C Get common paths Get application path summary Returns the application path summary returns returns public static string GetApplicationPath String s System Reflection Assembly GetExecutingAssembly CodeBase s System IO Path GetDirectoryName s s new Uri s LocalPath return s Get temp folder String tempPath Path GetTempPath Get appdata application data path String appData Environment GetFolderPath Environment SpecialFolder

    Original URL path: http://www.acapio.de/Programmierung/CSharp/Get_common_paths/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    textBoxLog SelectionStart textBoxLog Text Length textBoxLog ScrollToCaret This example will throw an exception as the thread cannot modify information on the UI thread Solution The solution is to define a delegate and a method public delegate void SetLog private void SetLog R textBoxLog Text buffer ToString textBoxLog SelectionStart textBoxLog Text Length textBoxLog ScrollToCaret In the original method we instantiate the delegate and invoke the delegate von the UI element public

    Original URL path: http://www.acapio.de/Programmierung/CSharp/Invoke_GUI_interaction_from_Thread/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    Program Files x86 Reference Assemblies Microsoft Framework NETFramework v4 0 allowDup target winexe out UI exe In exe dll Die Exe Datei in exe und alle im Verzeichnis vorhandenen dll Dateien werden in ui exe zusammengefast winexe gibt an dass es sich um ein Windows Programm mit Benutzeroberfläche handelt Das Ganze lässt sich auch in den Build Einstellungen automatisch generieren Hier ein Beispiel für ein Post Build Step ilmerge wildcards

    Original URL path: http://www.acapio.de/Programmierung/CSharp/ILMerge/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    CSharp Delphi Eclipse Java Lazarus Other PHP QT XCode Webseiten HTML Server JavaScript Impressum Home Programmierung CSharp AvalonEdit Avalon Edit Get text from current line Undo Transaction Get current text location Add Keyboard Shortcuts Werbung Please enable JavaScript to view

    Original URL path: http://www.acapio.de/Programmierung/CSharp/AvalonEdit/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    Programmierung CSharp AvalonEdit Get text from current line Get text from current line with AvalonEdit This snippets returns the content of the current line where the user has its cursor int offset AvalonEditor CaretOffset DocumentLine line AvalonEditor Document GetLineByOffset offset

    Original URL path: http://www.acapio.de/Programmierung/CSharp/AvalonEdit/Get_text_from_current_line/index.html (2016-04-25)
    Open archived version from archive

  • Acapio! - Anleitungen, Tutorials, Tipps, HowTos aller Art
    Webseiten HTML Server JavaScript Impressum Home Programmierung CSharp AvalonEdit Undo Transaction Undo Transactions with Avalon Editor You can group undo s with the Avalon Editor with the two following commands AvalonEditor Document UndoStack StartContinuedUndoGroup do edit operations here AvalonEditor Document

    Original URL path: http://www.acapio.de/Programmierung/CSharp/AvalonEdit/Undo_Transaction/index.html (2016-04-25)
    Open archived version from archive



  •