DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: cd browser

  1. #1
    Join Date
    Apr 2007
    Posts
    6

    Smile cd browser

    can u send me a code, enable to browse a cd? please send it to my email add enkil_221@yahoo.com. thanks
    Last edited by myforum; 04-24-2007 at 06:12 AM. Reason: change

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    You should never post your email address in an open post on an open forum. Mail spam bots can pick that up and before you know it, your mailbox is full of junk mail. If you wish to share your email address with other forum members, please do so via the existing PM system.

    In addition, it would be better if all answers to questions be publically posted rather than sent via EMail or PM. That way, everyone with a similar problem can benefit.

    Are you familiar with using the Common Dialog control?

  3. #3
    Join Date
    Apr 2007
    Posts
    6
    im sory, because its my first time to join a forum... actually i use Common Dialog Control.. but i want a code to browse a cd while my program is inside the cd... thanks for your concern=)

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    By browse, I assume you mean just looking at what is on the CD, correct?

    It should show up with the Common Dialog.

  5. #5
    Join Date
    Mar 2005
    Location
    Los Angeles, Calif. AKA: Gangsta Yoda™
    Posts
    455
    Or do you mean to open up Windows Explorer and have it opened to the CD?
    If soo then using ShellExecute API would be the way to go.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer code questions via PMs.
    Microsoft MVP 2006-2009
    Office Development FAQ (VBA, VB6, VB.NET, C#)
    Software Engineer MCP (VB6 & .NET)
    Reps & Rating PostsVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address List

  6. #6
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Example of what RobDog888 speaks
    Code:
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
    ByVal lpOperation As String, ByVal lpFile As String, _
    ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    
    Private Const SW_SHOWNORMAL = 1
    
    Private Sub OpenExplorer(Optional StartDirectory As String)
    ShellExecute 0, "Explore", StartDirectory, vbNullString, vbNullString, SW_SHOWNORMAL
    End Sub
    
    Private Sub Command1_Click()
    'To Launch Windows Explorer With Specific Directory
    OpenExplorer ("C:\Program Files\")
    End Sub

  7. #7
    Join Date
    Apr 2007
    Posts
    6

    thanks=)

    thanks rob and hack....

Similar Threads

  1. Replies: 0
    Last Post: 03-28-2007, 03:06 AM
  2. Same session browser issue.
    By rukmal in forum Web
    Replies: 2
    Last Post: 12-12-2006, 09:56 AM
  3. Replies: 0
    Last Post: 05-31-2005, 07:29 AM
  4. Replies: 1
    Last Post: 11-21-2001, 11:35 AM
  5. Replies: 0
    Last Post: 09-13-2000, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center