Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: oka97
  • Order by date
  1. oka97

    Crop an image

    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 =...
  2. oka97

    Crop an image

    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 :(
  3. oka97

    Creating key in registry causes garbage

    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...
  4. oka97

    Creating key in registry causes garbage

    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.
  5. oka97

    Creating key in registry causes garbage

    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, _...
  6. oka97

    text box background image, possible?

    Is it possible to have the background of my rich text box as an image? So when users type over it, the text writes over the image.
  7. oka97

    change IE home page from code

    Ah I think I found my answer in.. thread222-552224
  8. oka97

    change IE home page from code

    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?
  9. oka97

    VB & Word - mail merge with ODBC

    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.
  10. oka97

    Running app in background

    http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q176/0/85.asp&NoWebContent=1
  11. oka97

    Automating email messages

    Or you could run an SMTP server off your machine. Or access an external SMTP directly from VB.
  12. oka97

    Printing

    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
  13. oka97

    VB - Access date querying is messed up!

    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...
  14. oka97

    VB - Access date querying is messed up!

    I changed all my date fields in the database to dd-mmm-yy and it fixed the problem. Access sux :)
  15. oka97

    VB - Access date querying is messed up!

    Hi, short date formate in Access implies dd/mm/yyyy
  16. oka97

    VB - Access date querying is messed up!

    Hi, have a look at this: SELECT id FROM client WHERE existing_exists='no' AND (personal_date BETWEEN #02/06/2003# AND #02/06/2003#) This comes up with nothing even tho there is an entry with 02/06/2003 in it! If I push 02 to 06 in the query string, it picks it up, I'm confused! I've set text...
  17. oka97

    Help me with this tiny bit of DataEnvironment code pls :)

    == If DataEnvironment4.Connection1.State <> 0 Then DataEnvironment4.Connection1.Close DataEnvironment4.Connection1.Open DataEnvironment4.Commands(&quot;Command1&quot;).CommandText = TempQuery rptSummary.Show vbModal == It'll only show once, after you close the report rptSummary, only blank...
  18. oka97

    VB &amp; Word - mail merge with ODBC

    It seems only Word 2002 (XP) allows u to choose the datasource as ODBC as an option.. Has anyone here figured out how to use ODBC with say Word 2000 or 97? Otherwise I guess I'm going to have to use a direct link to the mdb file.
  19. oka97

    Mail Merge datasource!

    Ah no, as usual I'm being impatient. Here's the answer Microsoft Knowledge Base Article - 285332 HOWTO: Automate Word 2002 with Visual Basic to Create a Mail Merge http://support.microsoft.com/?kbid=285332 Under title &quot;Using ODBC&quot; :)
  20. oka97

    Mail Merge datasource!

    I've noticed you have to set Word's datasource property for it to accomplish a mail merge, but my VB application is connecting to an MDB using ODBC, as such it has no clue where the MDB file is (it'll be somewhere on the LAN). Isn't it possible to do a mail merge by applying an ADO connection...

Part and Inventory Search

Back
Top