Solved

VB3 Flexgrid column disappears when mouse dragged from right to left

Posted on 2008-09-30
2
254 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now