<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; WinForm</title>
	<atom:link href="https://blog.developpez.com/infosam76/pcategory/developpement/vb-net/winform/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.developpez.com/infosam76</link>
	<description></description>
	<lastBuildDate>Wed, 08 Jan 2014 16:02:14 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>[VB.Net] [WinForm] Arrière plan en dégradé dans une form</title>
		<link>https://blog.developpez.com/infosam76/p12204/developpement/vb-net/winform/vb-net-winform-arriere-plan-en-degrade-dans-une-form</link>
		<comments>https://blog.developpez.com/infosam76/p12204/developpement/vb-net/winform/vb-net-winform-arriere-plan-en-degrade-dans-une-form#comments</comments>
		<pubDate>Fri, 30 Aug 2013 09:27:34 +0000</pubDate>
		<dc:creator><![CDATA[infosam76]]></dc:creator>
				<category><![CDATA[WinForm]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/infosam76/?p=56</guid>
		<description><![CDATA[Objectif Obtenir un dégradé comme arrière plan pour une fenêtre. Méthode Il suffit de modifier la fonction de l&#8217;événement OnPaint de la fenêtre concernée. Par exemple pour obtenir un dégradé horizontal : Imports System.Drawing.Drawing2D ... Private Sub Form1_Paint(ByVal sender As &#8230; <a href="https://blog.developpez.com/infosam76/p12204/developpement/vb-net/winform/vb-net-winform-arriere-plan-en-degrade-dans-une-form">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><strong>Objectif </strong></p>
<p>Obtenir un dégradé comme arrière plan pour une fenêtre. </p>
<p><strong>Méthode</strong></p>
<p>Il suffit de modifier la fonction de l&rsquo;événement <em>OnPaint</em> de la fenêtre concernée. </p>
<p>Par exemple pour obtenir un dégradé horizontal :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Imports System.Drawing.Drawing2D<br />
...<br />
Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint<br />
&nbsp; Dim formGraphics As Graphics = e.Graphics<br />
&nbsp;<br />
&nbsp; Dim gradientBrush As New LinearGradientBrush(New Point(0, 0), New Point(Width, 0), Color.White, Color.DarkMagenta)<br />
&nbsp;<br />
&nbsp; formGraphics.FillRectangle(gradientBrush, ClientRectangle)<br />
End Sub</div></div>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
