|
win app connected to sql db
|
|
|
|
|
Still have no idea what's wrong. Is there only one machine this happens on or all of your client machines?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
it works with fat32 pc's but not with ntfs ones
thx
|
|
|
|
|
Hello.
I have to develop a ppc application who can handle ftp communication.
I tried some ways to do it, but they all failed (with wininet and webrequest). I m using VB.net Compact framework.
Does someone have some sources, advices or documentations to provide?
Regards,
Rome
|
|
|
|
|
|
It s working ^^.
I was on this problem since the beginning of the week.
You were very helpful.
Thank you very much.
|
|
|
|
|
|
Hi,
Can anyone tell me how to increase the icon size of a listview without increasing the font size is there any way if yes please tell me
thanks in advance
|
|
|
|
|
In the Properties of the ListView control, you must specify a "LargeImageList" and then near the bottom, under the "View" property, set it to "LargeIcon"
All this can also be done in code:
If you specify a SmallImageList as well, you may allow the user to switch between views via a ContextMenu (for Example).
ListView1.LargeImageList = ImageList1<br />
ListView1.SmallImageList = ImageList2<br />
<br />
'Change to Large icons <br />
ListView1.View = View.LargeIcon<br />
<br />
'or Small icons<br />
ListView1.View = View.SmallIcon
|
|
|
|
|
no man i want to increase the size of icons that are associated with largeicon view
|
|
|
|
|
Just change the size of the icons in the ImageList then. There's an ImageSize property...just change the width and height to 48x48 or to your liking. FYI: if your icon's original size is not that big, it may show up blurred.
|
|
|
|
|
thanks man it worked
thanks alot
|
|
|
|
|
Does anybody know of an easy way to recursively search a directory and all of its sub directories for a file?
I want to find all *.config files in a directory (and sub directories) and perform an action on each *.config file.
I’ve found some info on the net but it is all pretty complicated for a beginner like myself.
Thanks
Brad
|
|
|
|
|
Just write a function that steps through a directory, and when it finds another directory, have it call itself.
This is called 'recursion'.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
That’s easier said than done…
I’ve done a lot of research on recursion but it is all very confusing to me.
|
|
|
|
|
|
I found that in my seach for a solution and I couldn't get a good enough grasp on it to make it do what I need to do.
I need to to search the directories, and each time it finds a *.config file, perform an action.
..any suggestions?
Thanks
Brad
|
|
|
|
|
Here's my suggestion...since I'm not too sure what you have to do with the config file, but if you are running the same action on each config file. Perhaps you may want to store the path or FileInfo of all files found in an ArrayList and then parse the list and perform the "action" on each file. I'm not sure if this would slow down your performance or not, but I find it cleaner than interrupting the recursive search.
I'm actually debating whether or not to do something similar right now, as I am performing a search through a TreeView and locating each TreeNode that contains a substring of text than performing an action.
|
|
|
|
|
Ignore what I just said, I reviewed the code from that link a little closer and you don't have to store the files found in an ArrayList. The recursive search does it for you already. Use the code as is and all you have to do is something like the following:
<br />
'Perhaps in a button event<br />
<br />
Dim x As New FileSearch(New IO.DirectoryInfo("C:\"), "*.config")<br />
<br />
'find all config files<br />
<br />
x.Search()<br />
<br />
'you should have all files that match "*.config" in C:\<br />
'the FileSearch class contains a public ArrayList Files<br />
'traverse the ArrayList and perform the action on the config file<br />
'for example:<br />
<br />
'go through each config file <br />
For Each obj as Object in x.Files<br />
<br />
<br />
If obj.GetType() is GetType(FileInfo) Then<br />
<br />
'So why FileInfo? Because in the code provided on that forum<br />
'the author used the DirectoryInfo.GetFiles() function which<br />
'returns an array of FileInfo objects<br />
'2nd line of DoSearch()) - _Files.AddRange(BaseDirectory.GetFiles(_FileMask))<br />
<br />
'perform cast<br />
Dim f as FileInfo = CType(obj, FileInfo)<br />
'now perform the action on the file<br />
<br />
PerformAction(f)<br />
End If<br />
'keep going until all config files have been handled<br />
Next<br />
You can however modify the author's code to make the Files ArrayList into an array of FileInfo objects which will all you to skip the casting and perform your "action" on the config file.
I hope this make sense?
|
|
|
|
|
Anonymous wrote:
Dim x As New FileSearch(New IO.DirectoryInfo("C:\"), "*.config")
I'm getting an error saying that 'FileSearch' is not defined. Shouldn't that be defined in IO.DirectoryInfo?
|
|
|
|
|
|
Now I see...that makes perfect sense. Thanks.
|
|
|
|
|
I like that idea...I'm going to try that route because recursion is just not working for me.
Thanks
|
|
|
|
|
By all means, solve your problem, but recursion is a common concept that you really should learn to wrap your head around. It's not really that complex, you just need to do a little reading so that the penny drops.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
you just need to do a little reading so that the penny drops.
Yup. I think after working my way through this problem I should have an easy time understaing the theory behind it all.
I'm acctually back to the recusion method and it seems to be working out for me...so far.
Thanks for your input.
|
|
|
|