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?
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.
I'm trying to delete all the files in the same folder that have the same name but different extensions, such as CurrentWallpaper.bmp, CurrentWallpaper.jpg, CurrentWallpaper.png, without putting them in a separate folder. How could I go about doing this? I tried doing
Dim bg As String = dir + "" + Login.UsernameTextBox.Text Kill(bg + "CurrentWallpaper.*")
but it didn't work. PS: I would also like to use the same technique for loading the image as a background image instead of having to do this:
Try If My.Computer.FileSystem.FileExists(Login.UsernameTextBox.Text + "/CurrentWallpaper.jpg") Then Me.BackgroundImage = Image.FromFile(Login.UsernameTextBox.Text + "/CurrentWallpaper.jpg") End If
<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
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
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
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?
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.
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",)
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...
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).
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?
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?
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?
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]
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...
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?
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.
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.
I have created a class containing a few string extensions, as follows:
Imports Microsoft.VisualBasic Namespace Extensions <HideModuleName()> _ Public Module Extensions
[code]....
just in case it's relevant to this, I'm using .Net Framework 2.0.Would I need to register something within the aspx page in order to use extensions? If not, is there another way to enable them?