SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Dec 2006
    Posts
    304
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Prompt Dialog with Radio buttons by DotNetFactory

    Hi Guys,
    Here is the code that shows the radio buttons in a dialog and allows the user to select.

    Set objForm = DotNetFactory.CreateInstance("System.Windows.Forms .Form", "System.Windows.Forms")

    Set objRd1 = DotNetFactory.CreateInstance("System.Windows.Forms .RadioButton", "System.Windows.Forms")
    Set objRd2 = DotNetFactory.CreateInstance("System.Windows.Forms .RadioButton", "System.Windows.Forms")
    Set objGb = DotNetFactory.CreateInstance("System.Windows.Forms .GroupBox", "System.Windows.Forms")
    Set objBtn2 = DotNetFactory.CreateInstance("System.Windows.Forms .Button", "System.Windows.Forms")
    x=10
    y=10
    Set p1 = DotNetFactory.CreateInstance("System.Drawing.Point ","System.Drawing",x,y) 'This will provide the locations(X,Y) for the controls

    objRd1.Text="Radio1"
    objGb.Location=p1

    p1.Y=30
    objRd1.Location=p1
    p1.Y=CInt(objRd1.Height)+CInt(objRd1.Top)+10
    objRd2.Location=p1
    objRd2.Text="Radio2"
    objGb.Text="Select The Radio Button"
    objGb.Controls.Add(objRd1)
    objGb.Controls.Add(objRd2)
    objBtn2.Text="OK"
    p1.X=60

    p1.Y=CInt(objGb.Height)+20
    objBtn2.Location=p1
    objForm.CancelButton=objBtn2

    objForm.Controls.Add(objGb)
    objForm.Controls.Add(objBtn2)
    objForm.StartPosition=CenterScreen
    objForm.Text="Mohan kakarla"
    objForm.ShowDialog
    If objRd1.Checked Then
    msgbox "You have selected Radio 1"
    elseif objRd2.Checked Then
    msgbox "You have selected Radio 2"
    else
    msgbox "No Radio button was selected"
    End If

    See the following site for more examples on DotNetFactory


    http://quicktestprofessional.wordpre...uncategorized/

  2. #2
    Senior Member
    Join Date
    Nov 2007
    Location
    Beautiful \'INDIA\'.
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Prompt Dialog with Radio buttons by DotNetFactory

    Hi,

    In the same can we prompt a Dialog with combo boxes by DotNetFactory?
    Regards,
    Krrishna

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Posts
    304
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Prompt Dialog with Radio buttons by DotNetFactory

    yes we can do

  4. #4
    Senior Member
    Join Date
    Nov 2007
    Location
    Beautiful \'INDIA\'.
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Prompt Dialog with Radio buttons by DotNetFactory

    Can you give some info about that?
    Regards,
    Krrishna

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:20 AM.

Copyright BetaSoft Inc.