3
Answers

How to contact a button on my serial port device?

Sascha B

Sascha B

15y
2.4k
1
Hello,

I have to read some data out of my measurement device.
But the problem is that I dunno how to send a request that has the same
function as a button on my device.
So how can I check which button on my device sends which code?
It is a Color Measurement devce from Konica Minolta called CL-200.

Or is there an other way to get the data out of the device up to my pc?
(But it has to be controlled by my PC not by button pressing on the device)
Answers (3)
0
Menardo Espectacion

Menardo Espectacion

NA 16 6.4k 13y
That's a nice alternative... But I don't think I can apply that on our application right now since the requirements didnt allow a lot of development time. I can propose that on our next version maybe... Thanks for your suggestion...
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 13y
Why like this.. First give users a "Search" facility for item. If found ask to update (Change button text to "Update") or else create a new one (Change button text to "Add New"). Something like this :)
0
Menardo Espectacion

Menardo Espectacion

NA 16 6.4k 13y
Hi, 

Thanks for the comments... The requirement was quite a rush so I just did a work around. I used two buttons alternating their visibility on every post back depending on the result of the checking for the records existence... If the record doesn't exist, the Add button is visible. Otherwise, the update button is visible. The update is attached with attribute that calls on a client side script that asks the user for confirmation.
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 13y
query resolved?
0
Mayur  Gujrathi

Mayur Gujrathi

NA 4.3k 725.6k 13y
 if (MessageBox.Show("Do You Wish To continue", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                        MessageBo.Show("yes pressed");
                 }
      
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 13y
Have you looked at the articles in this web site? Especially the ones listed under "Our recommended articles" at the right side of this window?