Hi, Does someone knows how to get the default icon from other applications without using Windows APIs? Any ideas could be very helpfull, Thanks in advance
ltt19
Posts
-
Get the application icon -
Internet Explorer AutomationHi, I want to automate the internet explorer, but not like the example in the Visual Basic Resource Kit. I want to get the URL that the user typed in the address bar. I tryed using mshtml and ShDocVw but it does not work, maybe I am using the wrong class. If someone knows how to interact with the Internet Explorer, please anwser me back, it should be very helpfull... Thanks in advance
-
read line by lineHi, It is a text document, so i read it, edit it and them it write again, but jsut write wher it has changed, the it wil be faster... I do not know with there is a direct way to edit it, or if I have to put it in a variable anyway... Any ideas...
-
File properties dialog boxI want to call the file properties dialog box, the one when you right clik in a file or in many files usind the explorer and them click ont the properties menu... I heard about many ways, one is calling an api(the worst way, I think), other is add a reference to the shell32.dll, and i heard about something in the System.Diagnostics.Process... Does anyone knows one of these ways or other ways? Thanks in advance.
-
read line by lineHi, I have a .txt file, and it is very big, my application needs to change this file at any time, and to open edit and save it will result in a long time token, so I think it is better to copy it to a variable, make the changes to the variable, and in the end of the program, it could write again. I do not know if there is a way to rewrite the file just where it has changed, and do not write all the file again, them it will be much better. If you could help me... Thanks
-
read line by lineYes... I tryed just with the StreamReader, and it does not work, I have not thinked about StringReader. So I will se it... Thanks
-
read line by lineHi, Yes it should works, but the problem is that I will make a copy of my big string, and it will use more memory. I am thinking about use your method, but them clear my big string... I will try to get a better way... Thanks, it could be usefull
-
read line by lineHi, I have a string variable and it has over 300000 chars.... it is like it: text text1 txt2 it has many lines, and so, I have to read one by one. I tryed to use System.IO.StreamReader, but it does not accept over 260 chars... If someone has any ideas it would be very helpfulll Thanks in advance
-
Get all directories and subdirectoriesI did it, it works, for me, the code is above, if you want to make any changes... Thanks for everybody who helped me. Here is the code, using a ListBox named as 'lst'
Dim folders As New System.Collections.Specialized.StringCollection Private Function GetAllDirectories(ByVal Name As String) On Error Resume Next Dim finder As System.IO.Directory Dim cdir As New System.Collections.Specialized.StringCollection Dim cdir2 As New System.Collections.Specialized.StringCollection Dim cancel As Boolean = False Dim dir As String cdir.AddRange(finder.GetDirectories(Name)) folders.AddRange(finder.GetDirectories(Name)) Do While cancel = False For Each dir In cdir folders.AddRange(finder.GetDirectories(dir)) cdir2.AddRange(finder.GetDirectories(dir)) Next If cdir2.Count = 0 Then cdir = Nothing cdir2 = Nothing Dim i As Integer For i = 0 To folders.Count lst.Items.Add(folders(i).ToString) Next cancel = True Exit Do Else cdir.Clear() Dim y As Integer For y = 0 To cdir2.Count cdir.Add(cdir2(y)) Next cdir2.Clear() dir = Nothing y = Nothing End If Loop MessageBox.Show(lst.Items.Count) End Function Private Function GetAllFiles() On error resume next Dim files As System.IO.Directory Dim dir As String For Each dir In folders lst.Items.AddRange(files.GetFiles(dir)) Next End Function
-
Get all directories and subdirectoriesHi, Yes, the idea is great, I am going to use your example, but I will try to use the system.io class, if I can´t, I will use your example as it is..... Thanks, it is what I was looking for....
-
Get all directories and subdirectoriesHi, you are using XML, but the "idea" is the same, it could help me!!!, so I will try to do it with the System.IO classes, if not your code will be very usefull! Thanks!
-
Get all directories and subdirectoriesThere are some classes in System.IO that do the same that you are doing. The problem is to loop over all directories with this classes. I will try to do a loop with your code. Thanks again!!!
-
Get all directories and subdirectoriesHi, I have already seen some these web pages, but by problem is to look at all subdirectories, I am going to make a kind of loop over each directory. I hope that it help me. Thanks, you helped me a lot too.
-
Get all directories and subdirectoriesCould you give me an example?? it will be very helpfull Thanks in advance
-
Get all directories and subdirectoriesHi, Does anybody knows how to get all driections and subdirectoires of a hdd? I took a look at System.IO.IsolatedStorage, but I could not specify the hdd. If someone has any ideas.... Thanks