Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

Create a com object to call a Winform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
William Gower - 11 May 2004 03:07 GMT
I need to create a com object that displays a Winform.  This com object will
be referenced from a VB 6 app.
Matt Berther - 11 May 2004 03:57 GMT
Whats your question?

--
Matt Berther
http://www.mattberther.com

> I need to create a com object that displays a Winform.  This com object will
> be referenced from a VB 6 app.
William Gower - 11 May 2004 04:27 GMT
Ok since last time, I have create a form in VS .net called frmOrganize.  I
created a class

Public Class Organize

   Dim FrmOrganize1 As FrmOrganize

   public sub new
   end sub

   public sub Show
       FrmOrganize1.Show
   end sub
end class

I build a dll.  I use regasm to register it and it is registered as
Myproject.Organize

In VB6, I add a reference to the .tlb.

I then call

dim frm
set frm = Myproject.Organize
frm.show

I get the error cannot create a file when the file already exists.  What am
I doing wrong?

> I need to create a com object that displays a Winform.  This com object will
> be referenced from a VB 6 app.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.