<?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>QuickTest Professional Stuff &#187; .net</title>
	<atom:link href="http://www.qtpstuff.com/category/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.qtpstuff.com</link>
	<description>- eXcellent resource of QTP Stuff</description>
	<lastBuildDate>Tue, 15 Dec 2009 13:00:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Access Internal Properties and Methods of Run-Time .NET Windows Forms Objects</title>
		<link>http://www.qtpstuff.com/how-to-access-internal-properties-and-methods-of-run-time-net-windows-forms-objects/</link>
		<comments>http://www.qtpstuff.com/how-to-access-internal-properties-and-methods-of-run-time-net-windows-forms-objects/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:28:57 +0000</pubDate>
		<dc:creator>Puneet Kalra</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://www.qtpstuff.com/?p=18</guid>
		<description><![CDATA[ Object property can be used to retrieve  internal properties and activate internal methods of any .NET Windows  Forms object in your application.
For example, you can set the focus to a particular button and change its caption  using statements similar to the following:
Set theButton =  SwfWindow(&#8220;frmWin&#8221;).SwfButton(&#8220;OK&#8221;).Object

theButton.SetFocus

theButton.Caption = &#8220;Yes&#8221;
The Object property is also useful for  verifying the value of properties that are not available using a standard  checkpoint.
When you use the Object property to retrieve  arrays of structures, the Object property  returns the ...]]></description>
			<content:encoded><![CDATA[<p><strong><strong style="font-weight: bold;"> </strong></strong>Object property can be used to retrieve  internal properties and activate internal methods of any .NET Windows  Forms object in your application.</p>
<p>For example, you can set the focus to a particular button and change its caption  using statements similar to the following:</p>
<blockquote><p><span>Set theButton =  SwfWindow(&#8220;frmWin&#8221;).SwfButton(&#8220;OK&#8221;).Object</span></p>
<p><a name="wp52937"></a></p>
<p><span>theButton.SetFocus</span></p>
<p><a name="wp52938"></a></p>
<p><span>theButton.Caption = &#8220;Yes&#8221;</span></p></blockquote>
<p>The Object property is also useful for  verifying the value of properties that are not available using a standard  checkpoint.</p>
<p>When you use the Object property to retrieve  arrays of structures, the <strong style="font-weight: bold;">Object </strong>property  returns the COM wrapper of the <strong style="font-weight: bold;">system.array</strong> object. In your VBScript test or component steps, you can then use the <strong style="font-weight: bold;">system.array</strong> object to access the array members.</p>
<p>For example, suppose a button object in your application has a <strong style="font-weight: bold;">PointArray</strong> property, which is an array of Point  structures. To access the first item in the <strong style="font-weight: bold;">PointArray</strong> property, you would use the following  expression:</p>
<blockquote><p>SwfWindow(&#8220;Form1&#8243;).SwfButton(&#8220;button1&#8243;).Object.PointArray.GetValue1(0)</p></blockquote>
<p>If the same object had an <strong style="font-weight: bold;">IntArray</strong> property,  which was an array of integers, you would use the following expression to access  the first item in the <strong style="font-weight: bold;">IntArray</strong> property:</p>
<blockquote><p>SwfWindow(&#8220;Form1&#8243;).SwfButton(&#8220;button1&#8243;).Object.IntArray(0)</p></blockquote>
<div style='clear:both'></div><img src="http://www.qtpstuff.com/?ak_action=api_record_view&id=18&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.qtpstuff.com/how-to-access-internal-properties-and-methods-of-run-time-net-windows-forms-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
