mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
1.9 KiB
1.9 KiB
title, ms.date, dev_langs, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| How to: Draw Vertical Text on a Windows Form | 03/30/2017 |
|
|
|
717a6131-00f6-4373-b574-9894e8317799 |
How to: Draw Vertical Text on a Windows Form
The following code example shows how to draw vertical text on a form by using the xref:System.Drawing.Graphics.DrawString%2A method of xref:System.Drawing.Graphics.
Example
[!code-cppSystem.Drawing.ConceptualHowTos#8] [!code-csharpSystem.Drawing.ConceptualHowTos#8] [!code-vbSystem.Drawing.ConceptualHowTos#8]
Compiling the Code
You cannot call this method in the xref:System.Windows.Forms.Form.Load event handler. The drawn content will not be redrawn if the form is resized or obscured by another form. To make your content automatically repaint, you should override the xref:System.Windows.Forms.Control.OnPaint%2A method.
Robust Programming
The following conditions may cause an exception:
- The Arial font is not installed.