Search:

Type: Posts; User: sonic8

Search: Search took 0.02 seconds.

  1. Throw Exception if assembly is loaded in specific Fx version

    In context with my question Interface Comparer in .Net Fx 2.0 vs .Net Fx 4.x I'm facing the situation that my code is not working with .Net Fx 2.0.

    If I would decided not to support .Net Fx 2.0...
  2. Interface Comparer in .Net Fx 2.0 vs .Net Fx 4.x

    I've got something like this code in a library assembly:

    Public Interface IPlanable
    Property XYZ As String
    End Interface

    Public Class SomePlanableItem
    Implements IPlanable
    ...
  3. Re: Run App linked to access db without Microsoft Access been installed.

    You need to include the Microsoft Access Database Engine Redistributable.
  4. Replies
    18
    Views
    2,147

    Re: intptr in different threads

    Where is your buffer variable coming from? Is it possible that it is overwritten with the bitmap bytes from another thread?
  5. Replies
    5
    Views
    1,370

    Re: VB.NET Perform DoubleClick on Label

    Your problem description is hard to comprehend.
    It reads to me as if your Label_DoubleClick code worked fine until you now try to call the event handler of the Label_DoubleClick from a...
  6. Re: Override scroll-wheel behavior in NumericUpDown?

    Good point!
    The Delta value is supplied by the mouse driver. The Delta value of 120 for one notch on the wheel is the default value and applies to most mice. If there is a special mouse present with...
  7. Re: Override scroll-wheel behavior in NumericUpDown?

    One solution would be to create a custom control derived from NumericUpDown and override OnMouseWheel to reduce the Delta of the MouseEventArgs.

    E.g.:

    Public Class MyNumericUpDown
    Inherits...
  8. Re: API Compile Error 'AddressOf' expression cannot be converted to 'Long'

    In general, I recommend you read up on VB6 to VB.Net transition. A VB6 Long should be an Integer in VB.Net. However, most of the Long arguments in your WinAPI declaration should actually be neither...
  9. Replies
    10
    Views
    1,557

    VS 2019 Re: Web Scraping

    I assume this topic is often frowned upon because web scraping is frequently used to either republish/redistribute content without permission or to build spam bots to flood forums, comments, or...
  10. Replies
    7
    Views
    1,143

    Re: A Question of Best Practices

    The advantage of throwing an exception is that the exception can include quite a bit of information (its exact type, message, source, stack trace etc.) that can be very useful for error analysis and...
  11. Replies
    7
    Views
    1,143

    Re: A Question of Best Practices

    If this is about a reusable module that is used in multiple different projects, either as library or by copy&paste, I would strongly advise against showing any message boxes from the module itself. ...
  12. Re: [RESOLVED] ComboBox Validating does not fire after selection+edit

    I cannot pinpoint the exact cause, but there is quite a lot happening in the form when the ComboBox is updated. This includes removing/adding some other controls to the panel the ComboBox sits on,...
  13. Re: ComboBox Validating does not fire after selection+edit

    Hold on! - This might be a problem of my own making.
    I just created a super simple demo from scratch to isolate the problem and there the issue is not reproducible; i.e. the Validating event fires...
  14. Re: ComboBox Validating does not fire after selection+edit

    Exactly! But the Validating event does not fire when the user leaves the control after first selecting and then editing the selected value.
    (I edited my original post to clarify this part of the...
  15. [RESOLVED] ComboBox Validating does not fire after selection+edit

    I'm working on a Windows Forms (.Net Fx 2.0) application.
    I've got a standard WinForms ComboBox control, which has a hardcoded list of items. The user should also be able to type custom values,...
  16. Replies
    4
    Views
    877

    Re: MS Access backend - Dependency question

    The "JET or ACE driver" mentioned in this thread is officially named Microsoft Access Database Engine Redistributable, sometimes shortened to "ACE Redist". After clicking the Download button, you can...
  17. VS 2022 Re: Get XY coordinates of a web page without directly access the web

    Seriously?
    This is a 45 posts long thread and neither you showed the code that is not working as expected, nor anybody asked for it?
  18. Replies
    7
    Views
    1,332

    VS 2022 Re: How do modern file extensions work?

    The docx format is an open standard and any application can read and write docx files if its creator implemented it. There are numerous applications, including WordPad and Libre Office doing so. And...
  19. Re: Prevent AutoScroll from jumping to the top

    I've now tried several approaches, including...

    overwriting the WndProc and swallowing scroll-related events,
    storing the position of the scrollbar on Deactivate and resetting it to the same...
  20. [RESOLVED] Prevent AutoScroll from jumping to the top

    I’ve got a custom control derived from System.Windows.Forms.UserControl, which paints itself in an overridden OnPaint proc and also has a varying number of other controls sitting on top. Depending on...
  21. VS 2019 Re: Is the mouse click in a form's non-client area?

    I wouldn't mess with the mouse pointer position.
    What if the user tries to close the form with [ALT]+[F4] while the mouse pointer is inside the client area? - Just to name one scenario where mouse...
Results 1 to 21 of 21



Click Here to Expand Forum to Full Width