Micro Focus QTP (UFT) Forums
Dot Net Factory Button click to run action in QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Dot Net Factory Button click to run action in QTP (/Thread-Dot-Net-Factory-Button-click-to-run-action-in-QTP)



Dot Net Factory Button click to run action in QTP - nutsndips - 06-20-2011

Hi All,

I have a scenario where in I need to create a form with buttons and upon click of each button, I need to call particular action.

My problem is, say I need to create 10 Buttons on a form and clicking on Button 1 should run action 1 and clicking on Button 2 should run Action 2 and so on....

I came up with code to create buttons using DotNet Factory but I some how dont get the idea of how I could do this with to call Actions, but I tried with Radio button and it just worked for me.

Attached is the form layout for reference.

Can you please guide me further to get this done?

Cheers
Natwarlal


RE: Dot Net Factory Button click to run action in QTP - nutsndips - 06-21-2011

Hello friends....

I need this to be done at priority.... please help me with this guys....

Cheers
Natwarlal