I have solved this myself. The trick is to pass in the Graphics object to the DrawLine function from the paint event. ie:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
DrawLine(picMain.CreateGraphics)
End Sub
Private...
I am struggling to understand when the paint event should
fire, since I have created a very simply app to simply
draw a line on a picturebox whenever the paint event
fires. Unfortunately the line only appears when I move
another window over the picturebox, not when the form is
restored from...
Can anyone tell me how to create the Destination document from the Source document listed below with XSLT? I have tried all kinds of combinations of variables and multi passes throught he document but cannot get it to work. Essentially I am trying to build a hierarchical document from a...
The function currently returns the folder count since it uses the 'subfolders.count' property. To get the file count as well you would need to also use the oFolder.Files.Count property and pass in a long value ByRef into the function to return the FileCount. Ideally you should rewrite the...
This code will iterate through all folders from a root and return the number of subfolders. It would be easy to modify it to return the file count as well. For large directories it can take a while, but at least the code is compact and easy to maintain.
Create a class called clsDirectory and...
I just wonder if this is due to the other server being set up differently, such as a different sort order or charactor set. If you backup a database you can only restore it if both the source and destination installations use exactly the same parameters.
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.