PC Review


Reply
Thread Tools Rate Thread

Another .Net question..using the MSFlexGrid

 
 
Martin K
Guest
Posts: n/a
 
      2nd Apr 2004
Hello all..thanks for everyone's advice regarding my SHBrowseForFolder
API problem, I was able to put together a public class that runs
great! But I have another migration headache regarding the MSFlexGrid.

I have been able to successfully add a COM object MSFlexGrid in my
VB.Net project. I can successfully populate and manipulate the grid.
But, I have two problems, that I used to be able to do with no issues
in VB 6.

1) AutoSizing the grid at run-time. I have a function that auto sizes
the Grid at run-time. However, this grid implements the old
Form1.TextHeight() and TextWidth() properties of VB 6. .Net does not
have this property. I have tried using the graphics class but I can't
get what I need. What I need to be able to do is something like this
(in VB, it would be like this

lRHeight = lRHeight + Form1.TextHeight("xx" /5)

Basically, how can I get the textHeight of a standard string and
manipulate it so I can auto size my MSFlexGrid, has anyone had any
success auto sizing a MSFlexGrid in .Net?

2) Printing the MSFlexGrid. I REALLY need the ability to print out my
MSFlexGrid. Does anyone know of a way to do this in .Net. Even if it
is a graphics method of simply taking the FlexGrid and printing it out
to the standard printer object (even if I lose the grid lines)..I have
a class module in VB that does the trick, but this is completely
incompatible in .Net

If anyone has had success printing out a MSFlexGrid or auto sizing
MSFlexGrid columns, I would be grateful for any insight. Thanks in
advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MSFlexGrid question - please have a look mcnews Microsoft Access Getting Started 1 19th Nov 2007 04:17 PM
MSFlexGrid =?Utf-8?B?TWlrZUc=?= Microsoft Access VBA Modules 3 10th Feb 2007 09:43 AM
MSFlexgrid Question! Jim Microsoft VB .NET 0 14th Oct 2004 11:36 PM
How can I use a MSFlexGrid in VC .NET? =?Utf-8?B?Q2hyaXMgQmFrZXI=?= Microsoft VC .NET 0 7th Oct 2004 04:25 PM
MSFlexGrid David Sawyer Microsoft VB .NET 2 8th Sep 2003 11:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 AM.