VS 2010 Code To Run 2 Instances Of The Same Client At The Same Time?

Jun 6, 2012

I'm trying to code to run 2 instances of the same client at the same time.Using a simple form with a button with system.dyecnostic.process.start(program path) to run the instance to start with.Now the problem starts with trying to run a second it just loads and closes and sends me to the first. how to negate this so I can get 2+ of the clients up?

View 3 Replies


ADVERTISEMENT

VS 2010 Client-to-Client LAN Messenger?

Jun 15, 2010

Can't find any free ones so thought I would work on one on my own for the heck of the learning experience with TCP stuff.I'm about ready to start on the messaging aspect of it.The biggest thing I'm wondering about is figuring out when people are online.I'm not too sure how the whole thing works.Say I turn on my messenger. Would my messenger just send a message to all IPs on a certain port to say I'm online and then wait for a message back from the IPs that can return messages and then figure out who is online that way?

View 13 Replies

VS 2010 : Send Data From Client To Server (encrypted) And The String Sent From The Client Is Not The Same As Received From The Server?

Jun 27, 2011

Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.

Client:

Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)

[code]....

View 4 Replies

Loading Multiple Instances Of One .dll In .Net 2010?

Sep 22, 2010

I'm working on a program that uses a COM Object exposed by a .dll. The .dll has a known bug, though, where it acts very erratically when more than one instance of the object is created under one .dll, resulting in crashes or corrupted data a large part of the time. I'm curious if there is some way I can load another instance of the .dll itself, then create another instance of the object without having to need a new process for every instance.

View 9 Replies

Communicate With More Than A Client At Time?

Dec 11, 2009

i'm making a server application which has to communicate with more than a client at time, do i have to list every remotehostip is it read only or i'm doing something wrong?p.s. i'm not fully understanding how winsock udp connections work so if you have the time could you explain (or show an example) on how it works ?

View 7 Replies

VS 2010 'Infinite' Public Instances Of A Class?

Jan 24, 2012

I'm a little out of my comfort zone here having programmed in VB6 quite a few years ago things have changed a lot since then.My issue is I have a class that I've built which works with no issues but I would like to be able to keep a 'handle' of some description on this class so I can also make adjustments to it's parameters when the user changes something. My problem is that I need to do this for an unknown quantity of these class instances.

In the VB.Net language how would I create an instance of this class that could be accessed by any Sub within the application and each instance created can be individually accessed by specifying some sort of identifier?

View 2 Replies

VS 2010 - Creating Multiple Instances Of Subs

Jul 31, 2011

I'm creating a twitter account manager using the Twitter API. I have multiple accounts, over 10 of them. I want to automate all 10 of these accounts to do certain things, now the way I started to code the program was so that it would accommodate only one account, and all the codes worked perfectly and were managed by individual timers for individual processes that I wanted done. i could tweet between certain intervals, follow people who tweet certain things without me being on top of it.

Now the problem is that I've been trying to create new instances of subs that I've already created so that I dont have to create 10 new subs with the exact same procedures. I'm pretty sure it's impossible to create copies of subs dynamically or within a loop but it didn't stop me from trying. So question is how can I edit a program that was designed to accommodate and automate only one account, to potentially accommodate over a 100? I don't need codes or anything I need ideas so I can try them, but right now I'm completely blank.

View 2 Replies

VS 2010 : Counting Instances Of A Query In LINQ?

Sep 24, 2011

How would I go about counting the number of times a given query occurs inside of a text file using LINQ?I need to search through the attached file and see how many justices were appointed by each president, and then create a new text file displaying the following:

presName, justiceCounter 'president name ordered by first name, number of justices appointed
I pretty much get how to do everything except for keeping an accurate counter within the LINQ query. However, I do feel confused about the order in which I should write this code, as in where I should keep my counter for how many justices a given president has appointed.

My output is displaying like this:

Abraham Lincoln,111
Abraham Lincoln,111
Abraham Lincoln,111

[code]....

View 10 Replies

VS 2010 Create A Collection Containing 5 Highest Instances

Oct 12, 2011

I have a problem that can be best solved with LINQ. I have a class that has 2 properties of which 1 is a single. I have a collection of that class and I need to select the instance with the highest single value.[code]I'm having a hard time explaining this even this is a simple task. Please ask if you don't understand.In addition to my original question, How would I create a collection containing the 5 highest Instances.

View 2 Replies

VS 2010 Does 'Dim Var As New Object' Delete Previous Instances Of The Same 'var'?

Oct 12, 2011

I am just getting started with VB.NET - what I couldn't find in my book is whether a new instance of an object with the same variable-name will delete the previously stored values - or will that somehow remain in memory?This is the scenario:

