Search:

Type: Posts; User: DaveDavis

Page 1 of 12 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    26
    Views
    44,829

    Re: VB6 - Returning/Detecting Empty Arrays

    some similar discussion on this forums:
    Id 736285
    Id 375341
    Id 231663
  2. Replies
    14
    Views
    1,177

    Re: vb6 Development on Windows 11

    They are forcing you to change the OS from Hard Disk to SSD to solve those hanging problem...
  3. Re: How do you remove the icon from the controlbar of a window?

    How to get GetWindowSize?
    GetWindowRect can do so but... because it requires the window has been shown at least once. This is a REAL headache.
  4. Thread: VB6 to .NET

    by DaveDavis
    Replies
    11
    Views
    559

    Re: VB6 to .NET

    setup.exe ???
    What is it? Nobody dare to open.
  5. Re: How do you remove the icon from the controlbar of a window?

    Thank you explanations.
    Have you studied how to park the Form at exact position considering the thickness of Aero edge?



    Sub Main()

    'standard code not considering Aero borders
    ...
  6. Re: How do you remove the icon from the controlbar of a window?

    What is it? I can't understand.
  7. Replies
    5
    Views
    400

    Re: Videoplayer for VB,NET .net 6.0

    I have no knowledge on ElementHost. I used to use dsoframer.ocx (AxDSOFramer) to hold OLE Office MSWord on VB.NET app. Can ElementHost do so?
  8. Replies
    4
    Views
    352

    Re: PictureBox size in Print preview window

    Headache to design the print preview window due to Dpi reason. For a user window, if we drag from 96dpi to another 168dpi, everything should enlarge in proportions for DpiAware/DpiAwareness. But for...
  9. Re: [RESOLVED] What is the event for double click the windows caption bar?

    The preview is customized, not use .NET's PrintPreviewDialog.
  10. Re: FYI: Scrollbar Theme Fade-in-out (breath light) feature on Win11

    I also have such feeling at first. When I get used, I am OK.
  11. Re: FYI: Scrollbar Theme Fade-in-out (breath light) feature on Win11

    Our famous LeandroA's ucGridPlus also used CarlesPV 's ucScrollbar, I can see the Theme is not working on Win11 or Win10.
  12. Re: [RESOLVED] What is the event for double click the windows caption bar?

    The form (e.g. for Print Preview) have to set Maximize when the form start showing, MaximizeBox is True and the form is Resizable. That is the reason I have such problem. MS doesn't provide such...
  13. Re: FYI: Scrollbar Theme Fade-in-out (breath light) feature on Win11

    [VB6] Smooth Scrollbar Control v1.0.9b (updated 11/12/19) by shagratt
  14. Replies
    4
    Views
    352

    Re: PictureBox size in Print preview window

    For WYSIWYG printing, the picturebox size in pixel will follow the actual paper size computed by some factors such as Screen Dpi and zoom factor.
  15. Replies
    4
    Views
    352

    PictureBox size in Print preview window

    Let's say we use one Picturebox as print preview canvas. If we print on A4 paper and the zoom is 100% , does the Picturebox need to resize to 21.0 x 29.7 cm (for Dpi 96, 793x1122 in pixel) for best...
  16. Re: [RESOLVED] What is the event for double click the windows caption bar?

    My form's start up sets to maximize and resizable:(
  17. Re: what is the event for double click the windows caption bar

    this link replied my question.
  18. Re: What is the event for double click the windows caption bar?

    this link replied my question.





    class Form1
    {
    private const int WM_NCLBUTTONDBLCLK = 0xA3;
    private const int HTCAPTION = 0x2;
  19. Re: what is the event for double click the windows caption bar

    Processing WM_NCLBUTTONDOWN and WM_NCHITTEST can do...but make thing complicated.
  20. Re: what is the event for double click the windows caption bar

    Thank you, We can subclass WM_NCLBUTTONDBLCLK then resize our Form.

    How about the drag then resize behavior?
  21. Re: what is the event for double click the windows caption bar

    Look like there's no direct event. I have to Subclass WM_NCLBUTTONDBLCLK for double click. Still thinking what is the start drag and resizing relevant event.
  22. [RESOLVED] What is the event for double click the windows caption bar?

    When we double click or drag the caption bar, the windows automatically resize to a certain size.
    My question is:
    What is the event for double click the caption bar?
    What is the event...
  23. [RESOLVED] what is the event for double click the windows caption bar

    When we double click or drag the caption bar, the windows automatically resize to certain size. My question is: What is the event for double click the caption bar? What is the event for drag the...
  24. FYI: Scrollbar Theme Fade-in-out (breath light) feature on Win11

    On Win11, The Scrollbars got 2 obvious changes:
    1. Fade-in-out feature
    When mouse move out of Scrollbar, the thumb and arrow button are fade-out like hp's breath LED light. It's very beautiful....
  25. Re: GetSystemMetricsForDpi alternative

    I got it:
    1. While app launching, read the main screen Dpi by gInitMainScreenDpiX= NativeMethods.GetDeviceCaps(desktopDC, 88) and set VScrollbar.Width = NativeMethods.GetSystemMetrics(2)
    2. While...
  26. Re: GetSystemMetricsForDpi alternative

    OK.
    I got it:
    1. While app launching, read the main screen Dpi by gInitMainScreenDpiX= GetDeviceCaps(desktopDC, 88) and set VScrollbar.Width = GetSystemMetrics(2)
    2. While app move to another...
  27. Re: GetSystemMetricsForDpi alternative

    GetSystemMetrics(2) always returns the main display screen data. GetSystemMetricsForDpi has 2nd parameter DeviceDpi to do computation. It is useful when the window moved to the 2nd Monitor.
  28. Re: GetSystemMetricsForDpi alternative

    GetSystemMetrics(2) always returns the main display screen data. GetSystemMetricsForDpi has 2nd parameter DeviceDpi to do computation. It is useful when the window moved to 2nd Monitor.
    ...
  29. Re: GetSystemMetricsForDpi alternative

    Please test :
    1. Main Display (Monitor) is over 96 Dpi (e.g. 168 Dpi or 175%), 2nd display is whatever.
    2. Main Display (Monitor) is 96 Dpi, 2nd display is over 96 Dpi(e.g. 168 Dpi or 175%)....
  30. Re: GetSystemMetricsForDpi alternative

    SystemInformation.VerticalScrollBarWidth is the same with GetSystemMetrics(2). From what I tested, it fails to get the right value in some situation (e.g. Main display is 168, 2nd is 96 Dpi). I even...
  31. Re: How to draw a simple border lines around ListBox

    It's a dropdown Listbox to simulate ComboBox. But as you said, I can put a panel container and draw panel border.
  32. [RESOLVED] GetSystemMetricsForDpi alternative

    GetSystemMetrics is an old API w/o DPIAware. GetSystemMetricsForDpi does. But GetSystemMetricsForDpi is a newer API for above Windows 10 Anniversary version 1607. Is there any way to replace by a...
  33. [RESOLVED] GetSystemMetricsForDpi alternative

    GetSystemMetrics is an old API w/o DPIAware. GetSystemMetricsForDpi does. But GetSystemMetricsForDpi is a newer API for above Windows 10 Anniversary version 1607. Is there any way to replace by a...
  34. How to draw a simple border lines around ListBox

    Due to some issues on other than 96 Dpi for BorderStyle.FixedSingle, I set the Listbox's BorderStyle = BorderStyle.None, but I want to draw a simple border line around. How to do this?
    The below...
  35. Re: Who is in charge of Column With and Row Height for DpiAware?

    After I did this:


    m_Columns[2].Width = m_Columns[2].Width * sngDpiScaleFactor
    m_Rows[2].Height= m_Rows[2].Height * sngDpiScaleFactor

    The draw is OK. But the retrieve value for...
  36. Re: Who is in charge of Column With and Row Height for DpiAware?

    Yes, I agree. Microsoft also applied the same SOP on standard components such as Month Calendar, Buttons...
    So, the UserControl have to take care the Client Size and Column/Row size multiplied by...
  37. How to draw a simple border around Listbox

    I set the Listbox's BorderStyle = BorderStyle.None, but I want to draw a simple border line around.



    public partial class DropDownListBox : ListBox
    {
    public DropDownListBox()
    {...
  38. [RESOLVED] Who is in charge of Column With and Row Height for DpiAware?

    One of gold rules is that we should develop our app in 96 dpi. We set the table Grid's properties like grid1.Column(2).Width = 80 and grid1.Row(2).Height = 30, but if the main screen is over 96 dpi,...
  39. Replies
    7
    Views
    477

    Re: check ckeckbox (webvview2)

    yes.
    Thank you.
  40. Replies
    7
    Views
    477

    Re: check ckeckbox (webvview2)

    I used to use WebBrowser control to edit my doc via DOM. But the problem i am facing is this obsolete control has poor support HTML5.
    Please educate me whether webview2 can be editable as what...
Results 1 to 40 of 447
Page 1 of 12 1 2 3 4



Click Here to Expand Forum to Full Width