|
I have encorporated Window media Player in my Vb.net Project. I am getting the different different Urls and want to play through my media player. But I am not able to play these Urls through media player.Please help me .
I am storing the url in string like str
and then giving the command
windowmedia1.url=str
but it is not playing anything
namita
|
|
|
|
|
I don't use MediaPlayer at all, but it would appear that you have to set the URL property, then call the Play method of the CtrlControls collection.
myPlayer.URL = "some URL..."
myPlayer.Ctlcontrols.play()
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Guys,
Does anyone here can help me to create a utility program in vb6 that will prevent certain exe program from running? Can anyone give me code snippets.
Thanks!
Chito
|
|
|
|
|
That's physically not possible. How would you hope it would work ? If it were possible, VB6 isn't going to do it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You can't do what you want because you'd have to hook Windows Loader to do it. This is "black-art" type stuff that has very little to no documentation on how to do it. Any examples of hooking API functions are going to be in C++ and do things that VB6 is no capable of producing a .DLL or .EXE for.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi all. I have a listview with images and my application must be able to rotate one image. I need a method to rotate 90 degrees rigth (i.e.).
Is that possible?
Regards,
Diego F.
|
|
|
|
|
Try using this:
Load the image from the listview in a picturebox.
Then:
PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
And then load it back into the listview.
I think that might do the trick.
--Zaegra--
|
|
|
|
|
I'm tryint that but it doesn't work
If DADLV1.SelectedItems.Count > 0 Then
Dim pb As New PictureBox
Dim indice As Integer = DADLV1.SelectedItems(0).ImageIndex
pb.Image = ImageList1.Images(indice)
pb.Image.RotateFlip(RotateFlipType.Rotate180FlipXY)
DADLV1.Refresh()
End If
Regards,
Diego F.
|
|
|
|
|
Why would you do this ?
ImageList1.Images(indice).RotateFlip(RotateFlipType.Rotate180FlipXY)
is all you need, unless it returns an image, then you may need
ImageList1.Images(indice) = ImageList1.Images(indice).RotateFlip(RotateFlipType.Rotate180FlipXY)
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes, i didn't think of that but that method is way better.
--Zaegra--
|
|
|
|
|
I tried that line, but no rotation is done.
ImageList1 is the imagelist that keeps the images shown in the listview
DADLV1 is the listview
I tried also that:
Dim indice As Integer = DADLV1.SelectedItems(0).ImageIndex DADLV1.SelectedItems(0).ImageList.Images(indice).RotateFlip(RotateFlipType.Rotate180FlipXY)
But nothing occurs.
It seems quite simple. I don't know why it doesn't work.
Regards,
Diego F.
|
|
|
|
|
you are rotating the image in "pb" but not placing back in "DADLV1"
so "DADLV1" is still having the unrotated image.
Regards
KP
|
|
|
|
|
It still doesn't work.
Maybe I'm trying to rotate the wrong thing
Regards,
Diego F.
|
|
|
|
|
I could do it with that code:
Dim indice As Integer = DADLV1.SelectedItems(0).ImageIndex
Dim im As System.Drawing.Image = ImageList1.Images(indice)
im.RotateFlip(RotateFlipType.Rotate90FlipNone)
ImageList1.Images(indice) = im
DADLV1.Refresh()
But now the problem is that images have different vertical and horizontal size and the rotation just work in a perfect square as I see, so it doesn't rotate the whole image.
Regards,
Diego F.
|
|
|
|
|
I still keep trying.
Must all images in a listview have the same size? My images have the proportions of a standard document and I would like rotated images look landscape instead of vertical. I don't know if that's possible.
Other solution is to assign square size to all images, but then images adapt the new size and the proportions are wrong.
Regards,
Diego F.
|
|
|
|
|
hi..
how to create a .exe file in vb.net
its very urgent
thanks & regards
|
|
|
|
|
from menu bar
Build -> Build Solution
Regards
KP
|
|
|
|
|
Press F5 or CTRL-B. Or, choose the option to build from the Build menu.
If you're asking this question, I can only recommend that you buy a book and work through it, before asking any more.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
what i can help u is that go to the Solution explorer and choose ur project->Right click on it->then Build Solution
The .exe file will be in ur project location folder in BIN exactly
Try And tell me
ok
job
|
|
|
|
|
hello,
I have a question: How can i let my program respond if it is not active, for example when i play a game? I like to let it respond when the PrintScreen (SysRq) button is pressed when i am in-game.
Thanks in regard, Zaegra
--Zaegra--
|
|
|
|
|
You need a system wide hook to catch the event you're looking for, and activate your program.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Yes, a program that watches the keyboard across the whole system. If you search CP, you'll find articles on it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Friends,
I am getting the exception on this line
ballot = CType(Context.Handler, ballotpaper)
Invalid Exception code was unhandled by user code
unable to cast object of type 'ASP.electionvote_aspx' to type netvoting.ballotpaper
I posted my code here:
Dim ballot As ballotpaper
Dim str As String
Dim ecode, bcode, empid, voterid, sql1, sql2, elcode1, dt As String
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
ballot = CType(Context.Handler, ballotpaper)
str = ballot.radiostate
'*****************************
***************************
If Application("CON").STATE = 1 Then Application("CON").CLOSE()
Application("CON").OPEN()
Can any guide me to come out from this exception?
Thanks in Advance
|
|
|
|
|
Eswar4u wrote: ballot = CType(Context.Handler, ballotpaper)
Context.Handler is the web page, electionvote.aspx. It cannot be cast to type ballotpaper.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|