Click here to Skip to main content
15,887,376 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Queue and Stack Pin
Eddy Vluggen17-Apr-14 8:31
professionalEddy Vluggen17-Apr-14 8:31 
GeneralRe: Queue and Stack Pin
DJHJr17-Apr-14 9:07
DJHJr17-Apr-14 9:07 
GeneralRe: Queue and Stack Pin
Eddy Vluggen17-Apr-14 10:24
professionalEddy Vluggen17-Apr-14 10:24 
Questionfilesystemwatcher possible infinite loop Pin
Tony Snowden17-Apr-14 0:20
Tony Snowden17-Apr-14 0:20 
AnswerRe: filesystemwatcher possible infinite loop Pin
Richard Andrew x6417-Apr-14 0:45
professionalRichard Andrew x6417-Apr-14 0:45 
GeneralRe: filesystemwatcher possible infinite loop Pin
Tony Snowden17-Apr-14 1:07
Tony Snowden17-Apr-14 1:07 
QuestionHow to Run Transparent Flash Files Over a Running Video in VB Pin
NAVEEN SONI16-Apr-14 17:56
NAVEEN SONI16-Apr-14 17:56 
QuestionPass a string to a control on a form from a remoting connection Pin
ParadoxLiving15-Apr-14 20:27
ParadoxLiving15-Apr-14 20:27 
Hi, I'm feeling really stupid at the moment as i have spent days poring over code examples to no avail. I want to send a message received from a client to a textbox on a form here is an example of the code i've been attempting to modify
VB
Imports System
Imports Microsoft.Samples.SharedInterface


    Friend Class ImplementationClass
        Inherits MarshalByRefObject
        Implements ISharedInterface

    Function HelloWorld(ByVal message As String) As String Implements ISharedInterface.HelloWorld
        Console.WriteLine(("Client says: " & message))
        Return "Hello to you too, client"

    End Function 'Microsoft.Samples.SharedInterface.ISharedInterface.HelloWorld

    End Class 'ImplementationClass

my understanding is that this code is run in a separate thread when this code implements it
VB
Imports System
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.Ipc
Module Module1
    Sub main()


        RemotingConfiguration.Configure("Server.exe.config", False)

        Dim chan As IChannel
        For Each chan In ChannelServices.RegisteredChannels
            Console.WriteLine(chan.ChannelName)
        Next chan

        Console.WriteLine("Waiting for connections...")
        Console.WriteLine("Press enter to exit.")
        Console.ReadLine()
    End Sub
End Module

I have moved the code out of sub main and into a form, where the form executes it on load, but that leave no reference to the thread or object from the interface. as a result i cannot use any data received through the interface beyond writing it to the console. i cannot directly reference the form in the implementation class and without a link to the form i cannot even use a delegate. any suggestions would be greatly appreciated.
AnswerRe: Pass a string to a control on a form from a remoting connection Pin
Alan N16-Apr-14 4:48
Alan N16-Apr-14 4:48 
GeneralRe: Pass a string to a control on a form from a remoting connection Pin
ParadoxLiving16-Apr-14 16:07
ParadoxLiving16-Apr-14 16:07 
QuestionStart another process as admin Pin
Dominick Marciano15-Apr-14 3:52
professionalDominick Marciano15-Apr-14 3:52 
AnswerRe: Start another process as admin Pin
Bernhard Hiller15-Apr-14 22:25
Bernhard Hiller15-Apr-14 22:25 
GeneralRe: Start another process as admin Pin
Dominick Marciano16-Apr-14 8:22
professionalDominick Marciano16-Apr-14 8:22 
GeneralRe: Start another process as admin Pin
Dave Kreskowiak16-Apr-14 9:41
mveDave Kreskowiak16-Apr-14 9:41 
AnswerRe: Start another process as admin Pin
helfetho17-Apr-14 0:56
helfetho17-Apr-14 0:56 
GeneralRe: Start another process as admin Pin
Dominick Marciano17-Apr-14 4:35
professionalDominick Marciano17-Apr-14 4:35 
GeneralRe: Start another process as admin Pin
helfetho17-Apr-14 5:48
helfetho17-Apr-14 5:48 
QuestionNo value given for one or more required parameters. Pin
jkirkerx14-Apr-14 12:16
professionaljkirkerx14-Apr-14 12:16 
Answer[SOLVED] Pin
jkirkerx14-Apr-14 12:34
professionaljkirkerx14-Apr-14 12:34 
GeneralRe: [SOLVED] Pin
Tim Carmichael15-Apr-14 2:04
Tim Carmichael15-Apr-14 2:04 
GeneralRe: [SOLVED] Pin
jkirkerx15-Apr-14 6:32
professionaljkirkerx15-Apr-14 6:32 
QuestionRe: how to import all csv files in a drive to database ? Pin
sensizbenlik14-Apr-14 10:10
sensizbenlik14-Apr-14 10:10 
GeneralRe: how to import all csv files in a drive to database ? Pin
PIEBALDconsult14-Apr-14 10:40
mvePIEBALDconsult14-Apr-14 10:40 
AnswerRe: how to import all csv files in a drive to database ? Pin
Wes Aday14-Apr-14 11:14
professionalWes Aday14-Apr-14 11:14 
GeneralRe: how to import all csv files in a drive to database ? Pin
sensizbenlik14-Apr-14 14:25
sensizbenlik14-Apr-14 14:25 

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.