Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#
WPF, Bridge: StorageFile access with Windows 10 under Win32 Net-Framework/WPF/Migrate-to-UWP
WPF, Bridge: StorageFile access with Windows 10 under Win32
21.07.2017 14
WPF, Bridge: File access with Windows 10 under Win32 The functionality of the UWP Windows 10 can be integrated under Windows 32 WPF WinForms Then you can open and manage files with asynchronous access as a storage file In contrast to UWP you have the comp

WPF / UWP: Canvas with relative positions and sizes Net-Framework/WPF/Code-Samples
WPF / UWP: Canvas with relative positions and sizes
07.07.2017 46
WPF UWP: Canvas with relative positions and sizes This code example shows a Windows XAML application, where the positions and size of the elements in a Canvas Control match the runtime, relative to the size of the window or canvas element In the Canvas_ChangedSize

C #, WPF, UWP: ScreenShot to save an app or window area as a file Net-Framework/WPF/Code-Samples
C #, WPF, UWP: ScreenShot to save an app or window area as a file
06.07.2017 50
C #, WPF, UWP: ScreenShot to save an app or window area as a file C #, WPF, UWP, RenderTarget Bitmap, Encoder, SaveSave as File, Desktop, Screen Area Render Windows window, app, application or XAML element as bitmap and save the element as a ScreenShot fil

XAML: Text break in the button Net-Framework/WPF/Basics
XAML: Text break in the button
06.07.2017 37
XAML: Text break in the button WPF, UWP, XAML, TextWrap, Wrap, LineBreak The UIElement, Framework ElementButton has no direct option for the text break If you want a text break in a button, you have to either set a sub-element TextBlock inside t

C #: Windows ScreenShot save as file Net-Framework/WPF/Code-Samples
C #: Windows ScreenShot save as file
06.07.2017 43
C #: Windows ScreenShot save as file, Windows Graphics, Desktop This application in Windows WPF saves the current monitor as a screenshot in a png file Video Tutorial This application in Windows WPF saves the cu

WPF Windows Font icons with Segoe MDL2 Asset Net-Framework/WPF/Basics
WPF Windows Font icons with Segoe MDL2 Asset
06.07.2017 44
WPF Windows Font icons with Segoe MDL2 Asset With a trick WPF and C # can be installed in Windows applications under Windows FontFamily: Segoe MDL2 assets One can enter the font a FrameworkElements or UIElements into the Properties->

WPF Color Picker on Color Cube Net-Framework/WPF/Code-Samples
WPF Color Picker on Color Cube
05.07.2017 41
WPF Color Picker on Color Cube, Black White Color This code example contains a color picker (ColorPicker) with which you can determine a color at run-time in RGB values The color is returned, over which the mouse pointer is positioned as a cursor

WPF: Draw ColorWheel in C# by drawing Lines Net-Framework/WPF/Code-Samples
WPF: Draw ColorWheel in C# by drawing Lines
04.07.2017 59
WPF: Draw ColorWheel The following code creates a ColorWheel that is needed to select color in an application The solution is designed to automatically draw lines from the edges of a rectangle directly into the center of the rectangle using the draw_Lines () method

WPF: Snap In to Next Lines of Elements Net-Framework/WPF/Code-Samples
WPF: Snap In to Next Lines of Elements
29.06.2017 56
WPF: Snap Next Lines The following code example contains a WPF application in which the moving elements always dock onto the other elements The C # code is based on the fact that when a corner of an element is moved, the new position in the top and left position is

WPF Code: Usercontrol with customizable size at runtime Net-Framework/WPF/Code-Samples
WPF Code: Usercontrol with customizable size at runtime
29.06.2017 59
WPF Code: Usercontrol with customizable size at runtime This code example involves the calculation and adjustment of the size and position of a UserControl at runtime in a superior canvas UIElement C # Code, Code-Example Video ins

WPF: Save the background of a Windows app as a ScreenShot Net-Framework/WPF/Code-Samples
WPF: Save the background of a Windows app as a ScreenShot
28.06.2017 81
WPF: Save the background of a Windows app as a ScreenShot The following C # code saves the current background or the appearance of a Windows 32 WPF app as a bitmap This example also shows that only the app application is captured and not the background desktop behin

WPF, UWP: Create transparent app window Net-Framework/WPF/Code-Samples
WPF, UWP: Create transparent app window
28.06.2017 75
WPF, UWP: Create transparent app window Create a transparent app window A window becomes transparent with WPF when the following settings are entered in the XAML value

WPF: Determine the relative position of an element Net-Framework/WPF/Code-Samples
WPF: Determine the relative position of an element
28.06.2017 62
WPF: Determine the relative position of an element Under WPF, you can use TranslatePoint ( ) The position of a subordinate element to the upper left corner of a parent element C # Code example UIElemen

WPF: Mouse position Net-Framework/WPF/Code-Samples
WPF: Mouse position
28.06.2017 63
WPF: Mouse position How to determine the position of the mouse pointer in a WPF application The position of the mouse is always determined relative to the upper left corner of a superimposed UIElement From the MouseEventArgs parameter in the Mo

