C# - Communicating To Applications On LAN

Jan 3, 2011

I want to code an app with recreational purposes. This should be a Desktop app that detects itself running on other computers on the same LAN and communicates with them. By communication I mean that I should be able to pass anything from on to another. note that although I'm not asking for code (that would beat my purpose, of course) I think some small snippets wouldn't hurt. In any case what I really want is the "recommended procedure", I mean what Microsoft recommends for this environment, and documentation :)

View 3 Replies


ADVERTISEMENT

VS 2008 Communicating Between .NET Applications In The LAN?

Aug 8, 2011

I need to communicate between multiple applications (one server and multiple clients) in the LAN. While googling I came across 3 concepts (TCP/IP, Named Pipes and WCF). I also understand WCF needs lot of study for a starter like me. I need to have one (server) application running on one machine, the values generated by it should be displayed immediately on the other (client) application which will be running on multiple machines in a LAN. Also when the user pauses the process from the client application, it should pause the process on the server application.

View 2 Replies

Controlling Outside Applications - Resize Multiple Applications And Send Keystrokes To Each One

Sep 12, 2011

I am working on a project that is used for key broadcasting. Don't worry nothing illegal, I'm making a multibox application for world of warcraft. However I am having trouble when it comes to launching and manipulating other applications from another.

[Code]...

View 2 Replies

Communicating With Printers?

Feb 3, 2009

is there a way through vb visual express 08 to ask a printer if it has toner or paper? im not to sure on how to communicate with printers in this way if it is at all possible.i am writing a program to display the status of the printer and this is key.

View 1 Replies

Asp.net - Communicating With Android C2DM Using .NET?

Mar 8, 2012

I've set up this function in my web app to send push notifications to Android devices:

Private Function SendNotification(ByVal authstring As String) As String
Dim request As WebRequest = WebRequest.Create("https://android.apis.google.com/c2dm/send")
request.Method = "POST"

[code]....

However, whenever I call this function, I get the following error message: The remote certificate is invalid according to the validation procedure."

View 1 Replies

Communicating Form.vb And UserControl.vb

Jul 25, 2009

I have VB.net Simple application with form1.vb , UserControl1.vb and a simple Dataset with few records included. In my UserControl1.vb I'll added a Bound DataGridView1 with Products Datasource. My question is.. How can i filter the Products table from UserControl1.vb? The Filter Value ("ProdID") is from Form1.vb with textbox1(receive the value.). here is my Form1 code

[Code]...

View 4 Replies

Communicating With Access Database?

Feb 15, 2011

Im new to using databases in my programming and to be honeest i am struggling.i need to get the program to communicate with my database to allow the user to login this is the code i have so far as i say i dont know much about it so its a bit bodged.

[Code]...

View 4 Replies

Communicating With C++ Win32 Application?

Aug 20, 2009

Alright today im going to make a chat program in C++ and VB.net VB.net will be the server and C++ will be the chat room. Im doing this becuase some people dont have .net and the program fails so im trying this so then everyone can use it. How would i do this? Like C++ sending information to VB.net and printing it out on a textbox

View 2 Replies

Communicating Between Multiple Instances Of Application?

Mar 9, 2009

I have an application which the user can open multiple instances on the same machine. However, a section of the app would have sync problems if more than 1 instance has control over it. This is where I thought of transferring control, or sharing, between them. What should I be looking into?

They would have to be able to identify which one of them has control and to send text information over. I thought IPC or Named Pipes could do the trick, but I'm unfamiliar with them and examples seem to indicate only a single server will work. Here, I have multiple instances of the same app and every one of them needs to be able to listen for that request for control.

View 25 Replies

Communicating To A Device Using A USB To Serial Port (VCP)?

Feb 19, 2010

I am communicating to a device using a USB to serial port (VCP). I am having a problem with the usb failing. When the usb fails my app will lock up and the com port is lost. I have seen a post about this but cannot find it.

View 3 Replies

Communicating Via RS232 - Dll / Delphi Win32 Exe?

Sep 23, 2011

I have a Delphi program that communicates with a vb.net dll that I created. The vb.net dll communicates with a Fluke scope meter via an RS232 connection. I have created a program that communicates correctly via RS232, giving me the anticipated value. Though, when I package this up as a dll and access the dll from my Delphi program I always receive a value of "1", rather than the value I was expecting (most cases a value in and around 240).I know that my delphi program is definitely communicating correctly with the dll and that my dll is definitely communicating with the scope meter

Here is my vb.net code:
Public Interface IFlukeComm
Function GetReading(ByVal Command As String, ByVal PortNum As Integer) As String

[code].....

View 1 Replies

Communicating With Remote Host & Port?

Oct 1, 2009

