VS 2008 Using TCP Communication For IM?
May 13, 2009
I am currently using the code from this thread:Click Here Using the code how would i allow the user through the client to send a message to the server which specifies the user the message is intended for as well as the message. I know how to send messages as there is a function for that in the code supplied in the link.Though how do i associate usernames with each client? As i saw a username property has been created in the code but how do i use it for the purposes i want?
I also need to be able to test the username and password fields for a login system..
View 12 Replies
ADVERTISEMENT
May 9, 2010
I made a device (it's a remote-control your computer thing). Is it possible to interact with it using USB & VB.NET? If so, how? I've looked around and it doesn't seem to be part of the framework, but maybe there's some API I could use? I could always use serial ports, but I don't really want this device to require a battery. Is it possible, and if not, is there another way I could do this?
View 16 Replies
Jun 15, 2011
I have a Windows Form Application which has been developed in vb.net 3.5. It is a charting program and shows stock market charts to users. Now I have made another program in vb.net (same .net version) and I want this program to interact with the one I made before. The new program is like a small scripting language. So for example: if I run a script then its output should be reflected in the other program. How can the two programs communicate ? Both will be running on same systems. No remote stuff. I mean passing arrays,strings or possibly structures.
Plus I have several functions which are written in first program. Is it possible for the other program which is an .exe also to call the functions of the other one if I make sub/function public or something. The reason is we can calls functions or subs if we include a dll. But can one exe calls functions/sub of another exe (if both program are in .net).
View 10 Replies
Jul 5, 2009
how to do serial communication using threading in vb.net 2008,
View 1 Replies
Apr 19, 2010
Is it possible to get the Tag property of another .NET form running in a seperate process?
View 11 Replies
Dec 7, 2011
I'm thinking of creating some applications that will process search and storage requirements.
I want these to be separate applications - so that I could eventually move them to different servers for scalability.
What methods are available for me to have these app's communicate with each other?
View 4 Replies
Apr 18, 2010
Question is related to rather simple programs typically presenting some data in a few datagridviews, charts etc. And consisting typically of a main form and one or two settings forms.I'm trying to program in a layered structure, pulling every bit of code out of any form class, and having a seperate "program class" for any form that I make. Now.. So far you can't complain on that I guess, but how to do this in best coding practice? In the form class I make a member object of the program class, hence making the program class a child of the form. Now I'm able to create events in the child class, and have handler methods in the form, without writing delegate classes (it seems). Now, that is fine, as it enables me to update the form controls with such events happening in the program class. However, how do I send events the other direction, from the form (parent) to the program class (child)? I guess I don't have to use events, I could just use the member object to access public methods in the program class directly, with passing of parameters from the form controls.. however, is that good practice? Or should I use events also that direction, and how to make that work, do I need to introduce delegate classes
View 21 Replies
Oct 13, 2010
I'm not sure what I have done wrong, I am trying to get my program to send data (UsernamesPasswords) from client to server, then the server says if it's right or wrong.
The error is on this line:
Dim networkStream As NetworkStream = TcpClient.GetStream()
Heres the Client:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
MsgBox("You must enter UN/PW!")
[Code] .....
View 4 Replies
Mar 22, 2011
I am working on a porject that interlinks a PC and PIC using the USBtoUART programmer for Serial Communication.
I have just started using and reading the Book on Visual Basic 2008 Professional and read the book by ROD STEPHENS <VB 2008> Programmer's Reference.
However, I would like to know where should I start working from?
I personally want to start from building the Visual Basic interface that enables serial communication between PC and the USBtoUART converter.
View 2 Replies
Oct 17, 2010
[Code]...
What kind of objects should BLL and DAL use for communication - DataTable or List<Customer> (for example)? In first case, BLL logic should transform Customer object to DataTable and send it to DAL. In secod case, DAL layer should be aware of Customer class, which is in BLL layer. But originaly DLL references DAL and not opposite...
Should I put all classes into seperate assembly, which is referenced by all others (Common, BusinessObjects, ...)? In this case I could use Customer class in all my projects. Should I even bother to seperate DAL and BLL when I know, that only one BLL will use my DAL. In this case I could merge them together into one project. PS - I am reading about DataTables and a lot of people say that we shouldn't use them at all. What are better options? Maybe it is time for me to learn some ORM mapping tools :)
View 4 Replies
Jan 25, 2010
There is some one who know how to do a connection to the server with using vb.net?
View 1 Replies
Feb 12, 2009
I have 2 projects (P1 and P2) in a VB2008 solution, with each project compiled to a separate EXE.P2.exe is started via a button on P1 and while P2 runs, certain aspects of P1 are disabled. When P2 closes, P1 needs to reactivate those disabled aspects.Question: How do I communicate with P1 from P2, seeing that they are 2 separate EXE files, even though part of the same solution?
View 2 Replies
Aug 27, 2009
communication between Flash and vb.net?
View 1 Replies
Jul 3, 2009
I wanna make an application in which i have to make two computers communicate each other. For example when a customer enters, his information is feeded in the computer at reception, and then this information is sent to another computer at upper storey, where the application detects the incoming data and populates in the relevant form.
View 2 Replies
Mar 10, 2009
Is it possible to read out the contents of a page that has already be loaded into a webbrowser...say IExplorer...? On 'normal' windows programs there is a way to externally control a program and its contents. But on a page loaded in a webbrowser i can't find a way to get external control of its contents and buttons ect...So to put it simple:I have Iexplorer up and running showing me some content.Now i want to run another program that can read out that content in IExplorer, and lateron put some 'updated' content back.
View 2 Replies
Mar 22, 2011
Is there a best practice way to communicate between a service and a GUI? Both will be created by myself so I'm not wanting to communicate to a service which belongs to someone else.
View 4 Replies
Apr 27, 2011
I;m making an application (who ins't xD), anyways, I'm using some encapsulation objects to transport stuff to the BLL. i was wondering (and might be sound stupid, I know) what you guys think is better practice:Either use Objects for transporting lots of stuff (like a BLL object to transport all its attributes) Or-handle around Strings through the GUI and only create objects when strictly needed.
Another question that just popped my mind: I'm using a Validation class in the BLL in order to validate stuff like "This particular object is already mapped, error" or "This is not well formed", and throw exceptions, instead of boolean values, since I'm at BLL level. Do you guys use a Validation class or perform the validation from the object itself? The old "who's responsible" problem.
View 2 Replies
Aug 3, 2011
I am using serial port class from VB.net to communicate my hardware. Some times I may lost or get incorrect data. I am just wondering how to implement hardware flow control in Vb.net
View 1 Replies
Feb 7, 2011
Imports System.Threading
Imports System.IO
Imports System.Text
Imports System.IO.Ports
[code]....
in my code,im inputting a byte coming from Arduino board microncontroller..im sending character 'N' to com5, and the code above is fetching that data from arduino board..my problem is the output string on the textbox is <78> which is the ASCII equivalent of 'N' how will i convert that to what is really being sent by the board which is 'N'..
View 4 Replies
Dec 30, 2009
i'm creating a windows form to send/receive data to/from serial port.At first : i send the data as string to the serial port .Second: i tried to read the string again for test the successfull transmission , but i recieved empty string
[Code]...
View 4 Replies
Dec 7, 2010
i built a web based task manager / scheduler using vb.net
i need to add a small communication part to it to allow users to send messages to each other.
below is my concept design. the question is: is this the correct way of building a simple communicator or do you have better
View 2 Replies
Sep 23, 2011
Looking for serial port communication using ASP.NET 4.0. I have a cardwriter/reader from IDTECH which talks through a comport. Is there any way to accomplish with .net through the web.
I read things but most of the topics on speaking about .net 2.0 and I was not sure if they created something to handle this in .net 4.0
View 2 Replies
Jul 7, 2011
I made some code in vb.net which checks if a certain process is running, and returns a 1 if it is, or a 0 if it isn't. Now I want it to send a packet to my server or something which would log the IP of the client, or something similar.
View 1 Replies
Jul 28, 2011
Here my problem is that i wants to write a web application in vb.net which receive the request from android application for login purpuse in xml format and after create a xml format responce, which receive by android application.
View 2 Replies
Nov 7, 2011
I am new for dotnet. i need to implement one concept that is i am developing one desktop application that is act as server and create one website. so client give a request from website to my desktop application. the server get the request and perform some task and then response to client. how to implement this concept. whether i use Http Listener or any other concept available in dotnet. url...
View 1 Replies
Jun 24, 2009
I have a device that communicates with the pc via a serial to usb cable. So I have made windows form with a serial communication to speak with it. The communication is every 125ms so every time it checks if the com port is open and sends the new message. The problem is that if the usb is not connected the program tries every 125 ms to connect to the serial port and the busy cursor appears always and the form is not responding to any action (for example enter into the menu or refresh a listbox). I have tried multiple times to connect and disconnect the usb while the program is running. That's mean that the serial connection stopped and started all over again several time. The problem is that occasionally it shows an error "unable to open com port".
View 10 Replies
Feb 19, 2009
What is the best way of communicating with Serial ports and TCP/IP communcation using vb.net?Using visual studio .net can we make it easier?? Can anyone send me sample application of communications?If I write a program communicating with my hardware using Searial port or TCP/IP, will the program be slow?? Are there any programming techniques working with communication ports?
View 1 Replies
Apr 14, 2011
Is it possible to read out the contents of a page that has already be loaded into a webbrowser...say IExplorer...? On 'normal' windows programs there is a way to externally control a program and its contents. But on a page loaded in a webbrowser i can't find a way to get external control of its contents and buttons ect..
View 1 Replies
Jan 17, 2012
Im doing a little program (.net2) that need to get info from a server.For starters I just want the Client-program to send a "Hi" and receive a"Ok" from server when client-program is started.
View 4 Replies
Apr 20, 2009
I would like to create a Windows Service that uses settings that are set from a GUI application, such as a Windows Forms application. I have seen this type of feature in programs that allow you to set options like "Run as service" within a Forms application, surely there must be a way. I have only came up with a rather primitive way of going about it, which is, to have a GUI create a text file with a predefined format that the Windows Service recognizes and at a predefined directory. And then have the Windows Service just read from that predefined directory with a predefined file name. But, this seems rather cumbersome.
View 2 Replies