<?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>Electronic Designer</title>
	<atom:link href="http://www.electronic-designer.co.uk/feed" rel="self" type="application/rss+xml" />
	<link>http://www.electronic-designer.co.uk</link>
	<description>Electronic Designer Resources</description>
	<lastBuildDate>Fri, 17 Feb 2012 13:44:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Z Order</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/forms/z-order</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/forms/z-order#comments</comments>
		<pubDate>Fri, 17 Feb 2012 13:43:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Forms]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=779</guid>
		<description><![CDATA[Force Label To Front MyLabel-&#62;BringToFront();]]></description>
			<content:encoded><![CDATA[<h4>Force Label To Front</h4>
<pre><code>
MyLabel-&gt;BringToFront();
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/forms/z-order/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Form Position</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/forms/form-size-location/set-form-position</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/forms/form-size-location/set-form-position#comments</comments>
		<pubDate>Fri, 20 Jan 2012 11:40:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Form Size And Location]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=771</guid>
		<description><![CDATA[Set Form To Bottom Left //----- SET OUR POSITION BOTTOM LEFT ----- this-&#62;Left = Screen::PrimaryScreen-&#62;WorkingArea.Left; this-&#62;Top = Screen::PrimaryScreen-&#62;WorkingArea.Height - this-&#62;Height;]]></description>
			<content:encoded><![CDATA[<h4>Set Form To Bottom Left</h4>
<pre><code>
	//----- SET OUR POSITION BOTTOM LEFT -----
	this-&gt;Left = Screen::PrimaryScreen-&gt;WorkingArea.Left;
	this-&gt;Top = Screen::PrimaryScreen-&gt;WorkingArea.Height - this-&gt;Height;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/forms/form-size-location/set-form-position/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detecting Modifier Keys</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/keypresses/detecting-modifier-keys</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/keypresses/detecting-modifier-keys#comments</comments>
		<pubDate>Fri, 20 Jan 2012 09:10:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Keypresses]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=767</guid>
		<description><![CDATA[Detecting A Modifier Key Is Pressed if (Control::ModifierKeys == Keys::Control) Detecting A Single Modifier Key Is Pressed if (Control::ModifierKeys &#38; Keys::Shift) != 0)]]></description>
			<content:encoded><![CDATA[<h4>Detecting A Modifier Key Is Pressed</h4>
<pre><code>
if (Control::ModifierKeys == Keys::Control)
</code></pre>
<p><span id="more-767"></span></p>
<h4>Detecting A Single Modifier Key Is Pressed</h4>
<pre><code>
if (Control::ModifierKeys &amp; Keys::Shift) != 0)
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/keypresses/detecting-modifier-keys/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detecting Key Presses On A Form</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/keypresses/detecting-key-presses-on-a-form</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/keypresses/detecting-key-presses-on-a-form#comments</comments>
		<pubDate>Fri, 20 Jan 2012 09:08:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Keypresses]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=765</guid>
		<description><![CDATA[Select the form: Set the KeyPreview property of the form to true so that keyboard messages are received by the form before they reach any controls on the form. Create a KeyPress event (detects keys down combined with any modifier key &#8211; i.e. no event for pressing CTRL and a modified key value for CTRL [...]]]></description>
			<content:encoded><![CDATA[<p>Select the form:</p>
<p style="padding-left: 30px;">Set the KeyPreview property of the form to true so that keyboard messages are received by the form before they reach any controls on the form.</p>
<p><span id="more-765"></span></p>
<p style="padding-left: 30px;">Create a KeyPress event (detects keys down combined with any modifier key &#8211; i.e. no event for pressing CTRL and a modified key value for CTRL + &#8216;y&#8217;</p>
<p style="padding-left: 30px;">Or create a KeyDown event (detects every key down including modifier keys and gives individual key value)</p>
<h4>Example Handler</h4>
<pre><code>
	//***********************************
	//***********************************
	//********** FORM KEY DOWN **********
	//***********************************
	//***********************************
	private: System::Void frmMain_KeyDown(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e)
	{

		try
		{
			//MessageBox::Show("Form.KeyPress: '" + e-&gt;KeyValue.ToString() + "' pressed.");

			if ((Control::ModifierKeys == Keys::Control) &amp;&amp; (e-&gt;KeyValue == 'L'))		//Key values are for CAPS version of letters
			{

				//----- CTRL+L PRESSED -----
				textBox1-&gt;Text = "A";

			}
		}
		catch (Exception ^)
		{
		}
	}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/keypresses/detecting-key-presses-on-a-form/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chart Types</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/chart-types</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/chart-types#comments</comments>
		<pubDate>Thu, 15 Dec 2011 18:38:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Charts]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=749</guid>
		<description><![CDATA[Line Charts Displaying Points Series &#62; Marker Style]]></description>
			<content:encoded><![CDATA[<h4>Line Charts</h4>
<h5>Displaying Points</h5>
<p>Series &gt; Marker Style</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/chart-types/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Title</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/title</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/title#comments</comments>
		<pubDate>Thu, 15 Dec 2011 18:17:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Charts]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=747</guid>
		<description><![CDATA[Create a global title object private: DataVisualization::Charting::Title ^ChartTitle1; Set the title //Add the chart title if this is the first time if (ChartTitle1 == nullptr) { ChartTitle1 = gcnew DataVisualization::Charting::Title(); ChartTitle1-&#62;Name = L"Title1"; Chart1-&#62;Titles-&#62;Add(ChartTitle1); } ChartTitle1-&#62;Text = L"Test"; //Changing this at any time will update the charts title]]></description>
			<content:encoded><![CDATA[<h4>Create a global title object</h4>
<pre><code>
private: DataVisualization::Charting::Title ^ChartTitle1;
</code></pre>
<p><span id="more-747"></span></p>
<h4>Set the title</h4>
<pre><code>
	//Add the chart title if this is the first time
	if (ChartTitle1 == nullptr)
	{
		ChartTitle1 = gcnew DataVisualization::Charting::Title();
		ChartTitle1-&gt;Name = L"Title1";
		Chart1-&gt;Titles-&gt;Add(ChartTitle1);
	}

	ChartTitle1-&gt;Text = L"Test";		//Changing this at any time will update the charts title
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/title/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working With Fonts</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/font/working-with-fonts</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/font/working-with-fonts#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:28:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Font]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=743</guid>
		<description><![CDATA[Setting Font dataGridView1-&#62;DefaultCellStyle-&#62;Font = gcnew System::Drawing::Font("Arial", 10);]]></description>
			<content:encoded><![CDATA[<h4>Setting Font</h4>
<pre><code>
	dataGridView1-&gt;DefaultCellStyle-&gt;Font = gcnew System::Drawing::Font("Arial", 10);
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/font/working-with-fonts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printing General</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/printing/printing-general</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/printing/printing-general#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:10:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=739</guid>
		<description><![CDATA[Create Your Print Document System::Drawing::Printing::PrintDocument ^printDoc; Start Printing //Setup the print dialog PrintDialog ^dlgPrint = gcnew PrintDialog(); dlgPrint-&#62;AllowSelection = true; dlgPrint-&#62;ShowNetwork = true; dlgPrint-&#62;Document = printDoc; dlgPrint-&#62;PrinterSettings-&#62;DefaultPageSettings-&#62;Landscape = true; //(This doesn't necessarily work) dlgPrint-&#62;UseEXDialog = true; printDoc-&#62;BeginPrint += gcnew System::Drawing::Printing::PrintEventHandler(this, &#38;DataGridViewPrint::PrintDoc_BeginPrint); printDoc-&#62;PrintPage += gcnew System::Drawing::Printing::PrintPageEventHandler(this, &#38;DataGridViewPrint::PrintDoc_PrintPage); if (dlgPrint-&#62;ShowDialog() != DialogResult::OK) { printDoc-&#62;BeginPrint -= gcnew System::Drawing::Printing::PrintEventHandler(this, [...]]]></description>
			<content:encoded><![CDATA[<h4>Create Your Print Document</h4>
<pre><code>
	System::Drawing::Printing::PrintDocument ^printDoc;
</code></pre>
<p><span id="more-739"></span></p>
<h4>Start Printing</h4>
<pre><code>
	//Setup the print dialog
	PrintDialog ^dlgPrint = gcnew PrintDialog();
	dlgPrint-&gt;AllowSelection = true;
	dlgPrint-&gt;ShowNetwork = true;
	dlgPrint-&gt;Document = printDoc;
	dlgPrint-&gt;PrinterSettings-&gt;DefaultPageSettings-&gt;Landscape = true;		//(This doesn't necessarily work)
	dlgPrint-&gt;UseEXDialog = true;

	printDoc-&gt;BeginPrint += gcnew System::Drawing::Printing::PrintEventHandler(this, &amp;DataGridViewPrint::PrintDoc_BeginPrint);
	printDoc-&gt;PrintPage += gcnew System::Drawing::Printing::PrintPageEventHandler(this, &amp;DataGridViewPrint::PrintDoc_PrintPage);
	if (dlgPrint-&gt;ShowDialog() != DialogResult::OK)
	{
		printDoc-&gt;BeginPrint -= gcnew System::Drawing::Printing::PrintEventHandler(this, &amp;DataGridViewPrint::PrintDoc_BeginPrint);
		printDoc-&gt;PrintPage -= gcnew System::Drawing::Printing::PrintPageEventHandler(this, &amp;DataGridViewPrint::PrintDoc_PrintPage);
		return;
	}

	//Print the Documnet
	printDoc-&gt;Print();
	printDoc-&gt;BeginPrint -= gcnew System::Drawing::Printing::PrintEventHandler(this, &amp;DataGridViewPrint::PrintDoc_BeginPrint);
	printDoc-&gt;PrintPage -= gcnew System::Drawing::Printing::PrintPageEventHandler(this, &amp;DataGridViewPrint::PrintDoc_PrintPage);
</code></pre>
<h4>The Callbacks To Provide</h4>
<pre><code>
void DataGridViewPrint::PrintDoc_BeginPrint(System::Object^  sender, System::Drawing::Printing::PrintEventArgs ^e)
{
}
void DataGridViewPrint::PrintDoc_PrintPage(System::Object ^sender, System::Drawing::Printing::PrintPageEventArgs ^e)
{
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/printing/printing-general/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page Settings</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/printing/page-settings</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/printing/page-settings#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:07:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=737</guid>
		<description><![CDATA[You can&#8217;t easily force things like margins and orientation, all you can do is use dlgPrint-&#62;PrinterSettings-&#62;DefaultPageSettings-&#62;Landscape = true; Which if not forced and often ignored leaving the user to have to decide. Detecting Page Orientation You can do this in the print page callback: void DataGridViewPrint::PrintDoc_PrintPage(System::Object ^sender, System::Drawing::Printing::PrintPageEventArgs ^e) { if (e-&#62;PageSettings-&#62;Landscape) //True for landscape]]></description>
			<content:encoded><![CDATA[<p>You can&#8217;t easily force things like margins and orientation, all you can do is use</p>
<pre><code>dlgPrint-&gt;PrinterSettings-&gt;DefaultPageSettings-&gt;Landscape = true;</code></pre>
<p><span id="more-737"></span></p>
<p>Which if not forced and often ignored leaving the user to have to decide.</p>
<h4>Detecting Page Orientation</h4>
<p>You can do this in the print page callback:</p>
<pre><code>
	void DataGridViewPrint::PrintDoc_PrintPage(System::Object ^sender, System::Drawing::Printing::PrintPageEventArgs ^e)
	{
		if (e-&gt;PageSettings-&gt;Landscape)		//True for landscape
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/printing/page-settings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print A Chart</title>
		<link>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/print-a-chart</link>
		<comments>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/print-a-chart#comments</comments>
		<pubDate>Wed, 14 Dec 2011 16:37:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Charts]]></category>

		<guid isPermaLink="false">http://www.electronic-designer.co.uk/?p=735</guid>
		<description><![CDATA[You can go through a process of copying to clipboard, then printing, or you can just use: Chart1-&#62;Printing-&#62;Print(true);]]></description>
			<content:encoded><![CDATA[<p>You can go through a process of copying to clipboard, then printing, or you can just use:</p>
<pre><code>
	Chart1-&gt;Printing-&gt;Print(true);
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.electronic-designer.co.uk/programming/visual-cpp-cli-dot-net/charts/print-a-chart/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

