Search results for query: *

  1. I

    Office 365 Interops

    Hi All Could someone please help me with repairing my vb.net desktop apps which interop with excel. My client changed from Office 2010 to Office 365 and now all of the vb.net apps that interop with excel are broken. I realize that I need to change to the "excel interop" that works with Office...
  2. I

    Global Hotkeys

    Hi All - Hope everyone is safe out there I have defined some Global Hotkey keys (Function Keys F7, F6, F4) using the Public Declare Function RegisterHotKey Lib "user32" (ByVal hwnd As IntPtr, ByVal id As Integer, ByVal fsModifiers As Integer, ByVal vk As Integer) As Integer function along with...
  3. I

    Question validated event in single textbox form

    Below is an application with 2 very simple forms. Form1 "calls" Form2 via a showdialog method. If Form2 has only one textbox the "me.dispose" command in textbox1.validated is never reached unless I click the "form.close" event. If I add a second textbox then both textboxes are entered as...
  4. I

    Question validated event in single textbox form

    Whenever I create a textbox control I ALWAYS include the click, enter, keydown, leave, and validated events. The problem is if I don't place a return key trap in the keydown event handler with a me.dispose command (following the "SendKeys.Send(vbTab)" command) in that handler the execution path...
  5. I

    Question validated event in single textbox form

    Hi All I have been fighting a nuance with a form that has only one label and one textbox. The validated event does not fire! I have employed the click, enter, keydown, leave, and validated events. I cannot exit the form unless I trap the return key in the keydown event and exit from that...
  6. I

    Resolved NO_BACKSLASH_ESCAPES

    Sorry for the confusion. I arrived at this "section" because my working VB.Net program would no longer process user input "directory specifications" receiving syntax error from the "newly" installed MySql version 8.0.18. I was able to finally get the sql-mode directive to eliminate the "back...
  7. I

    Resolved NO_BACKSLASH_ESCAPES

    MySql Version 8.0.18 is ignoring sql-mode=NO_BACKSLASH_ESCAPES in the my.ini file. A number of queries that were working on MySql 5.6.17 are now failing with syntax errors because of backslashes in the character stream. I have added the sql-mode=NO_BACKSLASH_ESCAPES in the my.ini file but it...
  8. I

    Resolved Picturebox events

    Thanks JohnH Actually you solved my problem with your last post when you pointed out I didn't have to print the PictureBox. Printing the PictureBox was what set the issue up in the first place. Some times the PictureBox was not completely "full" and this would result in a "pixelated mindcraft"...
  9. I

    Resolved Picturebox events

    Hi Sheepings I did take JohnH's suggestion. As part of the program mission the user needs to see the "image" before it is printed as confirmation. Since I was using the picturebox control to do this I simply used the picturebox.image as the first augument to the Drawimage method. I have...
  10. I

    Resolved Picturebox events

    Thanks for all the feedback Sheepings - I will digest completely. I must admit that my programming style does not conform to the UI paradigm that you have described. I will blame that on 50 years of procedural coding - still learning the OOPS paradigm. I do understand now the philosophy...
  11. I

    Resolved Picturebox events

    Again thanks for the response JohnH. I am confused for in my interpretation this is exactly what I am doing. I halt the UI processing thread with the event_1.waitone() call and then release that "sleep state" once the LoadCompleted event fires by virtue of the event_1.set() call. It is the UI...
  12. I

    Resolved Picturebox events

    To JohnH: Based upon your suggestion I am trying to implement an AutoResetEvent "handshake". Here is the sample code: Imports System Imports System.Data Imports System.Windows.Forms Imports System.Windows.Forms.Control Imports System.IO Imports System.Threading Public Class Form1 Dim trfl...
  13. I

    Resolved Picturebox events

    Again thanks for the response JohnH. Looks like I have lots of learning to do. I'll be back once I have implemented the UI/Worker thread choreography. Respectfully, Ideprize
  14. I

    Resolved Picturebox events

    Thanks for your response JohnH. The code architecture will not accommodate printing from LoadComplete. There are cases when the Picturebox is not to be printed (only viewed) but more problematic is the picturebox load is "2 levels down" - it is akin to a showdiaglog configuration requirement...
  15. I

    Resolved Picturebox events

    Hi All Trying to implement a confirmation sequence regarding the loading of an image in a picturebox. I need to know this for once the image is loaded I am going to print it using the printdocument_printpage sub of the printdocument class. I am trying to use the picturebox events namely the...
  16. I

    Resolved Scanner Twain and interrupts

    I'm back. The problem was resolved. It had to do with an application.doevents function that I wrote which was executed above the code. It's obvious that I need to have a better understanding of that command. I was using it in conjunction with the picturebox image load process. The...
  17. I

    Resolved Scanner Twain and interrupts

    Sorry for the delay. Here is the code "segment" that is applicable: MsgBox("# of images = " + Trim(Str(imgc.ImageBuffer.HowManyImagesInBuffer))) pgcnt = imgc.ImageBuffer.HowManyImagesInBuffer MsgBox("pgcnt = " + Trim(Str(pgcnt)), vbMsgBoxSetForeground) 'all pages are now in the core image...
  18. I

    Resolved Scanner Twain and interrupts

    Hi to all A vb.net program that I have developed and been updating for the past year incorporates a scanner twain from the vendor Dynamsoft. The software has worked without issues. Yesterday I encountered what I can only classify as "real time demands" by the Scanner Twain. I can no longer...
  19. I

    e.SuppressKeyPress = True not working

    Thanks for the insights. I realized that KeyDown preceded KeyUp (by definition) but really wasn't sure about KeyPress. Again thanks for the help. Respectfully Ideprize
  20. I

    e.SuppressKeyPress = True not working

    That indeed was the solution JohnH. For the sake of knowledge could you profile the "response window" that occurs in the KeyDown event that does not occur in the KeyUp event. I mean talk about forensic! Thanks a lot sir.
Back
Top