|
Dude,
thank you so much, I was already looking into the attributes, but couldn't find the appropriate (is there a link to a page with the possibilities? I couldn't find one)
thanks
No hurries, no worries.
|
|
|
|
|
Im using serial port communication in my application.
In the firmware side i sent 1000 data/millisec.
the theme of my project is "No lose data in capturing time"
how can i maintain the Buffersize. i cant get all the data
in my application running time.
Send reply
|
|
|
|
|
Explain more fully for a start.
My guess is that the trouble is with the firmware side of things since our company ran some tests of MSComm vs .NET vs other third party controls and found the MS ones behaved the best in all our tests.
When writing RS232 drivers for firmware, don't to any processing in the interrupt handlers, just flag that the data is ready, somewhere else in your program you must retrieve that data ASAP otherwise it'll be overwritten. Buffersize plays a small role in RS232 comms compared to the other problems which can occur.
Ed
|
|
|
|
|
hi Ed.,
Thanks for ur reply. Actually main theme of my application is data capturing. In the firmware side they will send 1000bytes / 3 millisec.
I capture the data and do some process and display in screen with some GUI.
They will put some index for all data. Every time i lost some bulk of data during the integration. how to solve this problem
need reply
|
|
|
|
|
Have you tried buffering the data on the firmware side and sending it to the PC at a lower baud-rate. 333,333 is a very odd and high baud rate for a serial port. If you need such a high speed then you're probably better off with a USB port.
Ed
|
|
|
|
|
hi Ed.,
In firmware side only they sent 1000/3millisec. Im using 115200 baudrate.
And tell me how to read the data from USB port method. Now im using SerialPort method.
Need Reply
|
|
|
|
|
Im using serial port communication in my application.
In the firmware side i sent 1000 data/millisec.
the theme of my project is "No lose data in capturing time"
how can i maintain the Buffersize. i cant get all the data
in my application running time
|
|
|
|
|
Hi there,
I noticed that the "Bytes threshhold" that fires the read bytes event, does not fire as often as you would wish. in order to read the bytes fast enough, rather use a timer to start the readbytes event in a timer loop, instead of waiting for the serial port read event to fire.
|
|
|
|
|
Im creating a drop down toolbar button in internet explorer using C#.
Kindly let me know if any tutorial is available..
Cheers
Annie
|
|
|
|
|
Hi,
I need to create an Access Database file and then create in it tables using C#.
regards,
|
|
|
|
|
Hi, i have to get the bound of a photo.
i have a photo of a rectangle, but not always a regular rectangle
(it can be sometimes jagged), and the background can be every time
different.
How can i have automatically the bound of my jagged rectangle?
Exits any method to do this?
Thanks.
|
|
|
|
|
Wht have u used to display the Photo?
is it a pictureBox?
if it is a pictureBox u can try and get the region
of this pictureBox.
Regards,
Pramod
|
|
|
|
|
yes i use a pictureBox.
how can i use the region for my purpose
I have to recognize the profile of my rect
direct from the photo.
do you think that is possible?
thanks. nik
|
|
|
|
|
If u are using a PictureBox then the picturebox is always in a rectangular
form, u can use the Region property of the picturebox which returns an object
of the System.Drawing.Region, the u can get the bounds of the Region
using the GetBounds method of the region object
Hope that works for u
Regards,
Pramod
|
|
|
|
|
How do make my Search function which built-in in Crystal Report work?? should i write coding for particular function even tat oledi display in my interface??
angela
|
|
|
|
|
lot of samples of crystal reports
Crystal Reports
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
In one of my application i want to check for the internet connection can any one give me the code for it
Mahammadhusen
|
|
|
|
|
Just execute the Ping command of the System and check the
response that is returned after the execution,
e.g. Ping "Yahoo.com"
this can be executed from the commandline
C:\Documents and Settings\Administrator>ping "Yahoo.com"
Pinging Yahoo.com [216.109.112.135] with 32 bytes of data
Reply from 216.109.112.135: bytes=32 time=512ms TTL=250
Reply from 216.109.112.135: bytes=32 time=574ms TTL=250
Reply from 216.109.112.135: bytes=32 time=526ms TTL=250
Reply from 216.109.112.135: bytes=32 time=525ms TTL=250
Ping statistics for 216.109.112.135:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 512ms, Maximum = 574ms, Average = 534ms
The above response means the connection is available
u just need to execute the Ping system command from ur application
Regards,
Pramod
|
|
|
|
|
Your proposal can work but the better way to do it is as follows (from MSDN):
Uri myUri = new Uri("http://www.yahoo.com");<br />
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(myUri); <br />
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse(); <br />
if (myHttpWebResponse.StatusCode == HttpStatusCode.OK)<br />
Console.WriteLine("\nRequest succeeded and the requested information is in the response ,Description : {0}",<br />
myHttpWebResponse.StatusDescription);<br />
if (myUri.Equals(myHttpWebResponse.ResponseUri))<br />
Console.WriteLine("\nThe Request Uri was not redirected by the server");<br />
else<br />
Console.WriteLine("\nThe Request Uri was redirected to :{0}",myHttpWebResponse.ResponseUri);<br />
myHttpWebResponse.Close();
I used to be vain.... BUT now I'm perfect!
|
|
|
|
|
<br />
<br />
[DllImport("wininet.dll")]<br />
private extern static bool InternetGetConnectedState(out int connectionDescription, int reservedValue) ;<br />
<br />
public bool IsConnected()<br />
{<br />
int connectionDescription = 0;<br />
return InternetGetConnectedState(connectionDescription , 0);<br />
}<br />
<br />
|
|
|
|
|
Your reply is still the best way to check if you only want to determine if the computer is connected to the internet. As soon as you want to see if a specific site is available I would use the example I posted.
I used to be vain.... BUT now I'm perfect!
|
|
|
|
|
Howdy,
Hope somebody can help me. I have a C# Windows Application (.Net 2) and on it is a label. I add an event handler for the label_MouseClick event. The event handler is called when I click the label so it all works as advertised. My question is, how on earth do I capture that the left and right buttons were clicked together? I can check the MouseEventArgs object to get the button used, but don't have and option for both buttons. Is there any easy way to capture the two buttons' click or must I write a whole bunch of code to check for both buttons? Any help would be appreciated.
I used to be vain.... BUT now I'm perfect!
|
|
|
|
|
You can get the Mousebuttons in the MouseDown event,
use the MouseEventArgs object and check the button property
e.g.
if(e.Button == System.Windows.Forms.MouseButtons.Left)
{
//Todo
}
else if(e.Button == System.Windows.Forms.MouseButtons.Right)
{
//Todo
}
Hope that works for u fine.
Regards,
Pramod
|
|
|
|
|
That part I do understand and it is rather easy. To quote my original question: "My question is, how on earth do I capture that the left and right buttons were clicked together?"
I used to be vain.... BUT now I'm perfect!
|
|
|
|
|
It can never ever on Earth happen that Left and Right buttons are clicked together, the user clicks it together but only one click is trapped first by the O.S.
The O.S gets the click of either button and then the other so u can
check both of them by writing Two if conditions.
Wht do u want to do by checking both buttons?
Regards,
Pramod
|
|
|
|