Thanks, it's nice to know that whenever I get stuck i've always got Tek-Tips to help me. It's incredible to think that before computers were invented we had to mess things up ourselves!
I have a path (eg. "C:\My Documents\file.txt") and I want to know:
The filename (in this case "file.txt")
The directory (in this case "C:\My Documents\")
How would I do this? It's incredible to think that before computers were invented we had to mess things up...
I've connected my TV to my PC via the s-video port on my video card. In the display settings in windows XP you can move the 2 screens around to show how they are located in relation to one another but I want both my TV and PC to show exactly the same thing. How would I do this? It's incredible...
To save use:
Dim dateiname As String, dateinr As Integer
dateiname = App.Path & "\filename.txt"
dateinr = FreeFile
Open dateiname For Output As dateinr
Print #dateinr, (Text1.Text & vbCrLf & Text2.text & vbCrLf & Text3.text & vbCrLf & Text4.text)
Close dateinr
To access certain lines...
I'm using the below code to download files through the internet in my VB app. How can I show the progress in a progress bar, I think I would have to use different code.
Dim b2() As Byte
Open WDir & "\cybot.exe" For Binary Access Write As #1
b2() =...
Whenever I click a JavaScript print button within a webpage my computer restarts itself. I'm using IE6 on Windows XP. Does anyone else have this problem, how can it be fixed?
Thanks,
Jonahon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
Ignore the previous post, I've just realised that I forgot the ", icByteArray" on the end of the downloading from URL.
Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
The following code should return the date the file was last modified.
Private Function GetLastMod(strURL As String)As String
Dim strHeader As String
'Cancel any current operations
Inet1.Cancel
'Set protocol to HTTP
Inet1.Protocol = icHTTP
'Open the URL URL
Inet1.OpenURL (strURL)...
The following code overwrites a picture on the users machine with a file downloaded off the Interent by the INet control. But once the download is complete the gif picture cannot be viewed. I think it might have something to do with the 'Binary' part because when downloading plain text files or...
Thanks JustinEzequiel thats exactly what I needed to know but i've just found this great tutorial on the subject at this site.
http://www.vbexplorer.com/vb_feature/august2000/command_line_arguments.asp
Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
I'm not sure if that's what it's called, but what I want is to have an extra peice of writting at the end of the 'Target' part of a shortcut. Then when the shortcut is double clicked on my program will open and do a certain thing. If the shortcut does not contai the extra writting then it will...
OK, I just don't understand the data control, what I want is to do is the following and I can't figure it out:
- User enter's username and password then cliks OK.
- My App checks to see if it is a valid username by searching through the database.
- If the username is corrent it will then check...
Anyone know how to create hyperlinks in a rich text box, or is it not possible?
Thanks,
Jonahon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
How can I count the number of files which have no file extension (the file dosen't have .something on the end of the file name) in a particular directory?
Thanks Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
Thats what I was thinking, or I could insert my information then the contents of the Rich Text Box into another (invisible) Rich Text Box which I colud then print.
Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
I'm using the following code to print the contents of a Rich Text Box:
Text1.SelPrint (Printer.hDC)
How would I print some other information at the top of the message which is not included in the actual Rich Text Box itself?
Thanks,
Jonathon. Computer problems? Have you checked the loose nut...
I don't think you read my last post, i'm not using the ado object/control. I'm using the Data one. In the RecordSource property i'm supposed to specify the table I want to access from the database but I get an error because vb6 can't recognise my Database for some reason.
Jonathon. Computer...
What is .Provider?
Here are what some of my properties are set to:
Connect = Access
DataBaseName = C:\Documents and Settings\Jonathon\My Documents\My Visual Basic projects\NetMessage\nmdata.mdb
BOF & EOF = 0 - Move first
Exlusive = False
RecordsetType = 0 - Table
RecordSource = CAN'T FILL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.