WPF: Zoom bitmap with TransformedBitmap Net-Framework/WPF/Images
WPF: Zoom bitmap with TransformedBitmap
14.06.2017 63
WPF: Reduce bitmap C # Code Sample: This code zooms a ScreenShot image to a suitable width in centimeters In this case, the scaling factor is calculated based on the image of dot-in-the-inch of the monitor to a predetermined width in centimeters

WPF: Shrink ImageSource as image Net-Framework/WPF/Images
WPF: Shrink ImageSource as image
13.06.2017 66
The following C # code under WPF makes the following: a screenshot image from the clipboard is reduced to a defined image width 1 Create image as a layer

WPF Error: An error occurred while signing Net-Framework/WPF/Error-Messages
WPF Error: An error occurred while signing
31.05.2017 95
WPF Error: An error occurred while signing When re-editing an older WPF application, the error code comes An error occurred while signing: Failed to sign bin Debug app publish ScreenCapture_to_Clipboard exe

WPF: Read string arguments with spaces Net-Framework/WPF/Folder-Files
WPF: Read string arguments with spaces
25.04.2017 76
If a startup parameter under Windows is given a space, then the program will automatically start with several arguments A path with spaces like this in the example: "C: 2016-12-23 Test" automatically causes the Args [0] to be the first part and contains Arg

WPF: Additional menu items with icon in file explorer for videos, photos, folders and directories Net-Framework/WPF/Folder-Files
WPF: Additional menu items with icon in file explorer for videos, photos, folders and directories
24.04.2017 83
With this C # code I extend my file explorer in such a way that an additional menu point appears in the context menu of the right mouse button to photos, videos, folder directories, Which starts my additional app WPF application The program should then list

WPF Registry. DeleteSubKey: System.UnautohorizedAccessException Net-Framework/WPF/Error-Messages
WPF Registry. DeleteSubKey: System.UnautohorizedAccessException
24.04.2017 81
error message When deleting keys in the Windows registry, the error message is output :; System UnautohorizedAccessException: In den Registrierungsschlüssel kann nicht ge

WPF: Show video in preview Net-Framework/WPF/Controls-Elements
WPF: Show video in preview
18.04.2017 96
Code example in C #, WPF to load a video, which is displayed as thumbnail Subject: MediaElement MediaPlayer, Image,Thumbnail, Preview, Video, mp4, mov

WPF: Select Folder with Startup Directory Net-Framework/WPF/Dialogs
WPF: Select Folder with Startup Directory
18.04.2017 148
If you want to select a folder in a dialog in WPF, you can use the FolderBrowserDialog from Winforms To specify the first set folder when opening the dialog box, you must set the SelectedPath to do this without setting a RootFolder Directory selection, direct

WPF, C# Code: Login into an AVM Fritzbox Net-Framework/WPF/WPF-Projects
WPF, C# Code: Login into an AVM Fritzbox
16.03.2017 139
Fritzbox: WPF Login and evaluation by c # code Project code in C # for logging into an AVM Fritzbox with webrequest or webBrowser This C # code can be used as a basis for reading an AVM Fritzbox such as the telephone book, the call lists or the contacts Su

WPF Webbrowser: Suppress Java Errors or Set WebBrowser to Silent Net-Framework/WPF/Controls-Elements
WPF Webbrowser: Suppress Java Errors or Set WebBrowser to Silent
15.03.2017 161
Under the web browser Control in wpf Net you have no direct possibility to disable the error display by script errors Although there is the property webBrowser Silent = false under Windows Forms, you can not find it in WPF Webbrowser controls Unfort

WPF WebBrowser: Load HTML to Browser Net-Framework/WPF/Controls-Elements
WPF WebBrowser: Load HTML to Browser
15.03.2017 172
How to load a string like HTML into a browser control in WPF? string

C# mshtml: Search with getElementsByTagName Net-Framework/WPF/HTML-Documents
C# mshtml: Search with getElementsByTagName
10.02.2017 225
C # MSHTML: Search with getElementsByTagName Search for an HTML element using the HTML tag, which does not have a unique name Example: Use getElementsByTagName ("input") to get all input elements into a colletion mshtml IHTMLElementCollection elements These ca

WPF: List of connected smartphones Net-Framework/WPF/Devices
WPF: List of connected smartphones
26.01.2017 260
WPF: List of connected smartphones Task: How to get a list of all connected phones? I need in a WPF application a list of all smartphones, which are connected with a USB cable at the PC computer Experiment 1: Via ManagementO

WPF: Get all drives of a Computer Net-Framework/WPF/Folder-Files
WPF: Get all drives of a Computer
26.01.2017 256
WPF: View all drives How can you display all drives on a computer under WPF? Solution: With System IO DriveInfo has access to the drives of a computer DriveInfo [] arrDrives = DriveInfo Get

WPF: Hide hidden folders Net-Framework/WPF/Folder-Files
WPF: Hide hidden folders
26.01.2017 285
WPF: Hide hidden folders Problem: When calling all directories in WPF, many folders are specified with, which should not actually be visible Some directories are displayed, such as documents and settings or $ Recycle bin, which should not be visible to the user

WPF: Popup limit max Height Net-Framework/WPF/Controls-Elements
WPF: Popup limit max Height
26.01.2017 387
WPF: Popup limit I load a popup with a list table, but the popup is often large How the WPF popup is reduced in size Solution: You can set the Max-Height property The maximum height is then restricted WPF XAML Code with MaxHeight = 50

Mobile

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de