Optimizing File Explorer?
Nov 11, 2011
I'm working on a FTP Client, I started loading the local directories of my PC. I'm a university student of Computer Science. I had problems with my code, because it takes approximately 35 seconds to load all the directories and sub directories to a TreeView that in the future I will use to navigate thru my computer folders and pass files & olders to the FTP.
Option Strict On
Option Explicit On
Imports System.Collections.ObjectModel
[code].....
View 3 Replies
ADVERTISEMENT
Aug 1, 2010
I want to make a program that is similar to Windows Explorer. It will have a button that when you click it it opens a FolderBrowserDialog and it will have an area that displays the contents of the selected folder. I want to have a label that displays the current folder path (i.e. 'USERDocuments...') and I also would like a feature to search all files on the computer.Also, is it possible that when I click on a file in the contents of the selected folder it displays its information (i.e. Name, Size, etc.)? And can I also make it so that if you double click on another folder in the current folder's display it opens that folder? And can I have a button to go up one directory?
View 1 Replies
Aug 11, 2010
I'm building a GUI that displays a lot of thumbnails. I'm currently using PictureBoxes that I dynamically allocate to do this. In the worst case I may need to display as much as 1000 of these thumbnails at once. I need the thumbnails to move around and animate fluidly. PictureBoxes hog a lot of memory.
View 16 Replies
Apr 27, 2009
I have a function which is executed a lot of time during a flat file (txt) import. (50 000+)using a profiling tool the attached function where identified as 40% of the runtime..The code works as is.. But should be a lot quicker..
The code converts the following format 5710.436' N to the double representation.
DMS -> DD
MS Degrees:Minutes:Seconds (4930'00"N, 12330'00"W)
[code]....
View 3 Replies
Aug 10, 2009
I am using SQl data reader to get value from SQL database.Language VB.NET.After getting data into reader, i run a while loop
While reader.Read
If reader.HasRows() Then
/* Proessing of data *[code]....
View 3 Replies
Apr 15, 2010
I've inherited a Visual Studio/VB.Net numerical simulation project that has a likely inefficient calculation. Profiling indicates that the function is called a lot (1 million times plus) and spends about 50% of the overall calculation within this function. Here is the problematic portion
Result = (A * (E ^ C)) / (D ^ C * B) (where A-C are local double variables and D & E global double variables)
Result is then compared to a threshold which might have additional improvements as well, but I'll leave them another day
View 4 Replies
Apr 8, 2010
I have a lengthy query..always it shows timeout..I am filling it in a dataset, not using command execute.Is there anyway to solve this rather than optimizing the code? any way to solve the timeout..
View 3 Replies
Apr 6, 2011
I'm having a speed issue with some drawing in a program I am working on. I have narrowed down the speed issues to a single function. The cost of this function is such that I really need to find a way to make it faster, and that should be possible.
The function is this:
Public Shared Sub SuperImposeFishAni(ByVal bckGrnd As Drawing.Bitmap, ByVal dtop As Integer, ByVal dleft As Integer, ByVal dwidth As Integer, ByVal dheight As Integer, ByVal ImageInQuestion As FishImages)
Dim tp As Integer = 0
[code]....
This is actually a holdover from an earlier design that included animation, but that's probably irrelevant. What is happening here is that a bitmap (bckGrnd) is passed to the method along with the left, top, width, and height that are to be drawn, and a single variable to select which image to draw.The image to draw is chosen in the select statement, which makes up the bulk of the method. The guts of the issue are the last few lines.
Through profiling, I was able to determine that if this method is called, the drawing takes over .25 seconds, whereas if this method is not called the same exact drawing takes less than .07 seconds. Therefore, I am getting a significant slowdown from this one method, which surprises me, as it is pretty straightforward. It pretty much has to be this method, too, because I can perform the same actions with or without this method being called. It is called if a Boolean is True, which is about as fast a test as can be performed. If the Boolean is False, this method is not called. The >3x difference in timing is with or without this method.
The point behind the method is that the image from the select statement has to be superimposed onto the background image, and the size of the area, as well as the location, that it gets superimposed onto is almost totally arbitrary, which is why the size and location has to passed to the method.Technically, choosing the bitmap to merge in (the select statement), could be avoided, but I doubt that is the issue.
View 21 Replies
Aug 30, 2009
1- I want to know what's the windows service project and how i can use it.
2- I want to know how i can making tool bars for my windows explorers , IE explorer and to fire fox internet explorer.
3- I want to know how i can making add-ons for my VS 2005.
4-Can i change my Form Opacity Without Changing My controls Opacity
View 1 Replies
Sep 9, 2011
I have this code that works. it goes down a range and deletes the empty rows, seperates the first character into a different column if its not a number or negative sign.This code WORKS. but it is too SLOW for the amount of data i need it to deal with. I have already turned off automatic calculations. screen updating.and visibility of application.
[Code]...
View 3 Replies
Sep 8, 2010
I have code that increments an array of numbers. However, due to performance issues, I need to optimize it.
Here is the code:
Public Sub increment(ByRef Index() As UInt16)
Dim N As Integer = Index.Length - 1
If (Index(0) = 65535) Then
Index(0) = 0
[Code] .....
View 18 Replies
Dec 28, 2011
I have this code that works. it goes down a range and deletes the empty rows, seperates the first character into a different column if its not a number or negative sign
View 1 Replies
Aug 4, 2009
As I was starting on my lil project i realized that I would have a tonne of repetitive code. But wasn't sure how best to go around to just only have it in there once and just call on it. Not entirely sure how to do this as I havnt done it before, I was trying to mess around with it in a Function type thing but I had declaration issues which put me off course. Basically they'll be a few labels lbl8Beats(on click it loads the table in the datagrid (dgvCompositions)) is the first, and all the code from Dim conn As MySqlConnection to data = New DataTable, will be repeated.When i was messing around and thought I'd open the connection on form load, and I just had a bunch of declaration issues, and was unsure how best to go about this. Also since the Adapter = "would be changing on each label it just made me more confused.[code]
View 1 Replies
Feb 4, 2011
below is a byte array to string encoder. It uses the yEnc algorithm that is used for Usenet binaries (Usenet only supports text).
Doing a performance analysis in VS2010 shows that this is the most CPU intensive part of the application.
The encoder function is used thousands of times, so I'd like to optimize it as much as possible.
I'm using 'ReDim Preserve' instead of 'Take()ToArray', because I'm targeting .NET Framework 2.0. Is there a more efficient way of getting only a part of a byte array?
vb.net
'Values for yEnc Encoder
Public Structure EncoderValues
Public lChar As Byte
[Code].....
View 15 Replies
Aug 1, 2008
I'm developing a VB.Net 2008 application which uses background images (in jpg format) in some forms and controls, but this makes the application to use a lot of ram. My question is how to make it to use the less possible.
View 3 Replies
Jul 11, 2011
create a file explorer which will enable you to select a file from any folder,and be able to filter the results from size,date,etc.
show all the results of a selected folder in a list and then filter it according to the user's needs,which is kinda like the "search" or "find" function in windows.
View 1 Replies
Dec 4, 2009
I have seen some application which creates tabs in explorer like we have in browsers I wonder how they are able to make changes in programs like these. I am currently working on Windows 7 64 bit and I too want to learn how to modify explorer.exe according to my neeed.
View 1 Replies
Jan 10, 2010
I'm looking for a way to get the name of the file that's currently selected in a Windows Explorer window, desktop included, without having to use a FileDialog or to copy the path to the clipboard (GetFileDropList). I've been looking into the System.IO.Path.GetFileName() an many more methods like that, but I haven't found anything that does the trick.
View 5 Replies
Jul 7, 2009
I'm trying to make a file explorer for my program. Let's say I use an install disk to get this on my computer. How would that program set up the explorer so you can view and search My Computer, C:, and/or disk drive?
View 12 Replies
Apr 11, 2009
I want to make my program so when you click button2 an explorer window opens up going to C:Users. How DO i do that?
View 7 Replies
Dec 29, 2009
I have searched for the past 2 hours to see if there is a control available that will mimic windows explorer. I realise it can be created using TreeView and ListView controls, but this is an incredible amount of work for something that I would have thought would already be available. VB 6 had the DirListBox and DriveListBox which would have made this easier but without the right click context menu
If I had to create this myself, how would I populate the right click context menu to mirror the options available by explorer?
If you look at CDBurnerXP or MagicISO, they have what I am trying to achieve, with the layout and a right click menu containing the same options available in explorer.
View 10 Replies
Sep 18, 2011
I want to download a file in VB.net from a website that requires credentials, all my users have their credentials to this website saved in their IE settings.Is there a way to download a file from this website using the IE credentials? I'm trying to avoid from asking my users for their credentials.I need to download many files, so i need a way to download the files programmatically.
View 1 Replies
Oct 27, 2010
Requirement is to drag a text file from Windows Explorer and drop into a RichTextBox opened, that is so the text can be read amended etc
View 3 Replies
Jul 31, 2011
an editor that can save text files and html files,my editor is a tab pages for every files opened and created. Can you hep me to fix some problem. When open a html file, the file is opened in the tab of a tabcontrol, the problem is that is when i open the html file, i want to get the path of the file then when i click the button run on my form, the html file that is the selected tab that holds the html file will open in Internet Explorer. Ihave teh code in in opening int he code below is for opening IE and file
Shell("C:Program
FilesInternet Exploreriexplore.exe C:abc.html")
View 1 Replies
Dec 15, 2011
[code]...
.i would like to load win.explorer with that.File.Selected=True
View 2 Replies
Apr 2, 2010
I have my registry set up so it will call my application when a certain filetype/file extension is double clicked, however, as of now I can only get my program to open up those files if it was already closed. I am currently using the [URL] to get the passed files.
View 2 Replies
Nov 17, 2010
I want to create a file explorer. I want the File and the Folder to be in the same tree view. I came across this but it is not what I am looking for. I want the File and the Folder to be in the same tree view.
View 3 Replies
Jun 13, 2011
I'm making an app that allows user to select some files. But, I want it to be made inside the app, without the need of a 'OpenFileDialog' or so.My first thought was a ListView control, but I really don't know how to use it or even how to make it get that from file system.Then I thought on a ListBox, but it seems to have so few features.There is a way to make an 'explorer-like' file browser inside the app? It doesn't need to contain all the explorer features, just an details view (the one that looks like a list, but with columns) and a icons view (similar to windows XP).
View 9 Replies
Sep 22, 2009
I am making a custom file explorer, and I am trying to make back and forward buttons, all I need to happen is when you hit back, it returns the last directory you were in, when you hit forward it returns the directories you were in before hitting back, and when entering a new directory, it erases all of the Forward data. I am not sure how to accomplish this
View 2 Replies
Jan 23, 2010
An application data file, created by my own VB program, is visible to read and save from that application, but is not visible from Windows Explorer or Notepad. The icon, visible from my VB program, shows a lock. How can I remove the lock and see the program with Windows Explorer. (I need to copy to a another computer to use in a workshop next week.)
View 2 Replies