|
Right click on the toolbox, select 'Choose Items' Find the media player control, add it and drag it onto your form. There's tons of docs online. The ctlControls property contains all the methods to control playback.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You may try this way if you don't wanna integrate WMP in your application.
http://www.codeproject.com/csharp/wmp_pinvoke.asp
If you wanna integrate WMP in your application, please follow the steps
- You have to add WMP to your toolbox.
Toolbox -> Right-click -> Choose Items - > COMS- > Windows Media Player
- then, place this control on your form..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hello every one
I am studing vb.net-2003 and i want to create HTML help in my project so which one is the best and easy tool to do this i have tried MS HTML workshop but to me it's looks very confusing
so is there any simple and free tool available?
waiting for your kind rep.
thanks
|
|
|
|
|
bapu2889 wrote: i have tried MS HTML workshop but to me it's looks very confusing
Every software looks confusing until you get used to it. I have tried using it in my project. MS HTML workshop is pretty nice..
If you wrote the well-comments in your code, you can generate the HTML doc by using NDoc or other doc generator..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Check out the classic NDOC:
http://ndoc.sourceforge.net/[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
my application runs in background and has no visible window. But I need the WM_POWERBROADCAST Message. I've tried a dummy window but WndProc() is called only if the window is visible.
How can I receive window messages without a visible window?
|
|
|
|
|
ponchofiesta wrote: I've tried a dummy window but WndProc() is called only if the window is visible.
Not true. Non-visible windows will get their WndProc procedure called too. The message that you're looking for only goes to top-level windows, visible or otherwise, not to child windows.
What's your app's startup object?? Sub Main or an actual form?? If it's a form, did you override the WndProc of the startup form, or some other form in the app?? If Sub Main, what does that code look like?
|
|
|
|
|
hi everyone!
a friend of mine wants to do this szenario:
do several transactions and if it was successful then delete the source and continue. if it was not successful then skip all other things and goto below the operations.
meaning (in pseudo code):
on error goto errorhandling
operation 1
operation 2
operation 3
operation 4
...
operation n
errorhandling:
newthings
this means if an error occures in operation 1 to n the program has to continue with the operations starting at errorhandling:. if it is successful then it does all the operations but continues at errorhandling: as well.
when he tries to compile his code the compiler throws an error message at the position, where "errorhandling" starts in the goto-line.
i am not sure if it is possible to do this. because he wants to do some operations which are finished with a delete operation as operation n. but if one of these operations throw an exception all other would do as well. so there is no reason to try these.
does anyone of you know if this is possible to just skip some lines and to continue at a certain point if an error occures. but if no error occures the programm does line by line.
thanks.
stephan.
|
|
|
|
|
What about if you move the error handling in operation function?
Your_Main_Function()<br />
operation 1<br />
operation 2<br />
operation 3<br />
operation 4<br />
...<br />
operation n<br />
End<br />
<br />
Sub operation 1<br />
on error goto errorhandling<br />
<br />
errorhandling:<br />
newthings<br />
End sub
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Michael Sync wrote: What about if you move the error handling in operation function?
Your_Main_Function()
operation 1
operation 2
operation 3
operation 4
...
operation n
End
Sub operation 1
on error goto errorhandling
errorhandling:
newthings
End sub
I dont think that would help, since operation 2 will be called whether or not there was an error in operation 1.
|
|
|
|
|
ChandraRam wrote: operation 2 will be called whether or not there was an error in operation 1
ya. i thought this is what he want. i'm not so sure what he wanna do..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Michael Sync wrote: ya. i thought this is what he want. i'm not so sure what he wanna do..
He wants to skip all other operations and jump to the label "error handling"... at least that's what I understand from his post
|
|
|
|
|
If he got some errors in any of those operations then he wanna jump to the label?? then, what wrong with his original code? I think it should work with his original code..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
yup, thats exactly what i want to do. if an error occurs in one of the operations, then its of no sense to do all the others or even try them because they might fail as well.
lets say its a database operation, which copies from different tables to a new one which collects all together. so either everything is successful then we do have a comit and all data is stored in the new table and could be deleted in the old ones, or it is not, then we do have a "rollback" and no deleting. the comit and delete operation is done in the last few operations so thats why the operations have to be skipped. to summarize its something like
on error goto on_error
copy operation db1 to dbfinal
copy operation db2 to dbfinal
.....
copy operation dbn to dbfinal
try commit and delete db entries in db1 to dbn
on_error:
continue with the next entry
but as i said in my first posting the compiler throws an error message at the "goto label" statement.
so you think it should have worked this way? but why does the compiler throw an error message "unknown symbol at line xx position yy". this position is where the labelname starts.
does anyone of you have an idea? or has anyone of you tried anything similar? because it still doesn't work here.
thanks.
stephan.
|
|
|
|
|
hi all
i have a datagridview with three columns.
the first column contains checkboxes, the two and three contains text.
the selection mode is fullrowselect.
my problem is that, when multiple columns are selected while keeping the shift key pressed and then space is pressed with shift key all the checkboxes are supposed to be selected.
i tried the code
<br />
If flagShift = True And e.KeyCode = Keys.Space Then<br />
If DataGridView2.SelectedRows.Count > 1 Then<br />
For i As Integer = 0 To DataGridView2.Rows.Count - 1<br />
If DataGridView2.Rows(i).Selected = True Then<br />
If DataGridView2.Rows(i).Cells(0).Value = True Then<br />
DataGridView2.Rows(i).Cells(0).Value = False<br />
Else<br />
DataGridView2.Rows(i).Cells(0).Value = True<br />
End If<br />
End If<br />
Next<br />
End If<br />
End If<br />
but that will check all the checkboxes except the last one. the last one remains unchecked.
thanks in advance.
help everyone
|
|
|
|
|
Yah, I hate this problem and I hope you get a better solution than mine. I created an additional checkbox below the gridview called checkselected.
It has 2 operations:
if there are no rows selected then it forces EVERY row to have its checked value.
If there is 1 or more selected rows it forces the seleced rows to have the checkbox value.
Quote from Great Outdoors:
its a confident traveller who farts in India
|
|
|
|
|
Hi Freinds,
I m working in vb 6.0
I m open a folder from vb but user can move up or down by address bar
so i want to hide or disalbe windows address bar of that folder.
currently for open folder i m using shell function..
Please help me, How can I open folder without address bar (Windows Application).
Thank you
-- modified at 9:56 Thursday 22nd November, 2007
|
|
|
|
|
I think it is not possible to do that. All you can do is that you can have one form that looks similar to window explorer and show this form instead of opening the folder from VB program.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I want to make a chart in Visual Basic 6.0 but I don't want to make it myself. I want it to be imported from Excel for example, but not as a picture. I want it to be dynamic, that means if I chance some data in my data base, the chart will also change.
Thanks!
|
|
|
|
|
Never heard about? If you have Excel then you have it.
See for instance [^], I know it talk about VBA, anyway...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thank you very much Pallini. I managed to make a chart in Word with Visual Basic, by introducing data to chart from my database. But I want to load the chart created in that Word Document in a form in Visual Basic; I don't want to view the chart created in Word, but in Visual Basic.
Can't I create a dinamic chart direct in Visual Basic without using Word or other aplication?
Thank you very much!!
|
|
|
|
|
Hi,
i have created one Chat application where user can send message to other users on the network but right now i am specifying the ip address manually.
So,i want to get Ip asdress of all the machines which are on network.
Pls send me the code if u know this.
Girish
|
|
|
|
|
There's no way to get the list, other than pinging each IP address in the range you want. Even then, that won't get you a list of available clients. You have to try to connect to each of the live IP address to see if a client is listening. This process will take quite a long time to get through any list of addresses.
A better solution would be to have a central server that all the clients check into. This server would then be able to share the known available clients list with all the other clients.
|
|
|
|
|
|
Hi,
Anyone knows how to use login control and how to connect it with the SQl server 2005 and connect to the table within my application database. So it can match the values from the table I have already created in my database.
Rock Star
|
|
|
|