Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,080 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,589 people online right now. Registration is fast and FREE... Join Now!




How to Pass a VB control as a parameter to a C# method

 
Reply to this topicStart new topic

How to Pass a VB control as a parameter to a C# method

Rating  4
Dinali
23 Apr, 2008 - 10:28 PM
Post #1

New D.I.C Head
*

Joined: 23 Apr, 2008
Posts: 1

Hi,

We are having an application which uses VB 6.0, VC++ and C#.
I want to pass a VB control as a parameter to a C# method. The purpose is that we are creating a new C# component where we set the font and character set for the VB UI controls. This is to support different languages. Since the application has a lot of existing code in VB we have to use this C# method in VB and pass the VB UI Control. When the UI control is passed to the C# method, internally it has to set the font and charset. We tried using object but it work. Please suggest how we could proceed.

Thanks,
Dina
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 07:35PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month