Thanks for all the help people! This is a great vb.net forum.
--
Private Function Crop(ByVal Source As Bitmap, ByVal x As Int32, ByVal y As Int32, ByVal width As Int32, ByVal height As Int32) As Bitmap
Dim Cropped As New Bitmap(width, height)
Dim g As Graphics =...
Hey people, I'm pulling my hair out, I can't figure out how to crop an image to a simple retangle size.
I've got an image, set it to a graphics object and set a retangle to that, but can't see what to do after :(
Hi thanks a lot.
When trying to set the reg_dword to 0 or 1 I am baffled!
Temp = SaveRegString(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", _
"ForceActiveDesktopOn", &H0, True)
Instead of giving me 1 it gives me 0x00000030 (48)
I'm...
Okay I fixed the problem, u need to set the value of the new key immediately after.
I need to set the new key to a value of either 1 or 0 in hex (type REG_DWORD) but dunno how to do it, the registry keeps saying invalid dword value.
Hi, I'm creating a new key with this code:
Public Function CreateNewKey(sNewKeyName As String, lPredefinedKey As Long)
Dim hNewKey As Long 'handle to the new key
Dim lRetVal As Long 'result of the RegCreateKeyEx function
lRetVal = RegCreateKeyEx( _
lPredefinedKey, _...
Could someone kindly point me in the direction on how to accomplish this?
I've been searching and found little, perhaps there are many ways, would one of them be to find keys and edit the the registry?
Is there an easier way?
Thanks so much hookbob.
I just ended up using a DSN-less connection.
I provided a form to the user to specify where the mdb was located (and the mail merge .doc's).
All works lovely :)
Got it printing labels on avery paper nicely too.
Do you mean print all the rows contained in a table in Access?
You'll need to pull all the data off the db and whack it on a report (datareports will suffice), then printing the report is easy.
Look up in msdn for visual basic - creating a simple data report
CCLINT, I format all dates in dd/mm/yy format.
When I queried dates which "could" be mistaken for mm/dd/yy it did, for dates that couldn't be mistaken eg. 13/12/99, it was fine.
Anyway I don't trust Access, I'm sticking to dd-mmm-yy. It once confused two text fields on an Access Form...
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.