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 / August 2007

Tip: Looking for answers? Try searching our database.

function scope

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GS - 15 Aug 2007 02:01 GMT
I have a c# application with windows form for updating and retrieving some
database table records. lets call it form1. I also have another  application
in vb that extracts data from the web but used the same database table as
input to direct its operation. the data in the table is not useable directly
but need a bit of transformation as done in the form1.

how can I make retrieval functions in forml to the vb application? use the
same package name but in different project?

I want the vb app to control the form in terms of selecting the record but
only if the form1 is instantiated by the vb application.

if I just use the instantiation of application method, I don't know how to
make available the required functions and the called internal function
without the public

thank you for your time and expertise.
xtekneek@gmail.com - 15 Aug 2007 04:16 GMT
On Aug 14, 9:01 pm, "GS" <gsmsnews.microsoft.co...@msnews.Nomail.com>
wrote:
> I have a c# application with windows form for updating and retrieving some
> database table records. lets call it form1. I also have another  application
[quoted text clipped - 13 lines]
>
> thank you for your time and expertise.

Explaining what you need to do all in one reply is a bit much but I
will do my best to point you in the right direction.  One approach to
this is to make a 3rd assembly which has in Interface in it and you
need to have your VB or C# app implement this interface that way one
or the other app can instantiate/launch the other app and get the
object tnat is implementing the interface and it can call methods/
properties on that object.

Good luck!
GS - 15 Aug 2007 05:00 GMT
I will search on the subject for interface to implement instantiation by the
vb app of the c# app.

just curious, is it possible in vb to create a class inherited from the cs
class application?
if so, can I not use some sort scope equivalent to friend or protected?

> On Aug 14, 9:01 pm, "GS" <gsmsnews.microsoft.co...@msnews.Nomail.com>
> wrote:
[quoted text clipped - 25 lines]
>
> Good luck!
Kevin Spencer - 15 Aug 2007 12:38 GMT
VB.Net and C# compile to the same managed intermediate language code, so you
can certainly work with assemblies written in either language from either
language. This means that, yes, you can inherit a class in a C# project by a
class in a VB.Net project.

Signature

HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

>I will search on the subject for interface to implement instantiation by
>the
[quoted text clipped - 40 lines]
>>
>> Good luck!

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.