Solved

Grid alignment setting

Posted on 2000-03-25
1
129 Views
Last Modified: 2010-05-02
Hi,

I tried to set

MSFlexGrid1.CellAlignment = flexAlignLeftCenter

but the numbers still go to right.

Anything wrong?

0
Comment
Question by:victorlong
1 Comment
 
LVL 3

Accepted Solution

by:
wpsjr1 earned 40 total points
ID: 2657197
I see the VB5 help file has the following:

Sub Form1_Load ()
      MSFlexGrid1.CellAlignment = flexAlignLeftCenter
End Sub

This is incorrect.  You must set the row and col and THEN set the CellAlignment for EACH cell.  It cannot be done globally, AFAIK.

Good Luck!

Paul

http://www.syix.com/wpsjr1/index.html
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

810 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