473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Another .Net question..using the MSFlexGrid

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.
Nov 20 '05 #1
0 1390

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: rv daffin | last post by:
I need to clear the grid between updates without clearing the header row. What is the speediest way to do this? Thanks for your time. -- Dink - There are 10 kinds of people in the world......
1
by: PVS | last post by:
Hi, I am new to VC++ 7.0. I want to use MSFlexGrid in my dialog based MFC project in VC++ 7.0 (in VS ..NET IDE). I added the MSFlexGrid control into my resource editor toolbox and I dragged and...
0
by: Martin K | last post by:
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...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
0
by: Jim | last post by:
How would you guys approach this. Im manually populating a MSFLEXGRID with records from an access database, and displaying it to the user. I want to give the user an edit button, putting them in an...
1
by: schapopa | last post by:
Hi, I have a MSFlexGrid control on the SSTab and now I am trying to make it editable. I got some example on the net that explains how to achive that. So I have a text box that appears over the...
1
by: Tulasi | last post by:
Hi all, This is very uregent requirement.Requirement is, i am using MSFlexgrid in vb.net .At the run time this grid contains some data items.Any body knows how to print these rows using...
1
by: zoneal | last post by:
Hi, I am involved in the process of migrating vb(6.0) application to vb.net. My application contains only vb controls namely MSFLEXGRID. I want to migrate my application to vb.net completely...
5
by: Ishmael | last post by:
Hi Is Been a 3 Yrs Now (I Still trying to do this) Please help me to do this with Visual Basic 6.0 using Msflexgrid Let say you are the Principal . You have 10 educators and 5 class (Grades)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.