I've been trying for a long time to do what seems to be the most simplest of things..I have a remote host and I need to know if certain posts on that host are open or closed.Many examples on the net that I have found arent complete, and because I havent worked with VB.net for long I dont knowhow to complete them.Here is my code:: The issue is with this it tell me the target port is always closed, when I know that it is open.Code:Dim host As String = "www.google.com" Dim port As Integer = 80 Dim addr As IPAddress =CType(Dns.GetHostAddresses(host)(0), IPAddress) Try Dim tcpList As New TcpListener(addr, port)tcpList.Start() Catch sx As SocketException MessageBox.Show("port is closed") End TryA friend of mine suggested using WinSock.. I've not dealt with it before so I don't know what he's on about.

View 2 Replies

Communicating With Sharepoint Site On Server?

Jan 10, 2011

I have a project in VB .net 2008 and would like to communicate with a Sharepoint site on our companies SP server. Is it possible to interact with the SP site such as:
Create sub-folder
Upload and download files
Change authority levels on folders

View 5 Replies

VS 2008 Communicating Between Mobile Device And Pc?

Sep 25, 2011

I am basically after some information on what you would believe to be the best way to send strings from a mobile device (possibly a windows mobile phone) to a PC and vise versa. Just so you know the distance could be upto 4 miles and no direct line of sight.

View 6 Replies

VS 2005 Communicating With A Windows Service Remotely?

Jul 27, 2009

I have created a windows service that monitors power events on the host machine. The next step that i wanted to do was to send custom messages to the service. To do this i have created a windows application and added a service controller control to it (drugged it from the toolbox). Initially i tried to send messages to my machine which worked fine (both the service controller and the service were running on the same machine)

Dim scSL As New System.ServiceProcess.ServiceController("MyFirstService", ".")
scSL.ExecuteCommand(128)

but when i tried to send a message to a remote machine on the network

Dim scSL As New System.ServiceProcess.ServiceController("MyFirstService", "machine001")
scSL.ExecuteCommand(128) i got the following error:

"System.InvalidOperationException: Cannot open Service Control Manager on computer 'machine001'. This operation might require other priviledges. ---> System.ComponentModel.Win32Exception: Access is denied.

Anyone knows what priviledges i need to set on the machine that has the service controller? Alternatively can anyone recommend a solution to this issue?

View 6 Replies

VS 2008 Client Server - Communicating Over Sockets

Aug 10, 2011

I am building a client-server type applications and they are communicating over sockets. This is the first time I am doing such a program and I have been learning off a web example and thought I understood it all but it would appear I am missing something as it starts to work then errors. Here is what I have:

VB
Dim serverSocket As New TcpListener(ListeningPort)
Dim clientSocket As TcpClient
Dim netStream As NetworkStream
Dim BytesFrom(1024) As Byte
Dim DataFromClient As String
[Code] .....

All of the above works and if I open up a telnet command window I can connect to my machine running this code on my specified port and in the command prompt window 'IDENTIFY' appears as it should from the above code. But it then gets to this block an errors on the second line:

VB
'RECEIVE FROM CLIENT
netStream = clientSocket.GetStream()
netStream.Read(BytesFrom, 0, CInt(clientSocket.ReceiveBufferSize))
DataFromClient = System.Text.Encoding.ASCII.GetString(BytesFrom)

Now as far as I can tell it shouldn't be processing the first line
[ netStream = clientSocket.GetStream() ]
Until I send something back from the client because then going on to the second line its trying to process something that isn't there yet.

The actual error I get is:
Specified argument was out of the range of valid values. Parameter name: size
On the line:
netStream.Read(BytesFrom, 0, CInt(clientSocket.ReceiveBufferSize))

View 8 Replies

VS 2008 Communicating With A VB6 App And A App - Display Predefined Forms

Dec 2, 2009

I have a need to be able to communicate with a VB6 application (I have the source code) whilst it is running. I just need to get it to display some predefined forms. Any tips on how I could achieve it. I was thinking along the lines of using Sockets.

View 1 Replies

Communicating Trough A RS 232 Comport To A Modbus Protocol Controller?

Apr 19, 2010

I need to interface between a PC and a Microcontroller based Controller to transfer data between the PC and the Controller?

Ive got acces to the register numbers or names in the Microcontroller.

View 2 Replies

Communicating With A Serial Device Kelba Electronic Balance?

Dec 3, 2011

I am attempting to communicate with set of scales with a vb application that i have written using the comm control. The scales are a Kelba KHX-30 I can read the data from the scales but i have to manually press a button on the scale.

View 4 Replies

WinForm Communicating - Win Form App Could Call Javascript In The Web Browser?

Jul 13, 2009

We have a web app in a web browser running on an intranet so security is less of an issue. We have a separate win form app. Is there any way the Win Form app could call javascript in the web browser. The browser can't be embedded in the WinForm.

View 12 Replies

C# - Communicating With Processeses - Create An Application That Will Act As Some Sort Of Task Manager

