ListView problem

  • Thread starter Thread starter Pedro Fernandes
  • Start date Start date
P

Pedro Fernandes

Hi all.

I have a problem when I do interop between .NET and VB6.

What happens is that the listview loses the tile view when my .NET form
is under VB6.

Does VB6 support this feature?

Thanks.
 
could you clarify what do you want to achieve?

..NET and VB6 are completely different platforms. you can call .NET code
from VB6 and vice versa but still they have their functionality

Regards,
Galin Iliev[MCSD.NET]
www.galcho.com
 
Hi.

The scenario is: I've made some .NET dll's, to be called by VB6. In one
one those dll's I have a form with a listview in tile view.

On the other side I have a simple VB6 project that calls the .NET dll's.
The forms are created correctly, but the listview is not correct. The
sizes are lost. I suspect that as VB6 does not support tile view, it is
transformed in the large icon view.



Galcho[MCSD.NET] escreveu:
 
No. That doesn´t solve the problem.

In VB6 the tile size is not respected.


Galcho[MCSD.NET] escreveu:
 
Do you use .NET ListView or COM is not .NET form?
you have to use .NET listview and then must be fine

Could you post some screenshots somewhere if you keep experince the
problem

Regards,
Galin Iliev[MCSD.NET]
www.galcho.com
 
Here are the screenshots: one is in Visual Studio .NET and the other is
in VB6.

Notice the different sizes and look.



Galcho[MCSD.NET] escreveu:
 
Well, I think this can partially solve the problem (at least now...):

I chose the Tile view. But I give the listview an imagelist with the
size I want, so I force the size in VB6...

It was the best I got.

Galcho[MCSD.NET] escreveu:
 
Exactly, through COM. Using properties like:
[ComSourceInterfaces("WindowsApplication6.IEvents")]


Galcho[MCSD.NET] escreveu:
 
I use approach for calling .NET form from vb6 and VBA apps but I use
separate class that acts as wrapper for form and return result from
form.

of course this limit me as I cannot handle form events for in my case
result is all I want when form is closed.
when I expose wrapper to COM I am able to open form as from any other
..NET aplication

for instance

public class MyForm: Form {....}

[ComVisible(true)] //and some GUID attributes
public class Contacts
{
public void ShowFilterForm()
{
MyForm frm = new MyForm();
DialogResult res = frm.ShowDialog();
......handle res
}
}

I hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com
 
I'm doing something like that. ie, from VB I invoke a class, and this
class creates and launches the .NET form.



Galcho[MCSD.NET] escreveu:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top