Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
Private Sub Command1_Click()
     CD.InitDir = App.Path
     CD.ShowOpen
     Me.MousePointer = vbHourglass
     Me.PicChannel.Cls
     GetWavInfo CD.FileName, Me.PicChannel
     Me.MousePointer = vbNormal
 End Sub

I do not want to select with the mouse.
Instead, this code into test.waw How do I open the file directly in the Picture ...
Posted
Updated 14-Jul-14 5:38am
v4
Comments
CHill60 14-Jul-14 11:39am    
Not entirely clear. What is test.waw? If you don't want to have to click a button to make this code run then put it into the Form_Load event
[no name] 14-Jul-14 11:39am    
Can you possibly rephrase whatever your question is so that it is understandable by someone that does not know anything about your project?
Sergey Alexandrovich Kryukov 14-Jul-14 11:40am    
"Open the file directly into the picture" sounds gibberish. Probably, it's just your wrong phrasing; and the question itself makes sense. But then, you need to explain what you mean in detail. Please use "Improve question".
—SA

the thing is,
test.wav file not opening the window by selecting it with the mouse,
I want to send the picture box automatically.
which comes test.wav file "sound wave" to view.
 
Share this answer
 
v2
I know very little English.I can speak in short sentences.
I'm showing a sound wave graphic on the picture box .
I'm opening test.wav with CommonDialog .
I choose it with the mouse and test.wav is playing.
then, I am running sound waves.


but. I don't want opening with CommonDialog.

I press the button. I want to upload test.wav file immediately.
I don't want opening with CommonDialog.
for example,

Private Sub Command1_Click()

Open FileName For Binary Access Read As FreeNum
........
Open FileName For Binary Access write As FreeNum
........
End Sub

I do not know how to do it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900