Perhaps this thread could help: thread222-882802.
If you would use a Class instead of an array of doubles as vector you could create a method for your vector object to reverse.
' Class Vector -----------------------
Option Explicit
Private Value(0 To 3) As Double
Public Property Get...
thanks vb5prgrmr I know that my code fragments aren't very generic. They should only show the problem.
Nevertheless I implemented your version and I get the same error on the line GetAttr.
Dir just reports that the file is there on the location where it has been before it was moved, and I just...
I Changed it to an Array but it doesn't work.
The files are moved correctly but if I start the sub again within some seconds I get the same error and ary(ii) still contains the first file that has been moved. If I wait about 10 seconds and start the sub again it works.
Dim temp As String...
Hi
I've got troubles moving files on a remote computer from one directory to another.
My environment is Windows Vista Business where the VB runs and Windows Vista Home where the share is located on. If I use Windows XP on the remote computer it works.
To enable my NAS I've changed SMB...
What really speeds up Printing is writing to LPT1: as a File. You loose the flexibility but end up in much more speed.
Just as beginning point:
' Open printer for output
Open "LPT1:" For Output As #1
' Print Text to Printer
Print #1, "Example"
' Formfeed (at least for the...
Yes, it ran exactly like this. Perhaps it's a matter of the message format which I've set to Rich Text for the Test, where I've normaly set it to Text only.
You mention that you've already tried a couple of things, so perhaps it's not really useful what I suggest, but in my environment the following works:
Dim MyOlApp As New Outlook.Application
Dim MyItem As Outlook.MailItem
Set MyOlApp = CreateObject("Outlook.Application")
Set...
Have a look at Paintpicture.
Here an example to create a horizontal scrolling Picture:
[COLOR=green]Create a form with 2 pictureboxes and one Timer on it (Timer set to any Interval try 100). Paste the following code into the form:[COLOR=blue]
Private lngmTPX As Long
Private lngmWidth As Long...
Try this:
lblDuration = cDate(cDate(txtTo) - cDate(txtFrom))
or to keep formatting:[COLOR=blue]
lblDuration = format((cDate(txtTo) - cDate(txtFrom)),"h:mm")[COLOR=black]
or have a look at DateDiff
hope this helps
Andreas
You could subclass your MDIChild and control visibility in the windowsprocedure, but I don't think that's a good solution.
First of all I would ask, if it has really to be an MDIChild. Because if you don't mind having a normal form I would try something like this:
Private Declare Function...
be aware that you can mark the controls on an SSTab with the mouse. Click in the titlebar of the form (the form has to be marked), hold down Ctrl and catch the controls with the mouse
Andreas
As long as you haven't got any ocxs or dlls to register you could code something like this:
- rename the exe who is executing right now
(this works in contrast to delete or copy it...)
- copy the new exe
- eventually start the new exe
- stop the old exe
It's just a suggestion... never coded...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.