{"id":47,"date":"2021-09-23T13:09:49","date_gmt":"2021-09-23T13:09:49","guid":{"rendered":"http:\/\/code.handwerkit.com\/?page_id=47"},"modified":"2024-12-05T20:20:54","modified_gmt":"2024-12-05T20:20:54","slug":"snippets","status":"publish","type":"page","link":"https:\/\/code.handwerkit.com\/?page_id=47","title":{"rendered":"Snippets"},"content":{"rendered":"\n\t\t\t<div class=\"uagb-post-grid  uagb-post__image-position-top uagb-block-2b54be82   \" data-total=\"2\">\n\n\t\t\t\t<div class=\"uagb-post__items uagb-post__columns-4 is-grid uagb-post__columns-tablet-2 uagb-post__columns-mobile-1 uagb-post__equal-height\">\n\n\t\t\t\t\t\t\t\t<article >\n\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-post__inner-wrap\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<h5 class=\"uagb-post__title\">\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?p=107\" target=\"_self\" rel=\"bookmark noopener noreferrer\">C# DataGridView Drag and Drop<\/a>\n\t\t\t\t<\/h5>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t<div class=\"uagb-post-grid-byline\">\n\t\t\t\t\t\t\t\t<span class=\"uagb-post__author\">\n\t\t\t\t\t<span class=\"dashicons-admin-users dashicons\"><\/span>\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?author=1\" title=\"Beitr\u00e4ge von Rooout\" rel=\"author\">Rooout<\/a>\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<time datetime=\"2024-12-05T20:15:55+00:00\" class=\"uagb-post__date\">\n\t\t\t\t\t<span class=\"dashicons-calendar dashicons\"><\/span>\n\t\t\t\t\tDezember 5, 2024\t\t\t\t<\/time>\n\t\t\t\t\t\t\t<span class=\"uagb-post__comment\">\n\t\t\t\t\t<span class=\"dashicons-admin-comments dashicons\"><\/span>\n\t\t\t\t\tKeine Kommentare\t\t\t\t<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t\t<div class=\"uagb-post__excerpt\">\n\t\t\t\t\t\tEin DateGridView mit Drag and Drop der gesamten Zeile.- Multiselect m\u00f6glich (verschiebt alle markierten Zeilen)- Beh\u00e4llt die selektieren Zeilen nach dem ablegen- Zeigt einen visuellen \u2026\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<div class=\"uagb-post__cta\">\n\t\t\t\t\t<a class=\"uagb-post__link uagb-text-link\" href=\"https:\/\/code.handwerkit.com\/?p=107\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Weiterlesen<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t<article >\n\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-post__inner-wrap\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<h5 class=\"uagb-post__title\">\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?p=102\" target=\"_self\" rel=\"bookmark noopener noreferrer\">C# Threads und Anzeige in der GUI<\/a>\n\t\t\t\t<\/h5>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t<div class=\"uagb-post-grid-byline\">\n\t\t\t\t\t\t\t\t<span class=\"uagb-post__author\">\n\t\t\t\t\t<span class=\"dashicons-admin-users dashicons\"><\/span>\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?author=1\" title=\"Beitr\u00e4ge von Rooout\" rel=\"author\">Rooout<\/a>\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<time datetime=\"2023-11-28T15:13:36+00:00\" class=\"uagb-post__date\">\n\t\t\t\t\t<span class=\"dashicons-calendar dashicons\"><\/span>\n\t\t\t\t\tNovember 28, 2023\t\t\t\t<\/time>\n\t\t\t\t\t\t\t<span class=\"uagb-post__comment\">\n\t\t\t\t\t<span class=\"dashicons-admin-comments dashicons\"><\/span>\n\t\t\t\t\tKeine Kommentare\t\t\t\t<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t\t<div class=\"uagb-post__excerpt\">\n\t\t\t\t\t\tWir wollen Daten laden und nicht dass die Oberfl\u00e4che einfriert.\u00dcber den Invoke Befehl kann z.B. eine WinForm Benutzerelement aktualisiert werden:\n\n\n\n\/\/Ein Button der den Thread startet:\nprivate \u2026\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<div class=\"uagb-post__cta\">\n\t\t\t\t\t<a class=\"uagb-post__link uagb-text-link\" href=\"https:\/\/code.handwerkit.com\/?p=102\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Weiterlesen<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t<article >\n\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-post__inner-wrap\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<h5 class=\"uagb-post__title\">\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?p=99\" target=\"_self\" rel=\"bookmark noopener noreferrer\">C# WPF UserControl in WinForm<\/a>\n\t\t\t\t<\/h5>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t<div class=\"uagb-post-grid-byline\">\n\t\t\t\t\t\t\t\t<span class=\"uagb-post__author\">\n\t\t\t\t\t<span class=\"dashicons-admin-users dashicons\"><\/span>\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?author=1\" title=\"Beitr\u00e4ge von Rooout\" rel=\"author\">Rooout<\/a>\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<time datetime=\"2022-09-13T13:42:21+00:00\" class=\"uagb-post__date\">\n\t\t\t\t\t<span class=\"dashicons-calendar dashicons\"><\/span>\n\t\t\t\t\tSeptember 13, 2022\t\t\t\t<\/time>\n\t\t\t\t\t\t\t<span class=\"uagb-post__comment\">\n\t\t\t\t\t<span class=\"dashicons-admin-comments dashicons\"><\/span>\n\t\t\t\t\tKeine Kommentare\t\t\t\t<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t\t<div class=\"uagb-post__excerpt\">\n\t\t\t\t\t\tZeilenumbruch nach einer bestimmten L\u00e4nge in einem WPF-XAML UserControl inWinForm, das Hosten einer xaml in WinForm wird hier beschrieben.\n\n\n\nrichTextBoxWpf.Document.MaxPageWidth = 120;\n\n\n\nEs wird die breite auf \u2026\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<div class=\"uagb-post__cta\">\n\t\t\t\t\t<a class=\"uagb-post__link uagb-text-link\" href=\"https:\/\/code.handwerkit.com\/?p=99\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Weiterlesen<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t<article >\n\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-post__inner-wrap\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<h5 class=\"uagb-post__title\">\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?p=91\" target=\"_self\" rel=\"bookmark noopener noreferrer\">C# richTextBox WordWrap<\/a>\n\t\t\t\t<\/h5>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t<div class=\"uagb-post-grid-byline\">\n\t\t\t\t\t\t\t\t<span class=\"uagb-post__author\">\n\t\t\t\t\t<span class=\"dashicons-admin-users dashicons\"><\/span>\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?author=1\" title=\"Beitr\u00e4ge von Rooout\" rel=\"author\">Rooout<\/a>\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<time datetime=\"2022-08-17T08:57:17+00:00\" class=\"uagb-post__date\">\n\t\t\t\t\t<span class=\"dashicons-calendar dashicons\"><\/span>\n\t\t\t\t\tAugust 17, 2022\t\t\t\t<\/time>\n\t\t\t\t\t\t\t<span class=\"uagb-post__comment\">\n\t\t\t\t\t<span class=\"dashicons-admin-comments dashicons\"><\/span>\n\t\t\t\t\tKeine Kommentare\t\t\t\t<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t\t<div class=\"uagb-post__excerpt\">\n\t\t\t\t\t\t[Update 2022-09] WPF UserControl mit RichTextBox und WordWrap Zeilenumbruch nach einer bestimmten L\u00e4nge in einem RichtText \/ richTextBox,hier nach 30 Zeichen:\n\n\n\nvar maxChars = 30; \/\/ \u2026\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<div class=\"uagb-post__cta\">\n\t\t\t\t\t<a class=\"uagb-post__link uagb-text-link\" href=\"https:\/\/code.handwerkit.com\/?p=91\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Weiterlesen<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t<article >\n\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-post__inner-wrap\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<h5 class=\"uagb-post__title\">\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?p=79\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Neu aufsetzen des RaspberryPi<\/a>\n\t\t\t\t<\/h5>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t<div class=\"uagb-post-grid-byline\">\n\t\t\t\t\t\t\t\t<span class=\"uagb-post__author\">\n\t\t\t\t\t<span class=\"dashicons-admin-users dashicons\"><\/span>\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?author=1\" title=\"Beitr\u00e4ge von Rooout\" rel=\"author\">Rooout<\/a>\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<time datetime=\"2021-11-30T08:34:00+00:00\" class=\"uagb-post__date\">\n\t\t\t\t\t<span class=\"dashicons-calendar dashicons\"><\/span>\n\t\t\t\t\tNovember 30, 2021\t\t\t\t<\/time>\n\t\t\t\t\t\t\t<span class=\"uagb-post__comment\">\n\t\t\t\t\t<span class=\"dashicons-admin-comments dashicons\"><\/span>\n\t\t\t\t\tKeine Kommentare\t\t\t\t<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t\t<div class=\"uagb-post__excerpt\">\n\t\t\t\t\t\tWas wir brauchen:RaspberryPi (egal welche Version)Netzteil (am besten 2A)PatchkabelSD-Karte 8GB oder gr\u00f6\u00dfer \n\n\n\nSoftware:\n\n\n\nWin32DiskImagerMobaXterm (geht auch Putty, bevorzuge aber dieses)Advanced IP Scanner \n\n\n\nWir laden das neuste \u2026\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<div class=\"uagb-post__cta\">\n\t\t\t\t\t<a class=\"uagb-post__link uagb-text-link\" href=\"https:\/\/code.handwerkit.com\/?p=79\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Weiterlesen<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t<article >\n\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-post__inner-wrap\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<h5 class=\"uagb-post__title\">\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?p=68\" target=\"_self\" rel=\"bookmark noopener noreferrer\">C# Entity Speichern oder Update von Objekten<\/a>\n\t\t\t\t<\/h5>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t<div class=\"uagb-post-grid-byline\">\n\t\t\t\t\t\t\t\t<span class=\"uagb-post__author\">\n\t\t\t\t\t<span class=\"dashicons-admin-users dashicons\"><\/span>\n\t\t\t\t\t<a href=\"https:\/\/code.handwerkit.com\/?author=1\" title=\"Beitr\u00e4ge von Rooout\" rel=\"author\">Rooout<\/a>\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<time datetime=\"2021-10-14T12:10:46+00:00\" class=\"uagb-post__date\">\n\t\t\t\t\t<span class=\"dashicons-calendar dashicons\"><\/span>\n\t\t\t\t\tOktober 14, 2021\t\t\t\t<\/time>\n\t\t\t\t\t\t\t<span class=\"uagb-post__comment\">\n\t\t\t\t\t<span class=\"dashicons-admin-comments dashicons\"><\/span>\n\t\t\t\t\tKeine Kommentare\t\t\t\t<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t\t<div class=\"uagb-post__excerpt\">\n\t\t\t\t\t\tEinfaches Abspeichern von Objekten, oder ein Update wenn vorhanden:\n\n\n\nclass Car\n    {\n        public int id { \u2026\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class='uagb-post__text'> \n\t\t\t\t<div class=\"uagb-post__cta\">\n\t\t\t\t\t<a class=\"uagb-post__link uagb-text-link\" href=\"https:\/\/code.handwerkit.com\/?p=68\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Weiterlesen<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-47","page","type-page","status-publish","hentry","entry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Rooout","author_link":"https:\/\/code.handwerkit.com\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/pages\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":6,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/pages\/47\/revisions"}],"predecessor-version":[{"id":113,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/pages\/47\/revisions\/113"}],"wp:attachment":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}