|
i was using this code to play my background music but when i play the sound effect, the previous music was stop anyone know how to overlap the audio? by continue playing the background music
:
=BGmusic
Me.AxWindowsMediaPlayer1.URL = Path.GetDirectoryName(Application.ExecutablePath) & "\sound\start.mp3"
=Soundeffect
Me.AxWindowsMediaPlayer1.URL = Path.GetDirectoryName(Application.ExecutablePath) & "\sound\step.mp3"
Or is there any other method to play 2 audio together?
-- modified at 6:45 Tuesday 7th March, 2006
|
|
|
|
|
|
ya thats y wanna know anyone have other device cause i only know use the mediaplayer... u have any clue?
|
|
|
|
|
Media Player will only play one thing at a time, so you'll have to use a library that can do mroe than that, like DirectX and it's DirectSound library.
Sorry, I don't have any examples because that's no my area of expertise or development work. Google should be able to get you hundreds of examples though.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
yes i was trying to do that , now i try using the directx and mediaplayer but seem like the problem still there...
actually have u seen anyone done it b4? or is it VB.NET cant handle that kind of function?
|
|
|
|
|
rompnet wrote: actually have u seen anyone done it b4
In every DirectX game I've every played... And without using MediaPlayer.
It's not a problem with VB.NET. It's a problem with the audio library your using. Perhaps searching for DirectSound examples might help?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i see , thanks will try searching for it
|
|
|
|
|
oh there is one thing i want to ask also the directx able to play mp3?? i using the mediaPlayer to play the mp3...casue i think using the API method cannot play mp3 only wav and midi.... is it true?
|
|
|
|
|
I have no idea. DirectX isn't my area of expertise.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I also need a help with that.
I need the create a background sound and a sound for the game I am developing.
So far I can only import the DirectX libraries and that is it.
I know I have do create a directX device and full stop. And How?
Help is very much appreciated.
|
|
|
|
|
First, you're replying to posts that are VERY old.
Second, read my post again - I'm not an expert in DirectX at all. I have not idea how to do this.
|
|
|
|
|
When i type the "<" the combobox with items is visible buth it always on same position.
Is there anny way to set it on position where i typet the "<" in text box? :->
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 60 Then '60 is Ascii value of <
Combo1.Visible = True
Combo1.Left = 500
End If
End Sub
|
|
|
|
|
have u smokeing something?
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
No, but apparently you have. The answer he gave you is a little sparse, but essentially correct.
You can position the ComboBox anywhere on the form using its Left and Top properties, or both at once using its Location property.
If the ComboBox is behind another control, you can bring it to the top by calling its BringToFront method. You might also have to set its Visible property to True you already have this ComboBox on the form and are hiding it.
If not, you'll have to create the ComboBox dynamically, you can, but you also have to add it to the form's Controls collection and wire up any events that you want to handle by hand, using AddHandler and RemoveHandler .
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
omfg i am not noob... lol
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
FeRtoll wrote: omfg i am not noob... lol
Well you act like it.
...Steve
quod erat demonstrandum
"Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once
|
|
|
|
|
Like Steve said, you're acting like one.
On top of that, you're asking questions on the level of one too. Maybe if you included a bit more detail about exactly what you're having a problem with, you wouldn't get the "shotgun" answer that covers all the basics.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Steve Sorry...
The problem is that i am from croatia and its hard to me to explain it on english wery good... I am trying buth its not easy...
Well...
My problem is that i want that the listbox shows when i press key"<" buth i want that it shows on the possition where was i typing where was the cursor buth not the mouse cursor, typing cursor(IBeam).
I did make it like this...
When key "<" is pressed if
listbox1.visible=true then<br />
listbox1.visible=false <br />
elseif listbox1.visible=false then<br />
listbox1.visible=true
buth the problem is that it is allways on possition where i place it in design.
i want that his possition is where i have typing... Like in dreamweaver when u typing tags...
Did i explain it good now?
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
Perhaps you should read the documentation on the RichTextBox more, RichTextBox.GetPositionFromCharIndex[^].
This will return the position of any character, relative to the top-left corner of the RTB window. You'll have to do a little math to get the position of where you should position your listbox relative to the top-left corner of the Form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi All,
I have posted this like hundred times and i seem to get no response from any. i am again refining my question hope that makes clear.
I have a data repeater in my webpage. which basically queries 3 tables and combines and repeats accordingly. but what i have in one table is a statatistical data like
id estimated actual year
1 20 18 2003-2004
1 23 21 2003-2004
1 24 14 2005-2006
2 20 24 2003-2004
2 15 29 2003-2004
2 16 14 2004-2005
3
4
7
etc.
missing IDs are present in other TABLES just not in statistical table.
i need to create individual chart for id 1 for year 2003-2004 and year 2005-2006 and so on for id 2 and so forth.
i can create once chart based upon a single table but its like a quering a table and based upon parameter i need to create new dataset and bind it to some web chart control.
the data should be presented something like this in a repeater.
Head information related to ID 1 from table 1
sub head description related to ID 1 from table 2
a chart for ID 1 of year 2003-2004 and a chart for ID 1 of year 2005-2005
(if no data present dont display chart)
so on for other IDs.
Please help how to achieve this or do you know any Software that does this so that i can simply purchase this software.
thanks
Robin
robin
|
|
|
|
|
Did u checked the date format?
FeRtoll Software.net
--------------------
I fertoll@net.hr I
--------------------
|
|
|
|
|
what do you mean by date?
you mean data. yeah i did check data format whats your point sir?
robin
|
|
|
|
|
|
it has nothing to do with date format. basically 2003-2004 is what users will enter and its like standard format. i just want to plot graph betwn actual vs estimated and with the year string.
hope i am not confusing you
|
|
|
|