Just Show The File Extensions?
Oct 8, 2009
I have a combobox that shows all filenames in a partisular folder, how can I just show the File Extensions?
Dim ComboBox1Items As List(Of String)
Dim myDir As New System.IO.DirectoryInfo(TreeView1.SelectedPath)
ComboBox1Items = New List(Of String)
[Code].....
View 8 Replies
ADVERTISEMENT
Mar 22, 2011
im used to C programming.
Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click
timedate.Stop()[code]......
The problem is that if I save a file I get "myfile.GDL" if I overwrite that I get a new file "myfile.GDL.GDL" ect.the other problem being that the filtering in the windows save/open dialog wont show .GDL files unless I select "all files".
View 6 Replies
Jul 1, 2011
I'm using the FileSaveAs dialog control to allow the user to select a filename to save a file either as a doc file, an rtf file or a pdf file (that part was easy).However, after a bit of testing, it seems that the file extension doesn't automatically change when selecting the different file types.If the filename in the dialog is Foo.doc and I select FileType *.pdf and click "Save", my app still tries to save the file as a doc type.Virtually every other MS app automatically changes the extension to match a selected file type from the Office Suite to Paint. here's my code:
Dim dlg As New SaveFileDialog
dlg.InitialDirectory = m_sReportFolder
dlg.FileName = sProjectName & ".docx"[code]......
View 7 Replies
Nov 5, 2006
I'd like to inquire if it is possible to create a specific file extension like for example .wew and when the user double clicks over the that kind of file ,it excutes the programm associated with it ,and how can the contents be interpreted by the program, I tried to find how to do that ,and I only found soultion that deal with windows shell scripting
View 3 Replies
Aug 26, 2011
I am trying to open files with different extension which are not supported by windows as well.Extension like (.bin,.dat,.lzc etc etc) Is there any way i can access these files by using any emulator?
View 1 Replies
Jan 13, 2009
the problem is I'm trying to access a file that has no file extension. I think you can see why this is so difficult. The specific file I'm trying to edit is the hosts file (C:\Windows\System32\drivers\etc\hosts).
View 2 Replies
Oct 12, 2009
I get how to do it, and i have been to [URL] before. My question is about what doing that does, is it possible to reverse it? What if you do not know where your program will be, and you are just testing it for now? Is there any way for it to "find" your program, or an easy way to edit where it is opened? For that matter, is it possible to tell if the file has been associated already, is it an issue to try and reassociate? Finally, how can you set the .ico file it uses?
View 1 Replies
Jun 23, 2012
I am creating a program which can store files, and I display their names in a list box, with their contents in another list box. My program can read the file names but has the file extension ".txt" added to all of them, meaning that the program cannot read the contents. How can I remove ".txt" from them? [code]
View 3 Replies
Nov 11, 2011
I'm using the following code.
Dim dir As New IO.DirectoryInfo(FolderBrowserDialog.SelectedPath)
Dim files As IO.FileInfo()
Dim filename As IO.FileInfo
If (rbNoSubfolders.Checked) Then
[Code]...
I'm getting an "Illegal characters in path" error. How can I fix this?
View 4 Replies
Mar 19, 2009
Basically, I want to be able to say: here, I want to be able to chose my drive (in this case C:) and i want to be able to get the following extentions: .txt. Also i want it to list ALL .txt files in the C drive in either a textbox or listbox.
View 1 Replies
Mar 12, 2010
How can I write this
Path = "C:"
For Each FoundFile In My.Computer.FileSystem.GetFiles(Path, FileIO.SearchOption.SearchTopLevelOnly, "FILE*.10") _
And For Each FoundFile In My.Computer.FileSystem.GetFiles(Path, FileIO.SearchOption.SearchTopLevelOnly, "FILE*.09")
'do code
Next My goal is simply to search for multiple file extensions. I cant use FILE* as my search parameter as this returns other files e.g FILE2012.10z which i don't want.
View 7 Replies
Oct 20, 2010
How can I filter on multiple file extensions when using IO.DirectoryInfo.GetFiles?
View 3 Replies
Jun 18, 2012
I want to know how to create our own file, such as: (.Docx). If we opened the file in notepad the characters contained in the that's file could not understand, so i would like to know by what method of making the it's file? Is the file created and use encryption method or what?
View 7 Replies
Aug 12, 2010
Inside the program I have a text box in which a user puts in the filepath to a textfile that the program then uses as a series of commands to perform tasks. This works perfectly, however what I would like to to do to make my program faster is associate the file extension .gam with the program, so when a user clicks a .gam file it opens the program and automatically sets said file's location into the text field, as opposed to using the browse button I added and browsing to said file everytime they run the program.
Through this a user could then make a shortcut to said .gam file and run it right from their desktop, as opposed to rummaging around in folders and whatnot. At the moment my method has been thus, I have 2 folders of importance I have archived with the .exe, Gambits Pro.exe, these are: Gambits, and Control, inside of the Gambits folder is the default storage location for .gam files, as when you click the browse button its default directory is that folder. I have also added a few example files in said folder for a user when they download the program.
[Code]...
View 1 Replies
Jun 3, 2010
Instead of creating a listbox to hold the names of one's favorites, I've made it so when you add a bookmark it adds it under the directory (yourusername)/bookmarks. (yourusername) is represented by login.usernametextbox.text. Now I've added a filelistbox to the form and want it to display the contents of the bookmarks folder only without the file name extensions. Just the title. Then when a user clicks on the title it navigates to that specified file by opening a new instance of a browser form. Here's what I have so far:
Private Sub Bookmarks_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
bmarks.Path = Login.UsernameTextBox.Text + "ookmarks"
End Sub[code]....
View 1 Replies
Feb 9, 2011
it's possible with vb.net code to show or hide extensions for known file types ? this is a folder option for the new windows 7, wich allow the user to show or hide extensions for files.
[Code]...
View 1 Replies
Aug 18, 2009
can i create IE extensions with vb.net? and if so where do i start?
View 9 Replies
Nov 14, 2009
How can I able to get all the extensions in a Directory. This is for vb.net windows application.
View 3 Replies
Nov 8, 2009
This is my problem:
<System.Runtime.CompilerServices.Extension()> _
Function CastAs(Of TSource As TTarget, TTarget)(ByVal array As TSource()) As TTarget()
Return Global.System.Array.ConvertAll(array, Function(src As TSource) DirectCast(src, TTarget))
End Function
View 10 Replies
May 3, 2010
I can open the extension manager and browse all the extensions, but as soon as i click the "Download" button to install it, i get this error;
"The extension could not be installed because the following error occured:
The remote server returned an error: (404) Not Found."
View 4 Replies
Aug 8, 2011
when you use the object browser to see the features of a sortedlist elementat is not shown , but because a sorted list inherets features of ienumerable it works, cant that be corrected
View 1 Replies
Mar 9, 2010
Firstly, I understand that this might sound more or less abstract, but this is because I have no previous experience in such applications. I completed an application using Visual Basic and is running and tested. What I want to do is
to make this application expendable i.e I could write other pieces of code and I would just plug it in to the application "somehow" and it would be added as a functionality.
View 1 Replies
Nov 17, 2009
i am using the getfiles function to have all the files in a specific path but i want to use the getfiles to find .rar and .mp3 getfiles("c:program files",)
View 2 Replies
Jan 28, 2011
I have my listview showing how I would like but I would like to show it without extensions to the files listed. So when a user dbl clicks the icon it opens in it associated program. Once I take away that extension the dbl click fails as it can't find the file.Is there a better way or easier way to show the files without their extensions and have then still be functional?
View 7 Replies
Jun 6, 2009
What is your favorite Visual Studio add-in/setting? I'm wondering what are the extensions that you love or can't live without?[code]What other greats are out there? Mark them as free or not as well...
View 2 Replies
Jul 31, 2010
Why can't i install extensions visual basic express 2010? i downloaded the file from Microsoft(.vsix) in another PC, then when i arrived at home i tried to install it, but it tells me that i have no programs installed that the file will be added. do i need to register my vb express first? it's currently running on a trial version.
View 2 Replies
Dec 14, 2011
In an other post of mine, a discussion was going on to change the extensions of mdb so user does not recognize it as Access DB (this is important for me) I tried this and changed extension to xrd, ran the application and it gave error. Off course it could not find my mdb. How to handle this? Do I need to make all the connections again?
View 5 Replies
Jan 20, 2010
How is it possible to delete all the items from a ListBox that have the same extension? This is in particular to video files that have have extensions of .mpg, .modd and .moff. I can populate the ListBox with just the .mpg files but I would like to know how I can remove the other file types should I put the whole lot in.Also, presumably using similar coding, it it posssible to highlight all lines with a particular extension?
View 4 Replies
Sep 3, 2010
I currently have the following working[code]...
What I would like to do is expand the filter to include alternative file extensions (i.e., ".rar", ".7z", etc)
View 4 Replies
May 1, 2012
How would I loop through a directory recursively, and get a list of ALL file extensions used, not duplicating any of them? It could just output to the debug window. Or perhaps write to the database and have the database filter the duplicates. So it would be great to see...
[Code]...
View 2 Replies