Click here to Skip to main content
15,887,477 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Update a database structure according to a model Pin
Mycroft Holmes30-Jan-15 13:44
professionalMycroft Holmes30-Jan-15 13:44 
GeneralRe: Update a database structure according to a model Pin
dilkonika30-Jan-15 18:16
dilkonika30-Jan-15 18:16 
GeneralRe: Update a database structure according to a model Pin
Mycroft Holmes31-Jan-15 21:09
professionalMycroft Holmes31-Jan-15 21:09 
GeneralRe: Update a database structure according to a model Pin
dilkonika2-Feb-15 4:35
dilkonika2-Feb-15 4:35 
GeneralRe: Update a database structure according to a model Pin
Mycroft Holmes2-Feb-15 11:44
professionalMycroft Holmes2-Feb-15 11:44 
QuestionVB.Net programming Pin
John Schlaff28-Jan-15 16:26
John Schlaff28-Jan-15 16:26 
AnswerRe: VB.Net programming Pin
Richard Deeming29-Jan-15 1:02
mveRichard Deeming29-Jan-15 1:02 
QuestionShellExecute problem Pin
AccessDeveloper28-Jan-15 6:52
AccessDeveloper28-Jan-15 6:52 
I created an access Lyric database. Then I added a table and a combo to hold song file data. Then, when the user selects a song and clicks play the code below gets executed. When I first did this it went well. WMPlayer opened up and played the song. Now it opens up the open dialog wanting me to select the file. It returns a 42. This is the first time I used this API command. Any help will be appreciated.

VB
Private Sub cmdPlay_Click()
Const klShowApp As Long = 1
Dim sPath As String, sFile As String
Dim lReturn As Long

' cboTuneLU has the following columns
'  0 Version ID
'  1 MP3 File
'  2 MP3 Path

    On Error GoTo ERR_cmdPlay_Click
    
    sFile = ksQuote & Me.cboTuneLU.Column(1) & ksQuote
    sPath = ksQuote & Me.cboTuneLU.Column(2) & ksQuote
    lReturn = ShellExecute(Me.hWnd, "open", sPath, vbNullString, sFile, klShowApp)
    Stop ' returns 42
EXIT_cmdPlay_Click:
    Exit Sub
ERR_cmdPlay_Click:
'Debug.Print CStr(Err) & " " & Err.Description
    ShowError "frmLyrics.cmdPlay_Click"
    Resume EXIT_cmdPlay_Click
    
End Sub


modified 28-Jan-15 15:11pm.

QuestionRe: ShellExecute problem Pin
jkirkerx28-Jan-15 8:13
professionaljkirkerx28-Jan-15 8:13 
AnswerRe: ShellExecute problem Pin
AccessDeveloper29-Jan-15 6:45
AccessDeveloper29-Jan-15 6:45 
GeneralRe: ShellExecute problem Pin
jkirkerx29-Jan-15 7:54
professionaljkirkerx29-Jan-15 7:54 
QuestionStringBuilder Pin
KukuhSP28-Jan-15 2:52
KukuhSP28-Jan-15 2:52 
AnswerRe: StringBuilder Pin
Richard MacCutchan28-Jan-15 4:26
mveRichard MacCutchan28-Jan-15 4:26 
GeneralRe: StringBuilder Pin
KukuhSP28-Jan-15 5:16
KukuhSP28-Jan-15 5:16 
GeneralRe: StringBuilder Pin
Richard MacCutchan28-Jan-15 5:27
mveRichard MacCutchan28-Jan-15 5:27 
GeneralRe: StringBuilder Pin
KukuhSP3-Feb-15 5:25
KukuhSP3-Feb-15 5:25 
GeneralRe: StringBuilder Pin
Richard MacCutchan3-Feb-15 6:44
mveRichard MacCutchan3-Feb-15 6:44 
QuestionIp Camera in VB6 Pin
Member 1140477026-Jan-15 21:02
Member 1140477026-Jan-15 21:02 
AnswerRe: Ip Camera in VB6 Pin
Simon_Whale26-Jan-15 22:02
Simon_Whale26-Jan-15 22:02 
GeneralRe: Ip Camera in VB6 Pin
Member 1140477026-Jan-15 22:33
Member 1140477026-Jan-15 22:33 
GeneralRe: Ip Camera in VB6 Pin
Member 1140477027-Jan-15 3:47
Member 1140477027-Jan-15 3:47 
GeneralRe: Ip Camera in VB6 Pin
Simon_Whale27-Jan-15 4:30
Simon_Whale27-Jan-15 4:30 
GeneralRe: Ip Camera in VB6 Pin
Member 1140477027-Jan-15 7:11
Member 1140477027-Jan-15 7:11 
GeneralRe: Ip Camera in VB6 Pin
Member 1140477027-Jan-15 19:51
Member 1140477027-Jan-15 19:51 
AnswerRe: Ip Camera in VB6 Pin
mohaibje30-Apr-19 1:01
mohaibje30-Apr-19 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.