Solved

VB3 Flexgrid column disappears when mouse dragged from right to left

Posted on 2008-09-30
2
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

617 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