browse button in VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SarojaKannan
    New Member
    • Aug 2007
    • 8

    browse button in VB

    Hi,

    Can we place a browse button in VB
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Do you want a button ,on click event of which you can open files .

    Then use commondialog control for the same.

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by SarojaKannan
      Hi,

      Can we place a browse button in VB
      Hello,
      Add Common Dialog Control from Project > Components

      Add a command button and Common Dialog Control to your form and add this line to Command Button Click Event

      Open Dilog
      Code:
      CommonDialog1.ShowOpen
      Save Dialog
      Code:
      CommonDialog1.ShowSave
      Print Dialog
      Code:
      CommonDialog1.ShowPrint
      Color Box
      Code:
      CommonDialog1.ShowColor
      Font Select
      Code:
      CommonDialog1.FontName="Arial"
      CommonDialog1.ShowFont

      GOODLUCK
      ALI

      Comment

      Working...