I open a data file and load the contents in 'Dim var As New dataObject'what happens when I again open another file and the same line is encountered:Dim var As New dataObject'

Hope the question is clear p.s. the dataObject is a simple structure with a bunch of variables in it - nothing fancy.

View 7 Replies

VS 2010 Have Multiple Object Instances Made At Once?

Jun 23, 2010

Like i have. Dim MainWindow as new Classic.

But i have another i need to Access.

Is there a Way. Ive Tried and Tried. But i can't find a Way to Load another.

View 19 Replies

VS 2010 : Finding Multiple Instances Of Same Word In RichTextBox?

Nov 13, 2010

txtSubject1Info.SelectionStart = txtSubject1Info.Find("Hey!")

I am finding specific words in the RichTextBox (in this case, "Hey!") and selecting them by getting their initial position through the "Find" command. Unfortunately, this does not work when I have multiple instances of "Hey!" in the RichTextBox. Here's an example:

Text in RichTextBox:
Hey! This is cool!

The Find command would return a value of 0 in this case. However, let's take a look at another scenario:

Text in RichTextBox:

In this case, the Find command would return a value of 0 again, but I want it to get the initial position of the second "Hey!" statement. I'm wondering how I can do this.

View 4 Replies

VS 2010 New To Message Queue - Multiple Instances Of Program?

Mar 1, 2012

I am using a message queue successfully as I am testing while I am writing a new program. (This is my first time using a message queue.) I have to have multiple instances of my program running, so I was wondering if this would be a problem with the queue? I have tested it and it looks fine, but I didn't know if it is by coincidence, or if the queues were separate.

View 6 Replies

TCP Communication - Send Data From The Client A Second Time

Oct 29, 2009

I've been playing around with the TCP client/server sample code I found on [URL] but I can't seem to get it to function correctly. The problem I am having is that if I try to send data from the client a second time I get nothing back, not even an error that it couldn't send data. Every time I run the project it works the first time but that's it. When I was running the code line by line it seems to get to 'networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize))' and then it jumps over the rest of the routine.

[Code]...

View 3 Replies

Change Connection String On Client Computer At Run Time?

Jan 21, 2012

and advise how I can change this connection string at run time. This is going to be on Client's computer and my application will need to change the name of computer after user enters it.

View 1 Replies

Synchronize Time From The Global Time Server In C # Code

Aug 28, 2010

I am working on a windows application project on NIST time synchronization, but can't get a proper solution for it. If anyone can send me the code to synchronize time from the global time server in VB.net or C # code

View 2 Replies

Send Data From Client To Sever And Sever To Client In 2010

Jan 13, 2011

