473,382 Members | 1,784 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,382 software developers and data experts.

Upgrade of VB6 MSForms.ListBox

I am trying my first VB6 to ,Net upgrade. The app uses the MS Forms 2 ListBox
control.

My original program assigns a column in the list box using:
.Column = V
where V is a two dimensional variant array. The upgrade (.Net 2003) changes
the line to:
.set_Column(V)
with an error 'Overload resolution failed..' - the function appears to need
either zero or 3 parameters. I canot find any documentation on the
..set_column routine and I dont really get the 3 arguments (Column as object,
Index as object, Value as object). Any ideas?

--
John Austin
Nov 21 '05 #1
6 3432
Hi,

Currently I am researching the issue and we will reply here with more
information as soon as possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2
"John Austin" <Jo*********@nospam.nospam> schrieb:
I am trying my first VB6 to ,Net upgrade. The app uses the MS Forms 2
ListBox
control.


Make sure you read the following article:

INFO: Usage and Redistribution of FM20.DLL
<URL:http://support.microsoft.com/?scid=kb;EN-US;224305>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Thanks Herfried, very interesting! I was not aware of the distribution issue.
The combo box in MS forms 2 is great though - multiple columns and hidden
columns - you can display a code and its description. When the combo is not
expanded it can show just the code, when it is expanded it can show the code
and the description - why could we not have this in VB6? True it messes up
the tab and backtab functions but they can be surmounted.
Best regards,
--
John Austin
"Herfried K. Wagner [MVP]" wrote:
"John Austin" <Jo*********@nospam.nospam> schrieb:
I am trying my first VB6 to ,Net upgrade. The app uses the MS Forms 2
ListBox
control.


Make sure you read the following article:

INFO: Usage and Redistribution of FM20.DLL
<URL:http://support.microsoft.com/?scid=kb;EN-US;224305>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Hi

Thanks for Herfried's suggestion.
So far the the controls were only licensed for use in Office in any case.

If you have Office you can use them in your applications, but the use is
unsupported and not recommended.
The big issue is that the DLL is not redistributable so your customer base
is limited to people who have Office installed.
Please check this article as Herfried's suggestion.
INFO: Usage and Redistribution of FM20.DLL
http://support.microsoft.com/default...B;EN-US;224305

So far I think you may try to use .NET control(listbox, list view or else
to do that job)
Thanks!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #5
Hi Peter,

In fact all users of this application have to have MS Office installed, so
the distribution issue does not matter in this instance. Any info regarding
set_column would be most welcome!
--
John Austin
""Peter Huang" [MSFT]" wrote:
Hi

Thanks for Herfried's suggestion.
So far the the controls were only licensed for use in Office in any case.

If you have Office you can use them in your applications, but the use is
unsupported and not recommended.
The big issue is that the DLL is not redistributable so your customer base
is limited to people who have Office installed.
Please check this article as Herfried's suggestion.
INFO: Usage and Redistribution of FM20.DLL
http://support.microsoft.com/default...B;EN-US;224305

So far I think you may try to use .NET control(listbox, list view or else
to do that job)
Thanks!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #6
John,

"John Austin" <Jo*********@nospam.nospam> schrieb:
In fact all users of this application have to have MS Office installed, so
the distribution issue does not matter in this instance. Any info
regarding
set_column would be most welcome!


I suggest to try to remove the dependency from this library because its use
in a Windows Forms host has neither been tested nor is it supported. If you
want to display tabular data, you can use the datagrid or listview controls
instead which are included in the .NET Framework's 'System.Windows.Forms'
namespace.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #7

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

Similar topics

17
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
3
by: Paul T. Rong | last post by:
I have a listbox (of product names) control on my form. I want to pass the selected item (a product name) to a subform, and the product unitprice should apear automatically next to the product name...
8
by: Oddball | last post by:
Ok - I have a ListBox control and I'm ready to write my own DrawItem event handler. What I want to draw as the item is another control. I have created a user control that I would like to list in...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
7
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but...
0
by: John Austin | last post by:
I am trying my first VB6 to ,Net upgrade. The app uses the MS Forms 2 ListBox control. My original program assigns a column in the list box using: .Column = V where V is a two dimensional...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
5
by: Academia | last post by:
(If you've seen this in the drawing NG, sorry. I inadvertently sent it there.) I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.