|
-
May 31st, 2026, 08:26 PM
#1641
Junior Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Attachment 196173
When a form contains two tables, clicking the middle position between the two columns in the image causes the mouse cursor to jump immediately to the upper section.
When you click on the upper table, it scrolls up by a small amount; when you click on the lower table, it scrolls up by a large amount.
This issue does not occur when there is only one table in the form.
The problem disappears after setting the Windows display scale to 100%. How can I resolve this? Thank you very much!
-
Jun 1st, 2026, 12:22 AM
#1642
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
 Originally Posted by fengzhongxia
Attachment 196173
When a form contains two tables, clicking the middle position between the two columns in the image causes the mouse cursor to jump immediately to the upper section.
When you click on the upper table, it scrolls up by a small amount; when you click on the lower table, it scrolls up by a large amount.
This issue does not occur when there is only one table in the form.
The problem disappears after setting the Windows display scale to 100%. How can I resolve this? Thank you very much!
Sounds weird. Only when more than one ?! With the scale then it must be sonething with dpi scaling.
I can't see your image. Maybe a small demo project would be good.
-
Yesterday, 04:39 AM
#1643
Junior Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
 Originally Posted by Krool
Sounds weird. Only when more than one ?! With the scale then it must be sonething with dpi scaling.
I can't see your image. Maybe a small demo project would be good.
VBFlexGridDemo
https://www.kdocs.cn/l/cdNXvTmjgRSE

This issue only occurs after moving the window to the position shown in the illustration and then clicking; it does not occur at the default window position.
-
Yesterday, 07:11 AM
#1644
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
 Originally Posted by fengzhongxia
VBFlexGridDemo
https://www.kdocs.cn/l/cdNXvTmjgRSE
This issue only occurs after moving the window to the position shown in the illustration and then clicking; it does not occur at the default window position.
When you include a new control "SplitContainer" you can not just blindly run the demo without checking the code.
For example. I changed "VBFlexGrid1" into "SplitContainer1" in the Form_Resize event and then the problems disappeared..
Code:
Private Sub Form_Resize()
Dim Width As Single, Height As Single
Width = Me.ScaleWidth - SplitContainer1.Left - Me.ScaleX(8, vbPixels, Me.ScaleMode)
Height = Me.ScaleHeight - (PicturePanel.Height) - Me.ScaleY(8, vbPixels, Me.ScaleMode)
If Width > 0 Then SplitContainer1.Width = Width
If Height > 0 Then SplitContainer1.Height = Height
End Sub
-
Yesterday, 02:07 PM
#1645
New Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Hi Krool, I need the old version of your VBFlexGrid.ctl user control because I’d like to release a portable version of the app I’m developing (a freeware interactive first-aid simulator). I’m unable to integrate the newer controls with DataBinding into the project. Where canJ find it? Thank in advance.
-
Yesterday, 07:11 PM
#1646
Junior Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Thanks for your reply, sir. It should be an issue with the new control. I'll check it again.
-
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
 Originally Posted by Walter_1949
Hi Krool, I need the old version of your VBFlexGrid.ctl user control because I’d like to release a portable version of the app I’m developing (a freeware interactive first-aid simulator). I’m unable to integrate the newer controls with DataBinding into the project. Where canJ find it? Thank in advance.
Hi Walter,
it's better to use a new version and let's find out what your issue is in detail so it can be fixed.
Thanks
-
New Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Thanks Krool for your kind and prompt reply. I downloaded the set of files from GitHub and, after OLEGuids.tlb, integrated them into a new project in this order: 2 .bas > 2.cls > .CT; then saved and closed VB6. But if I try to launch the app, even without any VBgrid, or if I try to draw one on the form, I alwayes get an error at this point:
Private PropDataSource As MSDATASRC.DataSource, PropDataMember As MSDATASRC.DataMember, PropRecordset As Object
Asking the AI "WHY?", its answer is: to fix this issue use the oldest version, without DataBinding, of Krool User Control (I use the simplest functions of your grid).
-
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
 Originally Posted by Walter_1949
Thanks Krool for your kind and prompt reply. I downloaded the set of files from GitHub and, after OLEGuids.tlb, integrated them into a new project in this order: 2 .bas > 2.cls > .CT; then saved and closed VB6. But if I try to launch the app, even without any VBgrid, or if I try to draw one on the form, I alwayes get an error at this point:
Private PropDataSource As MSDATASRC.DataSource, PropDataMember As MSDATASRC.DataMember, PropRecordset As Object
Asking the AI "WHY?", its answer is: to fix this issue use the oldest version, without DataBinding, of Krool User Control (I use the simplest functions of your grid).
Ok, you got an AI answer and that mislead me..
So, either make a reference to msdatsrc.tlb that is in C:\Windows\SysWOW64
Or set the compilation constant ImplementDataSource to False in the .ctl file.
Code:
#Const ImplementDataSource = False ' True = Required: msdatsrc.tlb
-
New Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Dear Krool,
I solved all problems doing with VB6.0 a new GRID User Control which meets my needs. It's light but enough powerfull for any simple app.
Thanks for you kindness and for your valuable contribution to community
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|