Client/Server Application in vb.net 2010 i have created but it was just basic one. I need to show send data from client to sever and sever to client and and more functionality. (like showing price ot item or anything

View 2 Replies

VS 2010 Sorting A Listbox (after Trying To Copy Class Instances Properties To A Temp List)

Jan 25, 2012

I'm trying to figure out a way to sort the entries of a listbox... but in a different way instead of the obvious one (sorted property). First of all, I need to explain how the items are populated at first:

[Code]...

View 19 Replies

Client-Server-Client Multithreading - Instant Message Another Client

Jun 21, 2010

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.

[Code]...

View 2 Replies

Code Runs The First Time And Crashes The Second Time?

Jul 20, 2011

I have a problem and i can't find it, i'll explain on the codeThe first time it runs without errors but, the second time...lista is a ListView

Dim l As New List(Of String)
Sub LoadData(ByVal user As String)
lista.Enabled = False

[code].....

View 3 Replies

Looking For Client Listing Code?

Dec 10, 2009

I am using Visual Basic in Visual Studio 2010.I need a code which will find clients opened on my computer Then put them in a list.How do I do this?

View 6 Replies

TCP Connection Code For Client And Server Communication?

Nov 5, 2011

I have a TCP connection code for client and server communication. It's not meant to be malware but it collects the clients computer information and then connects to the server.

It successfully "connects" but then immediately disconnects.Here is the code for the server:

Dim Listener As TcpListener
Dim Client As TcpClient
Dim ClientList As New List(Of ChatClient)
Dim sReader As StreamReader

[Code]...

I have port forwarding all done and it works if I run the client and server on my own machine. If I run the client on another machine though It gives me a message box saying that it connected with the clients remote IP and at the same time it tells me it disconnected. The client never sends the system information. What is the problem?

View 2 Replies

Winsock - Code A Client - Server Program

Sep 6, 2009

I am trying to code a client - server program. I have 4 winsock controls on my main form. The client is able to connect to a free one just fine, and can figure out if they are all in use. When testing my program, I found that when I try to send data through a socket, then send different data directly after, it jumbles the data together.

CODE:

That is the code I am using. When the client is connected to the server, and ready for data, it sends the packet "@Ab". When the server receives this packet, It is supposed to send the welcome alert, and then current events posted in the server.

On the client side, there is a message box that is supposed to show the welcome alert, and at the bottom on a status strip, the current events are supposed to be listed.

When the welcome alert shows, it contains the alert text fine, but then shows the packet for the events after it.

View 3 Replies

Sample Code For Client Server Applications Using VB 2008

Jun 4, 2009

Is there any chance who can give me a sample code for client-server applications using vb.net 2008 express edition/professional edition?

1. What SQL Server should I use? Can we use SQL Server 2000 for Client-Server application as my back end database? and will use the vb.net 2008 express edition as front end?

2. If we use these two components (SQL Server 2000 (Back-end) + (VB.Net 2008 Frontend) do you think this will works properly?

3. If this is possible by accessing via code? then please send me connection string.

4. Is there any database server we can use? asides from sql server? where we can implement client-server applications? how about oracle? MySQL Database Server?

View 2 Replies

What Better Place To Start Than Designing An FTP Client Code Library

Jun 22, 2012

I'm trying to familiarize myself with network programming, and what better place to start than designing an FTP client code library?So far I'm not doing very good. I'm trying to create a method which downloads a file from a remote server to a local file path. To do so, all the examples that I could find declare a byte array that serves as a data buffer. I completely understand the point of doing that, rather than reading and writing byte per byte, but I just can't get it to work. Whenever I set a buffer greater than 1 byte, the output is somehow corrupted (different checksums, media files won't play etc).[code]Because this code does work when I set the buffer size to 1, I feel like there's something going wrong with the byte order. But all of this code is synchronous, so how is that even possible.[code]

View 1 Replies

VS 2010 Comparing Current Time To Stored Time?

Mar 27, 2011

I'm writing a report scheduler that is somewhat of a clone to the backupexec scheduler and the layout can be seen in post #10 here: [URL]..It works great and saves/edits/deletes records just fine, but now i need to compare those records one at a time in a windows service that i'm writing in order to trigger automated report creation and emailing - i already have the report and i already have the code for the emailing, i'm just looking for the most efficient way to loop through the table (that i've pulled in to a dataset) and compare its records with the current date and time - if true, the event fires.

[Code]...

1stSun, 2ndSun etc are bit fields, time is a datetime, and the remainder are varchar. My service checks the database every thirty seconds.The english version of what i'm trying to do is "Connect to the database, grab the entire table (it will always only have 5-6 entries max, so i felt 30 second sweeps was okay), and If today is the 1st Sunday of the month, and it is currently 11:00:00 a.m. (could be any day or time, this is just an example) - loop through the dataset to identify if any records match the time field or greater - if they do, fire the report

View 2 Replies

Ascii Code For Termination Character For TCPServer / Client Communications?

Jan 5, 2009

I am working on a client/server based application and I have run into quite a few snags stumbling my way through I have resolved quite a few issues, and need help with something new. I am using a TCPIP client/server and I find that at the end of each loop when I am reading the data from the network stream it appends a character to the end. I have tried removing the last character but I am not sure if it is getting the whole character successfully because I still get lots of different errors both in binary and xml deserialization whcih I think is related to this. Does anyone know the ascii code for the termination character for TCPServer/Client communications?

View 15 Replies

Opening Code Generated Pdf In Browser Without Saving It To Either Webserver/client?

Aug 12, 2010

Is this even possible? tried several ways and i have no idea how to continue. Using vb.net in vs 2008 and itextsharp This is my code for creating the pdf.. also have alot of code to fill it

Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 90, 80, 80, 90) Try

PdfWriter.GetInstance(doc, New FileStream(Server.MapPath("PDF.pdf"),FileMode.Create))

But this saves the pdf.. can i do it any other way?

View 1 Replies

VS 2010 Create An IRC Client?

Aug 10, 2011

I am wondering if anyone has a tutorial or source code to help me get started with creating a IRC Client that will connect to a IRC Server. I just want to make a pretty GUI to modernize it a bit and add some more features etc purely for educational reasons & because I need a new project.

If anyone has a tutorial or source code that would be great. This is a couple of steps up from my last project so I will need a guide to get me started etc. I have been searching on various sites etc but have found nothing so far.

View 4 Replies

VS 2010 Datagrid As RTD Client?

Nov 15, 2011

I'm quite not so familiar with vb.net. so please bare with my query.

does vb.net support RTD function?can the datagrid be used as RTD client?

there is an app with RTD server and I'm presently using excel as RTD client but wish to move out of excel.

View 3 Replies







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