Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: JonathonC
  • Content: Threads
  • Order by date
  1. JonathonC

    Extract filename ad directory from path

    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...
  2. JonathonC

    TV screen SAME as PC monitor

    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...
  3. JonathonC

    Download progress

    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() =...
  4. JonathonC

    JavaScript print

    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?
  5. JonathonC

    MSInet downloading gif files

    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...
  6. JonathonC

    Command line arguments (I think)

    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...
  7. JonathonC

    Database's: what???

    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...
  8. JonathonC

    Hyperlinks in rich text box

    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?
  9. JonathonC

    Count number of files in a folder

    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?
  10. JonathonC

    Printing Rich Text Box

    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...
  11. JonathonC

    Database error

    When I goto set the RecordSource property of a data object, I get the error "Unrecognized Database format". I'm using Access 2000 and VB6. Why is my Database unrecognized? Thanks, Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
  12. JonathonC

    Parse string

    I have the string F,50 and a want to split the string into two, I want to get the part before the comma (F in this case) and the part after it (50 in this case) and then save each of these parts to two separate strings. How would I do this? Thanks, Jonathon. Computer problems? Have you checked...
  13. JonathonC

    My toolbar crashes when a button is clicked

    In VB5 I've created a program which has a Toolbar. This has never happened before but when one particular button is clicked on, the program freezes. I have had this button in the toolbar for a few months without problems and now out of the blue this happens. Has this happened to anyone else...
  14. JonathonC

    Remove directory and it's contents

    I've looked though tons of sites and can't find anywhere any code for completely removing a directory and all, files, subfolders, files and subfolders within subfolders (and so on) from a specified directory. Any help most appreciated, Jonathon.
  15. JonathonC

    Getting certain lines from Text file

    Ok, i've go this piece of code to get a certain line from a text file. Dim LinesFromFile as new collection Open FilePath For Input As #1 Do While Not EOF(1) Line Input #1, MyString LinesFromFile.add MyString Loop Close #1 ' Close file. MsgBox "FirstLine=" & LinesFromFile(1) How...
  16. JonathonC

    Creating a text file

    I have 2 text boxs and a command button on a form, when the button is clicked I want "whatever_has_been_typeded_in_the_first_text_box.txt" to be created. Also the contents of the second text box I want to be put into the text file. I then want the file to be saved to the directory...
  17. JonathonC

    Check for installed program

    Is there a way, mayby through the registry, to check to see if a program is installed. If it is installed then I want the code to check to see if the program is open. Thanks, Jonathon.
  18. JonathonC

    Check for CD

    How can I get my app to check to see if there is a CD in the CD Rom drive. If there is a CD inserted I want the app to do this: Test = Environ(&quot;SystemRoot&quot;) If Dir(&quot;D:\Search&quot;) <> &quot;&quot; Then brwWebBrowser.Navigate (&quot;D:\Parts\index.htm&quot;) Else Form1.Show...
  19. JonathonC

    Printing a web browser

    How can I allow the user to print the HTML page displayed in a web Browser when they click on on a Toolbar button. Thanks in advance, Jonathon.

Part and Inventory Search

Back
Top