Click here to Skip to main content
16,005,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Grabbing form's content Pin
thebread21-Aug-05 2:24
thebread21-Aug-05 2:24 
Generalsimple datagrid relation display Pin
Member 145166320-Aug-05 2:12
Member 145166320-Aug-05 2:12 
GeneralProblem programmatically downloading file from forms authenticated site Pin
Jim Taylor19-Aug-05 23:27
Jim Taylor19-Aug-05 23:27 
Generalcom+ serviced component Pin
mailmechandru19-Aug-05 21:46
mailmechandru19-Aug-05 21:46 
GeneralRe: com+ serviced component Pin
Rizwan Bashir20-Aug-05 2:14
Rizwan Bashir20-Aug-05 2:14 
GeneralRe: com+ serviced component Pin
mailmechandru22-Aug-05 20:09
mailmechandru22-Aug-05 20:09 
GeneralRe: com+ serviced component Pin
Rizwan Bashir22-Aug-05 21:59
Rizwan Bashir22-Aug-05 21:59 
GeneralRe: com+ serviced component Pin
mailmechandru23-Aug-05 2:44
mailmechandru23-Aug-05 2:44 
thank you for advice. i'm new to serviced components programming. just learning the tricks. Hop u will help me. I understood what u told. But i could not make it into practise.

1. I just created a serviced component class with a public method which returns a string. And registered in the component services. Now according
to the .net principle now if i create a client project and on the form if i add the line "imports SERVERCOMPONENT" the component will be accessible in the form. Is'nt it ... or do i need to add the component by going to the add reference and linking the component ???

I will add the code for your reference ...

ServerLibrary.cs

Imports System.EnterpriseServices
Imports System.Runtime.CompilerServices
Imports System.Reflection

<assembly: applicationname("serverclass")="">
<assembly: assemblykeyfileattribute("d:\netprj\servicedcomponent\serverlibrary\serverclass.snk")="">

Namespace Serverclass
<transaction(transactionoption.required)> _
Public Class ServerClass
Inherits ServicedComponent
<autocomplete()> _
Public Function DoSomething() As String
Return " From a Serviced Component"
End Function
End Class

End Namespace

This class i compile and i'm adding it in the com+ servcies. The component is available in the component services.

And on the same machine i'm adding a client vb.net project .. i'm adding
imports serverclass
or imports serverlibrary.serverclass on the form code

Now the class is not available for instantiation .....

2. As u said in the previous reply after getting the above client ready I have to add a deployment project and then add the component export file to make the client installation file. Is'nt it ...

Chandru
GeneralRe: com+ serviced component Pin
Rizwan Bashir23-Aug-05 22:21
Rizwan Bashir23-Aug-05 22:21 
GeneralRe: com+ serviced component Pin
mailmechandru24-Aug-05 21:00
mailmechandru24-Aug-05 21:00 
GeneralRe: com+ serviced component Pin
Rizwan Bashir24-Aug-05 22:06
Rizwan Bashir24-Aug-05 22:06 
GeneralRe: com+ serviced component Pin
mailmechandru25-Aug-05 0:33
mailmechandru25-Aug-05 0:33 
GeneralRe: com+ serviced component Pin
Rizwan Bashir26-Aug-05 0:12
Rizwan Bashir26-Aug-05 0:12 
GeneralRe: com+ serviced component Pin
mailmechandru24-Aug-05 21:05
mailmechandru24-Aug-05 21:05 
GeneralOffice 2003 Style Pin
moe18819-Aug-05 17:00
moe18819-Aug-05 17:00 
GeneralRe: Office 2003 Style Pin
toxcct19-Aug-05 22:55
toxcct19-Aug-05 22:55 
GeneralEasier way to run programs Pin
JoeySmith19-Aug-05 10:16
JoeySmith19-Aug-05 10:16 
GeneralRe: Easier way to run programs Pin
Dave Kreskowiak19-Aug-05 11:08
mveDave Kreskowiak19-Aug-05 11:08 
GeneralRe: Easier way to run programs Pin
JoeySmith19-Aug-05 11:31
JoeySmith19-Aug-05 11:31 
GeneralRe: Easier way to run programs Pin
Dave Kreskowiak19-Aug-05 12:09
mveDave Kreskowiak19-Aug-05 12:09 
GeneralPrinting Data on a form in VB.net Pin
waingee19-Aug-05 9:30
waingee19-Aug-05 9:30 
GeneralRe: Printing Data on a form in VB.net Pin
progload19-Aug-05 9:53
progload19-Aug-05 9:53 
GeneralRe: Printing Data on a form in VB.net Pin
waingee23-Aug-05 9:03
waingee23-Aug-05 9:03 
GeneralInheritance Problem Pin
ACatellani19-Aug-05 3:46
ACatellani19-Aug-05 3:46 
GeneralRe: Inheritance Problem Pin
Steve Pullan21-Aug-05 19:16
Steve Pullan21-Aug-05 19:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.