What Is Equivalent Of WMP.CurrentPosition Of WMP Classic In New WMP 11?
Jul 15, 2009
Can anyone tell me what is the equivalent of WMP.CurrentPosition of WMP classic in the new WMP 11? I'm playing a file with WMP 11, and want to get the current time position live with a timer control.
View 1 Replies
ADVERTISEMENT
Mar 21, 2012
I am working with WMP and trying to change location where my music file starts to play.
timespan += CDbl(((60/BPM) * 4) / _NotesValues.ElementAt(i)) ' creating timespan from collection of notes...
[code].....
View 2 Replies
Jul 16, 2011
I have 2 forms. One is the visual Media Player its self, and the other is the controls.
I have tried a few ways to get the the media players current position using a trackbar. Here is one of them. This one is with the trackbar maximum value set to 100. And as a note the video file is 297 seconds long.
Private Sub TimeLineTrackBar_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimeLineTrackBar.Scroll If FPlayer.VideoPlayer.currentMedia.duration <> 0 Then
[Code]...
View 1 Replies
Sep 29, 2010
I have set up a form with windows media player on it, it has four buttons and a text box.[code]Button 4 should move the movie from its current position to the current posiotn + whatever is in the text box.It all works ok apart from button 4 which doesn't do anything.[code]
View 2 Replies
Mar 26, 2012
i am working on project jigsaw puzzle game . i have done with coding in classic asp using vb script and it working properly . i want to do same coding asp.net using vb.net but css style i was written it was not working properly in asp.net
<html>
<head>
<script type="text/javascript">
[Code]......
View 1 Replies
Aug 27, 2009
I need to be able to use an Classic ADO Recordset in an VB.Net application. I need to be able to Edit the recordset in a gridview, unfortunatly, the DataGrid in VB.Net only seems to work with ADO.NET.I am not in a position to redesign the application to use ADO.NET, much of the database code was converted from an old VB6 application. Is there any way to either convert back and forth between a recordset and RecordSource so that I can use the dataset that I already have, or is there a classic ADO datagrid that is compatible with VB.NET.
View 2 Replies
Jun 21, 2012
I'm using ASP Classic but I need to use the System.IO.DriveInfo namespace in VB.NET. How to do that?
View 3 Replies
Jun 21, 2012
I'm using ASP Classic but I need to use the System.IO.DriveInfo namespace in VB.NET. How to do that?
View 1 Replies
Apr 3, 2012
I've created a VB DLL in Visual Studio 2008 Professional. Not sure what I need to do to call the code below from a classic asp page. I have had other ASP pages to call a DLL. I'm not sure If I have a Dot Net DLL
or what. Bottom line I just want to create a simple DLL that can be called by
multiple users from a classic ASP web page.
[Code]...
View 4 Replies
Oct 29, 2009
I realize that VB.NET and ASP.NET are the successors of their seemingly obsolete classic counterparts, but I have noticed that some job descriptions still list VB6 and classic ASP as requirements. This may be because they want people who can convert code from classic to .NET, but I'm not really sure.
View 8 Replies
Dec 17, 2011
I am converting an existing classic ASP website to (VB) MVC and I don't want any of the existing URLs to break. I have read many posts (like this one: Routing Classic ASP Requests To .NET - SEO Redirects) about how to do the proper 301 redirect. With the latest MVC release, I've gathered that
Response.RedirectPermanent(objRedirect.new_url, True)is all that is needed.
I have entered all of my old URLs in a database table with a corresponding column of the new URL. I have added code in my custom 404 page to get the original URL:
Dim strURL As String = Request.RawUrl.Substring(Request.RawUrl.IndexOf("aspxerrorpath=") + 15).ToLower()
so I can look it up in the database. (Interesting sidenote, MSDN's documentation here - Redirect Mode - seems to say that if I set RedirectMode=ResponseRewrite in the CustomErrors section of my web.config, I won't have to worry about doing the above, but when I've tried that, I get IIS errors saying it won't serve an ASP page?The problem I am encountering is that any of my old, Classic ASP URLs that have the same directory as a new MVC route are somehow being partially routed. For example, "/test/default.asp" shows up as "/test/test" in the above strURL variable of my error page.
[Code]...
View 2 Replies
Jan 26, 2011
Is it possible to call a function in a VB.Net dll without having registered the dll file? I need to call it from ASP Classic on shared hosting web server.
View 2 Replies
Sep 9, 2010
CODE:
Explain what the lines of code above are doing? i'm more interested in the first line as the method it is written in exits when it hits that line, so apparently the variable oXML isn't being set. i know that oXML is supposed to be set to some kind of COM object but can you explain the "Msxml2.DOMDocument.4.0" part a bit more? what is that, where is that, and what will it look like in .NET (this code is a classic asp)? i don't know what the second line of code above is either but the method never even reaches it so if you have any ideas about what that is doing would be great too.
View 3 Replies
Sep 7, 2010
We are looking to port our existing classic ASP application to .NET, but we're unsure of what language to use for the new app. I personally would 'prefer' C#, as I'm more familiar and comfortable with that languages way of doing things, but, the original code is VBScript, so it would possibly be easier to port to VB.NET ... One possible situation I fear would be that, because the code is so similar between the two variants of VB, that we might end up getting stuck on something that is not similar between the two, even though it looks like it would work. A shift to a wholly different language might avoid that kind of situation. Does anyone have any practical examples of this kind of situation? Insights to illuminate the issue with? Do the potential benefits of a complete paradigm shift outweigh the gains from a high degree of 'copy-and-paste-ability' ?
View 9 Replies
Jan 24, 2011
We have a site and a logged in section of the site that all was written in classic asp. We are starting to convert the site pages to asp.net 3.5. We are starting with the easiest pages (text mainly) first then we will rewrite the web application part of the site.My question is - Is it possible to run the new asp.net 3.5 pages with classic asp pages? Or will we need to rewrite everything before deploying?
View 1 Replies
Feb 15, 2011
I want Favorites/Bookmarks on a web browser.I want it to list favorites in a listbox (if possible) and when you click on a favorite, it will take you to that page.I also want it to add bookmarks on add bookmarks button click I also looked at source of other programs and couldn't find what I'm looking for.I using TabControl1 by the way.I would like to not use IE favorites, but if I have to, it's OK.
View 2 Replies
Apr 17, 2011
In my ASP.NET app, I'm using classic ADO 2.8 to save some data into an Access database. (Or a Jet database, for those who insist that Access is just the front-end.) So I have a RecordSet containing some data, and I want to set the value for some fields, but first I need to know the field type. So I use the Recordset.Type property:
Dim fieldType = rs("MyField").Type
And that unexpectedly results in an error: MissingMethodException was unhandled by user code -- Error: Missing method 'instance valuetype ADODB.DataTypeEnum [MyProjectName] ADODB.Field::get_Type()' from class 'ADODB.InternalField'.
Considering that it is .NET itself that has created the .NET/COM interop assembly, any idea why?And here's the strangest thing: When the debugger stops and reports the error and takes me to the spot in my code where it happened, and it has that great feature by which you can hover the mouse over any variable etc. and it will show its value -- so I hover over the rs("MyField").Type part, and, lo and behold, it shows the correct value!So if it could evaluate it at debug-time, why did it throw an error at run-time?
View 2 Replies
Aug 20, 2010
In ASP.Net two of the possible ways to make the zip files are
Sharp Zip Library
Dot Net Zip Library
How can i use any of these in Classic ASP to make the zip files ? And which one will be better ?
View 3 Replies
Aug 3, 2011
I am trying to over come this paoblem from last 2 days But i am not able to overcome.I was able to set up the environment so that I can call .NET method (via COM) from a classic ASP page.Everything actually works as intended until when I have to call a .NET method that requires a .NET type.So I have a method named SetTable Like Below I have a function like this in .Net
Public Sub SetTable(ByVal _City As City, ByVal _Country As Country)
'doing some thing
End Sub
and i have asp code like this:
dim CountryUtil, City, Country
set CountryUtil= Server.CreateObject("mydll.CountryUtil")
set City= Server.CreateObject("mydll.City")
[code]....
' I get this error here:
'Microsoft VBScript runtime error '800a0005' 'Invalid procedure call or argument: 'SetTable'
View 2 Replies
Jun 21, 2010
Using visual studio 2008 environment, i would like to change a classic windows application design, so i'm wondering if there is an idea a bout this. i've find some skins like irriskins ( www.sunisoft.com ), but i'ts not what i'm looking for.
View 1 Replies
Oct 15, 2009
Public Class Form1
'Click event for the Calculate button!
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
[code].....
View 4 Replies
Nov 14, 2010
how to implement a classic layout design in vb.net (2.0).The application design is the classical toolbar panel at the top and different panels stacked at the bottom. Depending on the button pressed at the top in the toolbar panel a different panel at the bottom will be available.This is thought to have different part of the software available on different panel but with the toolbar panel always available at the top.To implement this I thought:
1) one tablelayout with 2 rows. First row contain a panel with the button (toolbar panel) and adding/removing hte correct panel requested on the bottom row.
View 2 Replies
Jun 8, 2010
I've got an ASP.net file, and I'm trying to include dynamic code which was easy in classic ASP. Here is what I have tried so far:
[Code]...
View 2 Replies
Sep 1, 2010
I am calling Classic ASP Webservices from a .NET application. I have two instances of slow processing of the webservice and fast processing. The slow way (several seconds at the most) is where I actually read the data returned as such:
Dim oRequestAOCP As WebRequest
Dim oResponseAOCP As HttpWebResponse = Nothing
Dim dataStreamAOCP As Stream = Nothing
Dim readerAOCP As StreamReader = Nothing
[code]....
What can I do to speed things up when I need data returned?
View 2 Replies
Oct 9, 2009
Ok i am making a game in visual basic where its 1998 and you have windows 95 and you find time travel software and travel to different time periods with different operating systems...so far i have coded windows 95 and partly windows 98 into the game and have a good time travel sequence... (this will be a completely free game in the future)
View 9 Replies
Oct 8, 2009
I am going to open word document inside the browser. In here I am using following codes Response.ContentType = "application/vnd.ms-word"Response.Buffer = True Response.ContentType = "application/vnd.ms-word" Response.AddHeader "content-disposition", "inline; filename =Document000001.doc" This is working fine in widows server 2003 .but in windows server 2008 this its giving error "user does not have access privileges ".But here i am testing as a Admin user. wt kind of additional should I have to open this doument?
View 2 Replies
Jul 31, 2009
This runs correctly, but Excel remains active after close.
If I don't create the range objects below, everything seems to work (with no output of course). Does anyone have any idea on how to keep Excel from staying in memory. Also... in the tests I'm running, I do not make the application visible.[code]...
View 3 Replies
Dec 15, 2010
Should I run a classic VB6 app thru the upgrade wizard in VS08 or should I re-design it from scratch. The database is a mess. Originally designed in ACCESS and imported to MS SQL SERVER. The main entities are e.g. ROLLER_SKATES and RENTALS. If you would like to rent a pair of roller skates you can. So this more or less comprises an Inventory system for the roller skates. Now you have 2 different skating rings. Skate-B1 and Skate-Z9, and you keep redundant and duplicate data from the previously mentioned entities in the skating ring tables as well.It's a nightmare.
At least the tables have row ID's. But no explicit foreign keys, just implicit columns identically named that "seem" to correspond to each other. But the rest of the table's attributes all default to NULL. Considering what C.J Date says about Types in his book SQL and the Relation Model, isn't it desirable to have CHECK CONSTRAINTS on attributes?
View 4 Replies
Jul 28, 2009
I have a classic ASP page which reads incoming XML, Queries the database based on the values in the XML and returns an XML page with the results from the query. How can i invoke a .NET webservice with some values which sends to the classic ASP page and returns the results as a Data Set?
View 2 Replies
Oct 8, 2011
I am currently creating the classic Pong game in VB.Net. I have a few questions regarding angle of approach and rebound.
For example if the ball hits the wall at roughly a 30 degree angle then it should roughly bounce off the wall at ~30 degrees. This is my first query, how would I achieve this as I cannot figure out how. It is currently bouncing the ball off the wall by altering ballXspeed and ballYspeed by 5 or -5.
My second query is that of the ball hitting the paddle, if the ball is to hit to top 0% - 5% of the paddle it will bounce off at a different angle opposed to if the ball hit the paddle in the 15% - 20% zone of the paddle.
Here is my code in its entirety:
Public Class Form1
Dim ballXSpeed As Single
Dim ballYSpeed As Single
[CODE]...
I understand that you cannot do the work for me and I don't expect you to. Would it be possible for help with the pseudo-logic or a particular area. I forgot to mention that the ball currently bounces off the paddles at a random angle.
Hence:
ballXSpeed = -5
ballYSpeed = New Random(DateTime.Now.Millisecond).Next(-10, 10)
View 1 Replies