|
icowa wrote:
I am a new vb.net programmer wanna be and I gotten most of the basics on vb.net. But I am having a hard time trying to grasp database programming.. when I mean database programming, i mean trying to make my vb.net access a MS access file (*.mdb) and do editing and updating and displaying the data on a text box and all..
Wondering whether anyone out there with this knowledge can help me out, or better yet, have some kind of ebook that can go step by step with nice little DIY samples on this subject.
Look at here[^], s/he has the same problem simillar to you too. Hope the solution could help you too.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
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![Cry | :((](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_cry.gif)
|
|
|
|
|
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,
|
|
|
|