msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UserControl in VB6

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation
Author Message
Christian Havel



Joined: 04 Oct 2007
Posts: 14

PostPosted: Tue Jul 31, 2007 12:12 pm    Post subject: UserControl in VB6 Reply with quote

Hi,

I want to develop a VB6 UserControl. The control should be used from a VC++
MFC app. The control should show the values from a lot of fields (about 20).

I do not want to add a set-property for each field. My idea is to create a
dataTransferObject which contains all the fields.
How do I have to realize this in VB6?

Thanks
Christian

Archived from group: microsoft>public>vb>ole>automation
Back to top
View user's profile Send private message
Ralph



Joined: 04 Oct 2007
Posts: 4148

PostPosted: Tue Jul 31, 2007 2:46 pm    Post subject: Re: UserControl in VB6 Reply with quote

"Christian Havel" wrote in
message @microsoft.com...
> Hi,
>
> I want to develop a VB6 UserControl. The control should be used from a
VC++
> MFC app. The control should show the values from a lot of fields (about
20).
>
> I do not want to add a set-property for each field. My idea is to create a
> dataTransferObject which contains all the fields.
> How do I have to realize this in VB6?
>
> Thanks
> Christian

I think I know what you are trying to accomplish, but you probably have to
provide more information. A DTO doesn't have anything to do with a Property
object or the UC's own data. A DTO merely describes a method where
information is transfered between programs, processes, business objects,
etc. Within some contexts a Property object might even serve as a DTO.

My guess is you want to try and remove "layers" between the data coming
in/out and the UC own data store. My advice, based on the limited
information provided, is to first make your UC work. Then plan out your DTO.
Then go from there.

-ralph
Back to top
View user's profile Send private message
Elmue



Joined: 04 Oct 2007
Posts: 1

PostPosted: Wed Aug 08, 2007 8:37 pm    Post subject: Re: UserControl in VB6 Reply with quote

Christian Havel schrieb:
> Hi,
>
> I want to develop a VB6 UserControl. The control should be used from a VC++
> MFC app. The control should show the values from a lot of fields (about 20).
>
> I do not want to add a set-property for each field. My idea is to create a
> dataTransferObject which contains all the fields.
> How do I have to realize this in VB6?
>
> Thanks
> Christian

As you are lazy in describing what exactly you want it is difficult to
help you.
Noemally COM does the datatransfer.

May be this helps you:

Calling a VB ActiveX DLL from a MFC Client
http://www.codeproject.com/dll/vbactivexwithvc.asp

and

Handling VB ActiveX Events in Visual C++ client
http://www.codeproject.com/com/vbeventswithvc.asp

Elmue

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Reg UserControl Hi Background: I've added a few property to my usercontrol. How do you add the information string shown in bottom of Property window for each property? kjell

a UserControl Hi I'm just about to say I'm done with a usercontrol project. anyone feeling for checking it out? of course in a 'ready to run' exe project. (4 files zipped to 72kb) Kjell

UserControl Position How can I get the top, left, height and width position for a usercontrol form. The .parent object gives me the position of the form itself. Thanks

checking out my usercontrol Since I find it very valuable to hear your comments I'm hereby inviting you all to check out my calendar control written in VB6. I would also like to send a special thanks to Larry, Ken and Karl for their contribution in this project. Without their excell

Picturebox in a usercontrol Hi, I'm creating a usercontrol which contains a picturebox. When clicking a certain area of the usercontrol the Picturebox must popup and show extended information (sort of tooltip), but when there is a lot of info I want to show, I size the picturebox to
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group