Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
prompt Dialog Box
#10
Solved: 11 Years, 4 Months ago
hey, Have you tried running this code? this works exactly as you need.
please go through the code again,you willl find the code for OK button is already there and t is working exactly as you need

Code:
oButton.Text="OK"
Pos.X=60

Pos.Y=CInt(oGroupBox.Height)+20
oButton.Location=Pos
oDForm.CancelButton=oButton

oDForm.Controls.Add(oGroupBox)
oDForm.Controls.Add(oButton)
In case the button is not visible then try resizing the form or remove following statements
Code:
oDForm.width = 250
oDForm.height = 190

hey, Have you tried running this code? this works exactly as you need.
please go through the code again,you willl find the code for OK button is already there and t is working exactly as you need

Code:
oButton.Text="OK"
Pos.X=60

Pos.Y=CInt(oGroupBox.Height)+20
oButton.Location=Pos
oDForm.CancelButton=oButton

oDForm.Controls.Add(oGroupBox)
oDForm.Controls.Add(oButton)
In case the button is not visible then try resizing the form or remove following statements
Code:
oDForm.width = 250
oDForm.height = 190

Reply


Messages In This Thread
prompt Dialog Box - by ramesh.tahiliani - 09-02-2009, 02:45 PM
RE: prompt Dialog Box - by basanth27 - 09-02-2009, 02:51 PM
RE: prompt Dialog Box - by ramesh.tahiliani - 09-02-2009, 04:09 PM
RE: prompt Dialog Box - by basanth27 - 09-02-2009, 04:29 PM
RE: prompt Dialog Box - by ramesh.tahiliani - 09-02-2009, 04:38 PM
RE: prompt Dialog Box - by Saket - 09-02-2009, 05:36 PM
RE: prompt Dialog Box - by Saket - 09-02-2009, 06:11 PM
RE: prompt Dialog Box - by ramesh.tahiliani - 09-02-2009, 06:35 PM
RE: prompt Dialog Box - by basanth27 - 09-02-2009, 06:43 PM
RE: prompt Dialog Box - by Saket - 09-02-2009, 06:43 PM
RE: prompt Dialog Box - by ramesh.tahiliani - 09-02-2009, 08:32 PM
RE: prompt Dialog Box - by ramesh.tahiliani - 09-04-2009, 12:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Automating save dialog box in windows using UFT shipu 0 4,782 01-16-2015, 07:54 PM
Last Post: shipu
  QTP 11 - Chrome 24. Dialog box is identifying as Win object. Kannan R 0 3,090 08-13-2013, 08:10 PM
Last Post: Kannan R
Exclamation Getting run time error while executing the QTP script in command prompt. vishruth143 1 5,644 07-15-2013, 05:41 PM
Last Post: vinod123
  Dialog box differs on different browsers version (IE7 and IE9) for same application visitjaga 1 2,788 12-07-2012, 05:14 PM
Last Post: Ankesh
  Default value in Edit Box when Check Box is checked nacchio 2 5,092 07-18-2012, 12:21 PM
Last Post: sree.85

Forum Jump:


Users browsing this thread: 2 Guest(s)