Search results for query: *

  • Users: JohnH
  • Order by date
  1. JohnH

    how to extract inner/outer text from webview2 ?

    Yes, you must add Async to your method. If it's an event handler Sub-method you don't add return type.
  2. JohnH

    how to extract inner/outer text from webview2 ?

    Execute scripts to interact with the web document: Dim source = Await WebView21.ExecuteScriptAsync("document.documentElement.outerHTML") Dim decoded = System.Text.RegularExpressions.Regex.Unescape(source)
  3. JohnH

    Resolved Registry value type

    You should do Case RegistryValueKind.String etc
  4. JohnH

    How to copy textbox1.text to clipboard

    In case you want to copy all text, and not just selection, check out the Clipboard class.
  5. JohnH

    Generar reporte Excel desde un datagridview

    Please translate to English and post again. Closing this thread.
  6. JohnH

    Question Problema invio mail da vb

    Please translate to English and post again. Closing this thread.
  7. JohnH

    Launch a web page with your default browser

    Try this: Process.Start(New ProcessStartInfo("http...") With {.UseShellExecute = True})
  8. JohnH

    Question Help Needed to make animation from pattern string for displaying Bingo winning patterns

    Make it Async Sub instead and call Await Task.Delay(250)
  9. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    ...at main · dotnet/winforms add => Events.AddHandler(s_clickEvent, value); Also each event has a protected On* method that raises the event, here there OnClick: winforms/src/System.Windows.Forms/src/System/Windows/Forms/Controls/ToolStrips/ToolStripItem.cs at...
  10. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    Oh, I forgot you were doing ToolStripMenuItem, base class ToolStripItem defines lots of the events that Control class normally has, including Click event.
  11. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    You need the key, which is an object in a shared field in the class or any base class (event DeclaringType or base). The field naming may take several forms based off the event name. See the fields in Control class for example: Source Browser, specifically that is the s_clickEvent Dim key =...
  12. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    This works for me in .Net 8, can copy all event handlers for any component, controls and menu items alike. Private Sub CopyEvents(source As Component, target As Component) Dim info = GetType(Component).GetProperty("Events", BindingFlags.NonPublic Or BindingFlags.Instance) Dim list1 =...
  13. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    You're using a different approch there, and not the Component.Events property that you asked about. Is that the same approch you're using for controls? There is no field with same name as the event that I can see, neither for controls or other components. Also, which .Net version are you using?
  14. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    You would use the same code to get Events property from any component.
  15. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    Control doesn't have a Events property, that is inherited from Component.
  16. JohnH

    Resolved Obtain the event handlers of a given ToolStripMenuItem

    It does. ToolStripMenuItem Class (System.Windows.Forms)
  17. JohnH

    Who's using .NET "Core"? (As well as a bit of an introduction...)

    My personal tools are upgraded to .Net 7, haven't got around to update to .Net 8, I'm guessing that is quickly done. I also have a .Net Framework windows service and a .Net Standard library in otherwise .Net 7 solution, since the .Net Worker service is not available to VB. I may rewrite the...
  18. JohnH

    Error open SQL Database Visual Basic 2012

    Moderator notice: Email and telephone removed. Use forum message or reply to thread.
  19. JohnH

    BitMap - BMP vs JPG

    https://learn.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how-to-set-jpeg-compression-level?view=netframeworkdesktop-4.8 https://stackoverflow.com/questions/7982409/is-jpeg-lossless-when-quality-is-set-to-100
  20. JohnH

    Not Sure How To Do A Control Array Or Pass An Object To A Sub

    There's Controls("name") or Controls(index)
Back
Top