|
I am a little confused as to what your are trying to do. If I read your replies right then you want a PC, with two serial ports, each connected to a modem. The two modems are connected together (presumably via two telephone lines, or else you will need a null phone connection with a battery.
You then want to transfer files from the PC to the PC via the modems? If so, then odd, but do-able.
I would just eliminate the modems and use a null-modem cable if there was a good reason for this.
Talking to the modems: http://www.atarimagazines.com/compute/issue131/33_talktoyourmodem.php[^]
Try it using two Hyperterminals on separate com ports and you should see what is happening (and if all the H/W is working).
Then in C#, you will need two instances of the SerialPort class to replace the hyperterminals.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
|
Take a look at the documentation for the ToolTip control. You don't even need to look at the individual methods/properties, the summaries give enough information.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
I haven't had that problem.
You did a release build?
You made an installer that:
Includes the "primary output" of the application project?
Creates the file association?
Then installed on the target system (which has .net) and it doesn't work?
|
|
|
|
|
|
I left my computer unatended and my little cousin decided he wanted to delete my message and make a bad vote. I sincerely apologise to everyone. My bad.
|
|
|
|
|
|
|
No. You delete your cousin.
|
|
|
|
|
|
Halapinos on his toothbrush.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
mmmm... halapinos... yummmyyyyyyyyy
foreach( inch on Jason )
{
Girlfriend.IsHappier();
}
|
|
|
|
|
Hi,
How to get all the selected values from a listbox in windows application?
Thankyou
YPKI
|
|
|
|
|
Hi,
set ListBox.SelectionMode to one of the Multi modes, then use either ListBox.SelectedIndices or ListBox.SelectedItems
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi
i have a dataGridView and bindingSource in my form and i fill my gridView with this two lines of code :
DataManager dm = new DataManager();
this.frmDataSet.Ground.Merge(dm.GetGrount(Guid.Empty.ToString()));
it display data in dataGridView correctly. now i want to load data with backgroundWorker. for this i modify above code as follow :
this._frmLoading = new FrmWait("Please wait", "Loading data ...");
this.backgroundWorker1.RunWorkerAsync();
here is my backgroundWorker event handlers :
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
DataManager dm = new DataManager();
this.frmDataSet.Ground.Merge(dm.GetGrount(Guid.Empty.ToString()));
}
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (this._frmLoading.IsShowing)
this._frmLoading.Close();
}
at runTime, all code works correctly but data does not display in dataGridView, when i trace my app my dataSet has rows but i don't know why dataGridview could not display this data with BackgroundWorker.
can anybody help me ?
thanks
|
|
|
|
|
Is the DataView bound to the dataset? In that case, updates on the data set will cause the dataview to update as well, and those updates will occur on the background worker thread, instead of the UI thread.
Did you try unbinding the dataview, merging it in the background, and then binding it again?
|
|
|
|
|
Hi Senthil
my dataGridvIew bound to bindingSource in designer code, however i set dataGridView.DataSource property to bindingSource but it still did not display data.
|
|
|
|
|
Hi, I developed an Client / Server application, the problem is the following:
- when a wrong IP address is inserted in the Textbox, Client application freeze.
TcpClient socketForServer;
try
{
socketForServer = new TcpClient(Ip, Port);
}
catch (Exception e1) {
info._error = e1.ToString();
return info;
}
What I can do?
|
|
|
|
|
You will want to start running your TCPClient on a different Thread so it doesn't lock up the GUI thread while waiting for a timeout or connection refused.
So do the following
ThreadPool.QueueUserWorkItem(new WaitCallback(<function that="" starts="" the="" tcpclient="" connection="">));
Keep in mind that the Drawing of items can only be done on the thread they were created on (usually the main thread) so setting text and that sort of thing should be done by invoking the functions using the Invoke function
|
|
|
|
|
Alternatively you can also use the asynchronous methods of TCP client to make your connection, BeginConnect and EndConnect
|
|
|
|
|
|
there are couple of things that you may do
1. Application.DoEvents()
2. You need to set socketForServer to null in case an error occurs, it will be creating a new object every time and will become a source of memory leak.
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
I have loaded 6 columns to a DataSet using a DataAdapter. Now I want to change the first column's items to a frequent series of numbers.I have tried the code below ,but it didn't affect the data:
for(int i=0 ; i
|
|
|
|
|
saeidfarahi wrote: myDataSet.Tables[0].Rows[i].itemArray[0] = i + 1;
DataSet.Table is read-only, therefore cannot be edited.
Have you thought about putting the DataAdapter into a DataTable instead, then edit the DataTable, then adding it to a DataSet if necessary.
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|