|
guys another question here... how can i call the video with extension name of .wmv? what i want here is that, when i input a phrase or a word in the textbox, the video that corresponds it will show. and also, i want the videos to store in a database. how can i store the video in the database? its for thesis guys - thanks
|
|
|
|
|
Ok, you asked: < font color="aaaaaa:>what i want here is that, when i input a phrase or a word in the textbox, the video that corresponds it will show.
Are you asking to have a video come up for the path/filename of the video that you type in the textbox?
Please be more clear and I might be able to help.
|
|
|
|
|
most probably yah. when i input word or phrase in the text box, the corresponding video of that word or phrase will show.
|
|
|
|
|
Well, I don't know how to play the video, but you can look here for the code on how to. But here is an example on how to call the video.
<br />
If PhraseBox.Text = PhraseVarible Then<br />
'(Play Video Function)<br />
End If<br />
Sorry I couldn't be musch help.
|
|
|
|
|
well thanks very much!!! it will help a lot
|
|
|
|
|
Hey,
I am designing an app that will download the newest version of my software off my website. But, I want to have a progressbar that will monitor the progress of the download. I have found millions of tutorials but they have all been for VB6, and I'm using VB2005. Does anyone know how I could do this?
Thank you!
|
|
|
|
|
I've been using the OneClick feature within VS 2005 and it's easy and simple to use. I've haven't found a way to customize the downloading splash screens, yet! This will allow you to write your app and publish it to your site and set the application to check for update before it runs. This will make updates a snap.
|
|
|
|
|
Thanks, but that's not the question. I want to know how to get the progress of a download using a Progress Bar.
|
|
|
|
|
The only way you're going to get the progress of a download is if you write the code that is doing the actual download. Without that, you'll only be able to show the 0 and 100% marks since there isn't a component in the ToolBox that does download stuff and gives you progress updates.
Other than that, it's simple math.
Dim Percent As Integer = (BytesTransfered / TotalBytesInFile) * 100
ProgressBar1.Value = Percent
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sorry about that. I was preping code to post.
Just Snippets.[^]
I have test applicaiton if needed.
|
|
|
|
|
hi, i want to know how to check wether the internet connection is online or offline?? can someone give me some tips or code on how to make this happen??
and for the second question .. how can i check if the URL is valid or not (because i am creating my own internet explorer). the user puts the URL such as: "xsas" and i want to check if this is a valid URL. if its not than i make my own page to make the user see this ERROR page!
i am using vb.net! thanks to anyone who can help
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
ADY007 wrote: hi, i want to know how to check wether the internet connection is online or offline?? can someone give me some tips or code on how to make this happen??
The closest you can get is calling InternetGetConnectedState[^].
ADY007 wrote: how can i check if the URL is valid or not
You have to try it. If there is no "http://" in from of the name, put it there, then try it again. There is no other way to tell if it's valid until you try it and it fails.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thanks alot!! but if for example .. if the user writes http://www.sxanxlj.com .. and this url doesn't exists .. how can i put my error message not the 404 Error message of the windows explorer :/ ??
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
To display your own 404 Error Message, use this:
<br />
If Url.Exists = False Then<br />
WebPage.Url = "C:\Program Files\My Program\404_Page.html"<br />
End If<br />
|
|
|
|
|
but how to check if the URL is true or false. if the URL does not exists within the internet than i want to show my own webpage error.
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
There is no way to verify if a URL is good unless you try it. Sure, you can resolve the server name, but only that server can tell you if the rest of the URL is valid or not, and the only way to do that is to try it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
( please how to update SQL database from MS Access databse from local database to web server SQL database. speed is important.;);)
|
|
|
|
|
The question, as you've asked it, is unanswerable. What are you trying to do? Update the database how? Change tables? How does Access fit into this problem? How does the website fit into this? Is the SQL Server only accessible through the website?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thaks for your concern..
i have an MS Access database application, include (schools.mdb)file that has a many tables, and i have a SQL database on my site, so, i developed the same application on the web based-on SQL database, i want upload or update the SQL data from the local MS Access database when i setup the web application, and update data after changing local data daily or weekly any way..
thanks
Joe
|
|
|
|
|
I'm trying to write my own custom auto installer that will setup up PCs with the same program installation, drives, users, settings, etc. I have written out send key functions for each installation and am using Shell to start the actual setup.exe file.
I'm starting the setup.exe file first, and then using a second thread to start the send keys. As it is right now, all the installation programs want to start at the same time. How can I get them to wait for the first one to end before continuing and still allow the program to move to the thread function so that it can install?
I'm using VB.net 2003.
Thank you.
|
|
|
|
|
You don't get these things to wait for each other. You have to launch one, wait for it in your code, control it, wait for it to finish, launch another,...
Every newbie thinks it should be easy to control another application. Actually, it's one of the hardest and most tedious things to do.
How it's normally done, is batch files are written to launch these installers, usually using START command. Open a CMD and type START /? for parameters, like /WAIT. Also, the installers are launched with command line parameters to automate their installation, probably using installation scripts, if supported. You'll have to get with the manufacturer of the installation to find out what those parameters and scripts might be.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
Please how do I set papersize in my vb I did it as below but did not work.
<br />
printer.scalemode=vbinches<br />
printer.papersize= 8.5,5.5 '8.5 is paperwidth 5.5 is paperheight<br />
printer.copies=3<br />
printer.print text1.text<br />
printer.endDoc<br />
Kindly guide me on how to specify my papersize in vb such that it will be recognized by any printer.
Finally I want to print on continuous sheet my specified number of copies.
Thank you.
-- modified at 16:11 Friday 13th October, 2006
Fikunmi Feyijin
Hicad Systems
Nigeria
|
|
|
|
|
Next time, specify what the error is and on what line you're getting it.
I'm assuming you're using VB6. You can't set the PaperSize with two numbers like this. It only accepts a single number.
' vbPRPSUser is a constant that represents the number 256.
Printer.PaperSize = vbPRPSUser
' Height and Width are specified in twips. There are approximatly
' 1440 twips per inch. So, for an 8.5" by 8.5" inch page:
Printer.Height = (8.5 * 1440)
Printer.Width = (8.5 * 1440)
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave thank you.
Is printer.height same thing as paper height.
Also will the suggested coding do for continuous printing.
That is if I putan a4 sheet in the printer will it print 2 copies on the paper that is double the size specified in the printer.
Fikunmi Feyijin
Hicad Systems
Nigeria
|
|
|
|
|
OK. I haven't touched VB6 in about 6 years and I haven't written an application for continous forms in twice that time. How about checking out the documentation[^] on the Printer object and looking up the properties yourself? How about trying it to see what happens?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|