Is it possible to create custom file types in Visual Basic 2008 EE?

Is it possible to create custom file types in Visual Basic 2008 EE? Topic: How to write an email friendly
June 25, 2019 / By Aubree
Question: Can I somehow specify a file type where the program i make can then save certain fields into the file? So for example, how would I, if I have four fields, enter data into all four, press save, and have a file created with its own extention? Is there an easy shortcut for this, or is the only way to just save a string to a text file and change the extension? Any suggestions welcome, as I would like to know the different ways I can do this, if any others exist. Thanks in advance.
Best Answer

Best Answers: Is it possible to create custom file types in Visual Basic 2008 EE?

Abagale Abagale | 4 days ago
Yes you can. I have written a class inside a dll that makes it very simple to does just that. It involves the registry. You you want the dll? Email me if you do. It is a lengthy process. With the DLL+++++ It comes with the: Friendly Name Content Type Full Path Extension Icon Path Icon Index You can create and delete the extension. Dane
👍 116 | 👎 4
Did you like the answer? Is it possible to create custom file types in Visual Basic 2008 EE? Share with your friends

We found more questions related to the topic: How to write an email friendly

Abagale Originally Answered: How do you make a calculator in visual basic 2008?
get some free source code from http://a1vbcode.com read there open source code and learn from there

Sparrow Sparrow
You can always specify the filename you want using the full path of the filename. For example: "C:\Users\Some User\Documents\somefile.xtension". Some methods you can use to save to a file include File.Save and the SaveFileDialog.
👍 40 | 👎 -2

Osman Osman
first of all, i dont think of that there is any utility different than seen consumer-friendly to 'convert' it to .exe secont, that's observed as making .exe from .vb or 'construction' thirdly, i dont think of that the explicit version does make an .exe on your initiatives attempt to get company or expert version finally, that's often interior the report menu or answer menu 'make answer' or 'build answer'
👍 37 | 👎 -8

Leonard Leonard
spath would have the full path with the file extension you want. bys would be an array of bytes for the info you want to save. dim fs as new io.filestream(spath,opencreate) fs.write(bys,0,bys.length) fs.close fs.dispose you could use io.binarywriter too just go dim fs as new io.filestream(spath,opencreate) dim bw as new io.binarywriter(fs) bw.write('handles almost anthing) bw.close bw.dispose fs.dispose
👍 34 | 👎 -14

Leonard Originally Answered: How could I make a random string of just letters and numbers with Visual BASIC (2008)?
Create a string that contains all the valid password chars: Dim validChars As String validChars = "abcxyzABCXYZ123" ' Fill in the rest Then use a loop to select 1 char at a time using a random number: pwd = pwd + validChars(r.Next(validChars.Length)) ETA: >> How would I take one random character from the string out at a time? That is what this bit of code in the last line does: validChars(r.Next(validChars.Length)) r is a variable of type Random: Dim r as new Random() So you get the next random number between 0 and the lenght of your validChars string: r.Next(validChars.Length) You use that number to get 1 char from validChars as an array: validChars( r.Next(validChars.Length) )

If you have your own answer to the question how to write an email friendly, then you can write your own version, using the form below for an extended answer.