<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: QTP DOTNetFactory (1): Creating a Custom Form</title>
	<atom:link href="http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/</link>
	<description>A Resource for Test Automation Development</description>
	<lastBuildDate>Fri, 18 May 2012 07:21:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-58428</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Wed, 28 Mar 2012 14:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-58428</guid>
		<description>Nilesh, you can either use Visual Relational Identifier or anchors using DOM. Both allow you to work with anchors to execute events on neighboring objects.

Also, there is no way you can identify an object without using either OR or DP. You must use one of these for identification.</description>
		<content:encoded><![CDATA[<p>Nilesh, you can either use Visual Relational Identifier or anchors using DOM. Both allow you to work with anchors to execute events on neighboring objects.</p>
<p>Also, there is no way you can identify an object without using either OR or DP. You must use one of these for identification.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilesh Pawar</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-58002</link>
		<dc:creator>Nilesh Pawar</dc:creator>
		<pubDate>Wed, 21 Mar 2012 04:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-58002</guid>
		<description>HI Anshoo,
Then what could be solution to this.I am trying to do this because i dn&#039;t want to add swfEdit object to object repository as well dn&#039;t want to use descriptive programming.I want to enter value into a swfEdit object based on its label.Idea is suppose i get the label&#039;s X and Y cordinate, i can get all the object in the same Y cordinate using &quot;GetChildatPoint1&quot; method.</description>
		<content:encoded><![CDATA[<p>HI Anshoo,<br />
Then what could be solution to this.I am trying to do this because i dn&#8217;t want to add swfEdit object to object repository as well dn&#8217;t want to use descriptive programming.I want to enter value into a swfEdit object based on its label.Idea is suppose i get the label&#8217;s X and Y cordinate, i can get all the object in the same Y cordinate using &#8220;GetChildatPoint1&#8243; method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-57977</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Tue, 20 Mar 2012 13:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-57977</guid>
		<description>Nilesh, I am not sure if you can pass a DOTNetFactory to SWFWindow like that..</description>
		<content:encoded><![CDATA[<p>Nilesh, I am not sure if you can pass a DOTNetFactory to SWFWindow like that..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilesh Pawar</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-57917</link>
		<dc:creator>Nilesh Pawar</dc:creator>
		<pubDate>Mon, 19 Mar 2012 14:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-57917</guid>
		<description>Hi,
I am using dotnetfactory object to create instance of COM interface &#039;system.Drawing.Point&#039; but after setting the X and Y cordinate when i try to pass it to &#039;GetChildatPoint1&#039; method of SwfWindow object it gives me error. what is the solution for this</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using dotnetfactory object to create instance of COM interface &#8216;system.Drawing.Point&#8217; but after setting the X and Y cordinate when i try to pass it to &#8216;GetChildatPoint1&#8242; method of SwfWindow object it gives me error. what is the solution for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bitu Das</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-12712</link>
		<dc:creator>Bitu Das</dc:creator>
		<pubDate>Tue, 21 Dec 2010 19:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-12712</guid>
		<description>Hi Anshoo,
How can I set the backhround color and background image of  a form created using dotnetfactory?
Please advise.</description>
		<content:encoded><![CDATA[<p>Hi Anshoo,<br />
How can I set the backhround color and background image of  a form created using dotnetfactory?<br />
Please advise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-743</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Tue, 27 Oct 2009 02:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-743</guid>
		<description>Bibek,

I didn&#039;t know you had a blog too! I tried to access the link, but its locked?</description>
		<content:encoded><![CDATA[<p>Bibek,</p>
<p>I didn&#8217;t know you had a blog too! I tried to access the link, but its locked?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-740</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Mon, 26 Oct 2009 23:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-740</guid>
		<description>Hi Bibek,

Please try this:

&lt;pre&gt;
Set oForm = DotNetFactory.CreateInstance(&quot;System.Windows.Forms.Form&quot;, &quot;System.Windows.Forms&quot;)
Set oButtonOK = DotNetFactory.CreateInstance(&quot;System.Windows.Forms.Button&quot;, &quot;System.Windows.Forms&quot;)
Set oButtonCancel = DotNetFactory.CreateInstance(&quot;System.Windows.Forms.Button&quot;, &quot;System.Windows.Forms&quot;)
Set DiagReturn = DotNetFactory.CreateInstance(&quot;System.Windows.Forms.DialogResult&quot;, &quot;System.Windows.Forms&quot;)
Set oPoint = DotNetFactory.CreateInstance(&quot;System.Drawing.Point&quot;,&quot;System.Drawing&quot;, x, y)

With oPoint
	.x = 5
	.y = 5
End With

With oButtonOK
	.Text = &quot;OK&quot;
	.Location = oPoint
	.DialogResult = DiagReturn.Ok
End With

With oPoint
	.x = 5
	.y = 35
End With

With oButtonCancel
	.Text = &quot;Cancel&quot;
	.Location = oPoint
	.DialogResult = DiagReturn.Cancel
End With

With oForm
	.Height = 500
	.Controls.Add oButtonOK
	.Controls.Add oButtonCancel
	.ShowDialog
End With

If oForm.DialogResult = DiagReturn.Ok Then
	&#039;Code to open another form
	MsgBox &quot;Opening another form..&quot;
End If

If oForm.DialogResult = DiagReturn.Cancel Then
	&#039;Code to do something else
	MsgBox &quot;Doing something else..&quot;
End If

Set oForm = Nothing
Set oButton = Nothing
Set DiagReturn = Nothing
Set oPoint = Nothing
&lt;/pre&gt;

I haven&#039;t tested this code yet. If you experience any issues with it, please let me know and we&#039;ll work together to find a solution that works for you.</description>
		<content:encoded><![CDATA[<p>Hi Bibek,</p>
<p>Please try this:</p>
<pre>
Set oForm = DotNetFactory.CreateInstance("System.Windows.Forms.Form", "System.Windows.Forms")
Set oButtonOK = DotNetFactory.CreateInstance("System.Windows.Forms.Button", "System.Windows.Forms")
Set oButtonCancel = DotNetFactory.CreateInstance("System.Windows.Forms.Button", "System.Windows.Forms")
Set DiagReturn = DotNetFactory.CreateInstance("System.Windows.Forms.DialogResult", "System.Windows.Forms")
Set oPoint = DotNetFactory.CreateInstance("System.Drawing.Point","System.Drawing", x, y)

With oPoint
	.x = 5
	.y = 5
End With

With oButtonOK
	.Text = "OK"
	.Location = oPoint
	.DialogResult = DiagReturn.Ok
End With

With oPoint
	.x = 5
	.y = 35
End With

With oButtonCancel
	.Text = "Cancel"
	.Location = oPoint
	.DialogResult = DiagReturn.Cancel
End With

With oForm
	.Height = 500
	.Controls.Add oButtonOK
	.Controls.Add oButtonCancel
	.ShowDialog
End With

If oForm.DialogResult = DiagReturn.Ok Then
	'Code to open another form
	MsgBox "Opening another form.."
End If

If oForm.DialogResult = DiagReturn.Cancel Then
	'Code to do something else
	MsgBox "Doing something else.."
End If

Set oForm = Nothing
Set oButton = Nothing
Set DiagReturn = Nothing
Set oPoint = Nothing
</pre>
<p>I haven&#8217;t tested this code yet. If you experience any issues with it, please let me know and we&#8217;ll work together to find a solution that works for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bibek Khatiwara</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-724</link>
		<dc:creator>Bibek Khatiwara</dc:creator>
		<pubDate>Mon, 26 Oct 2009 05:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-724</guid>
		<description>Hi Anshoo! thnx I have created a form and added a text box and a button (”ok”)..it’s done..but i want to display the message eg:”done” is anyone clicks on the button..so what is the syntax for buton click..

&lt;pre&gt;
With oForm
    .Height =500
    .Controls.Add oButton
End with

With oButton
        If oButton is clicked then ‘i’m searching for this code..plz help as 
        oButton.Click is not working
        display message
    End if
End with
&lt;/pre&gt;
    Thank you in advance!</description>
		<content:encoded><![CDATA[<p>Hi Anshoo! thnx I have created a form and added a text box and a button (”ok”)..it’s done..but i want to display the message eg:”done” is anyone clicks on the button..so what is the syntax for buton click..</p>
<pre>
With oForm
    .Height =500
    .Controls.Add oButton
End with

With oButton
        If oButton is clicked then ‘i’m searching for this code..plz help as
        oButton.Click is not working
        display message
    End if
End with
</pre>
<p>    Thank you in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-652</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Wed, 21 Oct 2009 00:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-652</guid>
		<description>Thanks Devendra! Its been quite a long time. How have you been?</description>
		<content:encoded><![CDATA[<p>Thanks Devendra! Its been quite a long time. How have you been?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devendra Sharma</title>
		<link>http://relevantcodes.com/qtp-dotnetfactory-creating-a-custom-form/#comment-650</link>
		<dc:creator>Devendra Sharma</dc:creator>
		<pubDate>Tue, 20 Oct 2009 19:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=333#comment-650</guid>
		<description>Great Anshoo!!</description>
		<content:encoded><![CDATA[<p>Great Anshoo!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 10/14 queries in 0.006 seconds using disk: basic
Object Caching 379/379 objects using disk: basic
Content Delivery Network via N/A

Served from: relevantcodes.com @ 2012-05-19 11:28:02 -->
