Solved

VB3 Flexgrid column disappears when mouse dragged from right to left

Posted on 2008-09-30
2
256 Views
Last Modified: 2013-12-26
I have to put an old VB3 application on an XP PC.  It is using a flexgrid with four columns.  I noticed if you click a mouse on the last column on the right of the flexgrid and hold the mouse down and then drag it over to the left past the left that the left-most column disappears.  But if you keep the mouse clicked down and drag it over past the left margin of the flexgrid that the left-most column reappears.  I'm in the field and don't have time to upgrade to vb6 or higher.  Is there some way to have vb3 ignore a mousemove?  This only happens if I click and drag starting in the right-most column.  All columns stay visible if I start the click and drag event in any column other than the last.  I want to be able to click in any row to highlight the row, and that works fine right now.  It's only the click and drag to the left that causes problems.  There is no requirement in the software for someone to use a mouse drag type of event.  Thanks!
0
Comment
Question by:pg6111
2 Comments
 
LVL 13

Assisted Solution

by:game-master
game-master earned 250 total points
ID: 22676567


good afternoon!

in vb6 there is a flexgrid property "AllowUserResizing". If you find it on vb3
you may set that like this ... AllowUserResizing =flexResizeNone .... using these
code the columns and the rows of the flexgrid cannot be drag anymore...


i hope this will give u idea...

game-master
0
 

Accepted Solution

by:
pg6111 earned 0 total points
ID: 22994707
There is no AllowUserResizing property in vb3.  What worked was changing the number of ScrollBars to 0 whenever there was a mouse click event in the grid, and then resetting the number of ScrollBars back to what it was before the mouse click event.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question