Jan 6, 2011

I'm going to create an application that will act as some sort of task manager. For stability reasons I will not use threads but processes instead. I have to deal with several third party libraries and/of COM servers that are not always that stable and can produce severe crashes sometimes. This may (of course) not affect the task manager

Problem with using processes is how to communicate with them? The process must f.e. give a status back of what it's doing every x seconds.

I was thinking of using TCP over a separate port per process, but is this the best way of doing this?

View 5 Replies

Communicating With Database - Matrix Style Controlboard ( Many Pictureboxes Used As Buttons)

Jul 24, 2009

I have built a matrix style controlboard ( many pictureboxes used as buttons) To call on a simple database. Being a beginner, I have not yet found any code for doing a query of sunh simple nature as this database. The Northwind samples are far more complex than what i have, but this is my main program, the reason I got into VB in the first place. 2 pictureboxes say PB1 & PB2. PB @ ontop of PB1. PB2 is invisible, but blocks view of PB1. Clickon 2, & it Hides(). Click on 1, & 2 Shows(). a simple math control box counts the events & turns the group inputs into binary output... 4textboxes per group is the way I chose Ther are roughly 200 pairs of these sporadically placed, this is just 1 pair. Textbox 16, & 18=0 @ form load 17 fixed ="1" 15 sets of these, TextBox42= binary value. This is the one that triggers the events for column "C" in the database. ( Their not in perfect order)

Anyway, this is where I need to get information tfrom the database to the listbox, heres that situation: Database has simply named columns A,B,C,D,E,F, G, H, ect.. Then the rows are equally simplistic row, rowB, rowC,..Any combination is represented here, Each row has several, but not all of the columns values. Since if only 2, or 3 of the variables clicked can = several different groups, a multiple reurn to the listbox is nessessary. I seen some code in an exercise that I think will do that, but how do I query the database to start the listbox load? The lesson shows a completely different situation for loading the listbox, but I think I can amend that easily enough. I just can't ask the simple question to the database.

Question is, if picturebox related to column "C" is clicked, how do I call the group names ( rows ) of those positive in Column "C" to the listbox? The Database is litterally that simple. Just 1 situation of columns & rows, not mutiple as in the lessons. If anything, I fear I'm too much a simpleton. I have added the PB's code

View 2 Replies

Connect Different VB Applications To A Database Server.like Accessing Data From One Database By Different Applications?

Aug 15, 2011

how to connect different vb applications to a database server.like accessing data from one database by different applications...

View 4 Replies

Running Applications Within Applications?

Jul 24, 2009

Is there a way to, when a parent application is opened up, that at the click of a button, or anything of designated event, that this parent application can open a secondary one?

View 11 Replies

HTTP Client Component For Communicating With HTTP Servers

Jan 17, 2009

Anyone know anymore .DLL Files that are like this?

HTTP client component for communicating with HTTP servers. [URL]

Im looking for something that acts like Web Browser Control But it is not. It should be like HttpWebRequest Class But handle the stuff properly like a Web Browser Control Does.

So i found Chilkat HTTP .NET

View 4 Replies

Communicating With An ASP.Net Application From A Windows Application

Nov 18, 2009

I'm currently working on a project which includes a web application and a windows application. Here's what I want to do:

I want to pop up a msgbox or something similiar on the windows application whenever a user makes an entry into a certain table in the database on the web application. It's going to be like msn messenger's new e-mail notification. All I could think of so far is checking the database for new entries every second or every a few seconds from the windows app. but I think this might add an extra load on the cpu and the internet connection of the client computer.

View 4 Replies

Can't Run Applications On Other Pc's

May 17, 2012

I made a quite big application and wanted to test it out on my other pc but it didn't even start and gave the system.InvalidException error.

I just the build-function to compile my project. It runs fine on the pc where i developed it. It has some dll's in it: mysql-connector, twitterVB and zipforge.

View 5 Replies

Get These To Add To Applications?

May 22, 2009

I've seen in a few applications now, buttons like this:

View 4 Replies

Anyone Know Of Any Starter Applications?

Jan 13, 2010

I'm a new programmer and I'm looking for some guides/series, or something like those, that basically walk you through building some sort of application. For example, I used to buy little sets/kits from radioshack that walked you through building a clock, radio, etc., or other little electronics devices. The kits came with all the parts and instructions so you just assembled them. Hence, I'm just looking for something similar to that for vb, minus the components obviously ;-). I like to learn through hands on experience so I'm just looking for some guides that have you build a program and briefly go explain the workings of the code.

View 8 Replies

Asp.net - Use Same Database For Both.net Applications?

Feb 4, 2010

is it possible to use same database for both vb.net appplication and asp.net??and if is possible, how can to connect it?now..i'd build vb.net application and asp.net in my laptop...it can connect..but i wonder how to make the database connect for vb.net and asp.net in real..

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved