Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

Opening Printers Container from VB app

I wrote a VB app that does all kinds of stuff.

I want to add an option to click on a button and have the printers container (from control panel) open up, preferable in the same window.

How can this be done?
0
visitmeoo
Asked:
visitmeoo
  • 2
1 Solution
 
zzzzzoocCommented:
The below works in XP. I'm not sure about other OS'.

Private Sub Form_Load()
    Call Shell("control.exe printers", vbMaximizedFocus)
End Sub
0
 
zzzzzoocCommented:
This may work in Win9x:

Private Sub Form_Load()
    Call Shell("rundll32.exe shell32.dll,Control_RunDLL main.cpl @2", vbMaximizedFocus)
End Sub
0
 
visitmeooAuthor Commented:
The solution that I accepted works in W2K.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now