|
Hey, not bad, two replies in a day... You guys and gals are great. Thanz for being so helpful... Will take a look at that thread you sent me...
|
|
|
|
|
hi
i work hard, but not find out if a program that programming by vb can run in LAN area? yes or no
if yes how?
|
|
|
|
|
http://giuciao.atspace.org/books/oreilly.htm
download
ADO.Net In A Nutshell
and
O'Reilly's Programming Visual Basic NET
and work on it .
|
|
|
|
|
What do you mean by "in LAN area"?
If your asking if a VB program can access network resources, then yes, it can. But that all depends on what your talking about.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
daneshmand wrote:
i work hard, but not find out if a program that programming by vb can run in LAN area?
In my opinion, if it is possible, try to buy this book[^]. I think it could help you to work in LAN from your VB.NET application.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Ok guys,
I really had about enough!
I need to be able to add bookmarks to the report after exporting it to pdf..
I instantiated Interop.Acrobat.DLL..so i can access the Acrobat library
what i do is that i search for a specified text that i want to book, then i bookmark it...the code works fine when i'm in the debug mode and step into each line, but when i run the code..it gives me Untitled bookmark that points to the 1st page in the document!..
the other thing is that i don't know how to create child or sibling bookmarks to the parent one!
and is it possible to call an application such as Acrobat in the background so whom ever runs the this VB.Net application won't be having the Adobe application screen flashing in their face and then disappearing after doing the bookmarks?
I really need help on that
not so many resources available online about Acrobat & VB.Net
|
|
|
|
|
I am using Directoryinfo object to move a directory on c:\ to d:\. But it's not possiable as destination cannot be another disk volume.
Is there a way that I can move or copy a folder to another volume.
|
|
|
|
|
File.Move[^]
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks Christian
This only moves the files.
What i want is to move the whole directory to another volume.
I have a directory with thousands of files. I want to move the entire directory to another volume.
|
|
|
|
|
|
Even this dosen't work across volumes. I have already tried this.
|
|
|
|
|
It won't copy from the C drive the to D drive ? I find that hard to believe.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I know but it dosen't work.
There is no mention about this in the documentation but when you try it, it gives you the error that
Move will not work across volumes
|
|
|
|
|
Damn - you're right.
This C# code:
Directory.CreateDirectory(@"\\warlock\c$\1.0");
string [] files = Directory.GetFiles(@"c:\1.0");
foreach(string file in files)
{
File.Copy(file, Path.Combine( @"\\warlock\C$\1.0", Path.GetFileName(file)));
}
Directory.Delete(@"c:\1.0");
worked fine to move a directory to another computer, so I'm sure it will do what you want.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks Christian,
This is again moving files across the volumes.
I guess microsoft dosen't provide function for moving directories across volumes.
|
|
|
|
|
Tha'ts because it's physically impossible to "move" files to different volumes.
You move "move" directories/files inside the same volume because all that is required is manipulating directory entry pointers so that the files appear under the new directory. No file data is ever "moved" or "copied" to make this happen. This, obviously, can't be done acrossed volumes.
So, in order to "move" files/directories to another volume, the source files/directories must be copied to the destination, then removed from the source.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave, another reason can be that moving directories across volumes can result in freeing up permissions on the directory and there can be a possiability that user might be moving the directory from a fat to ntfs and vice versa
|
|
|
|
|
Can i read the length of the directory.
What i want is to increment the progressbar during thr directory.move.
If i can read the bytes that are moved , then accordingly i can increment the progress bar.
Directory is about 150mb
or
Is there a way of incrementing the progressbar during the move process.
|
|
|
|
|
It all depends on what your using to do the move. If you use Directory.Move to move an entire batch of files all at once, you don't get any information back on status, and therefore, nothing usable to update a ProgressBar.
If you want to use a progressbar, you'll have to write the code to "move" the files yourself, one at a time. You'll also have to supply the methods for reporting status and progress.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
nitin_ion wrote:
This is again moving files across the volumes.
Yes, it is. And it works. What's the problem ? To 'move' the files, the code I provided created a directory on another machine, copied the files over and deleted them. It *works*, I tested it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It's no problem if the directory contains no other directory, but if it contains multiple directories then it would be a problem.
|
|
|
|
|
That's why recursion is your friend.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
I currently use VB6 and have been toying with the idea of switching to .NET
I have heard the .NET was all together a better program than VB6 from some but from others I heard that it was complete rubbish and are happy they went back to VB6.
Just trying to get some opinions of fellow VB6/.NET users
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Code is a beautiful thing
Theres nothing like the feeling you get when you create your first program.No matter how basic
MS DOS it all
<marquee>
PC Chips M811LU mobo, AMD Duron 1.8GHz processor,WINTEC AMPO 1GB RAM,20 GB Maxtor & 80 GB EXCELSTOR hard drives,ATADC POWERKING 400W,LITE-ON DVD-ROM PSU,
|
|
|
|
|
tekfall wrote:
I have heard the .NET was all together a better program than VB6 from some but from others I heard that it was complete rubbish and are happy they went back to VB6.
There are a group of (incompetent) MVPs who are pushing Microsoft to continue VB6 support.
I can only give advice from my perspective, so I'll tell you what that is first, so you know where this is coming from. I am a C++ programmer, who has migrated to C#, and I help in this board because a lot of stuff in VB.NET is the same as C# ( that is, they use the same libraries, which is what most questions are about ). I *hate* VB6, I think it's a terrible language, designed to write a small subset of all possible apps quickly and easily, for people who aren't smart enough to learn C++.
So, that's my bias. As far as I can see, VB6 filled a need in the past, and VB.NET is the step forward for people who don't want to learn C#, but want to use a better language, and one that is going to be supported in the future. It also means you can write web apps using ASP.NET. The only thing to watch out for is, VB6 supports some truly excremental things, and Microsoft tried to remove them, but were met with howls of protest from the VB comunity. So, VB.NET still lets you do a lot of htings that suck, so you should start from scratch with a good VB.NET book, and actually learn where you should use new syntax instead of what you are used to.
I think that VB6 -> VB.NET -> C# is an admirable path for anyone to pursue ( and I can live with you skipping the C# step ). Anyone who sticks to VB6 is plainly incompetent - a real programmer is capable of continuing to learn, and of using more than one language. I'm sure there were plenty of C programmers who hated C++, but which offers more work today, and which is more widely used. There is still a place for C though, I doubt that will be the case for VB, it has no support outside of Microsoft, and Microsoft are wisely in the process of dumping it for VB.NET. The inside word is that Microsoft have long term plans for VB.NET ( I wish they did not, but the truth is that they do ).
Learn VB.NET - it can't hurt you, even if you decide to use VB6. Like I said, a real programmer will change languages from time to time, because a better tool will become available. I still use C++, but I use C# most of the time, because it's easier, and because it supports stuff I need to do.
Christian Graus - Microsoft MVP - C++
|
|
|
|