Barcode readers usually act like keyboards. Once you press the button while pointing to a barcode, the value of the barcode will be written in the active control, wether it's the notepad, textbox, combobox, etc...
So, you won't need any special programming for barcoding, unless you want to print barcode, not read it. For only reading barcode, just make a textbox to receive the value as it would be written by a keyboard.
This sounds much like Client/Server application. At the connecting machine there is a client app to connect to the server app in the "connected to" machine. Now the client app makes requests, and the server app fetches the data from the database -on the same machine-, and send it as a response to the client. It's possible using sockets.
I have created a custom datagridviewColumn control containig a TextBox+Button. I want to access the events of these controls directly, for example TextBox_textChanged, Button_MouseHover. following code has been written for this, but it is not working
DXDataGridViewTextBoxButtonColumn btn = new DXDataGridViewTextBoxButtonColumn();<br />
((DXTextBoxButtonCell)btn.CellTemplate).SSTextBoxButton.Button.Click += new EventHandler(SSTextBoxButton_Enter);<br />
((DXTextBoxButtonCell)btn.CellTemplate).SSTextBoxButton.Enter += new EventHandler(SSTextBoxButton_Enter);<br />
I have simply shown a messagebox in its event handler.
Infact i want to display it in all cells. I have been succeded in doing that, Now i want to handle the event of that control. I have writeen the code in my first post. I dont know that y these events do not get triggered.
Let me make it simple, forget about custom control.
say i want to handle the events of button in DataGridViewButtonColumn, tell me how i will do that?
Now I got your problem... Actually custom DatagridView columns are inherited -after some fathers- from DataGridViewElemnt. In that class you will find protected methods called RaiseCellClick(), RaiseCellContentClick(), among other methods to raise the events DatagridView.CellClick event, and DataGridView.CellContentClick. So the control that will handle the events is the DataGridView actually by the above events. If your custom control doesn't fire these events automatically -I don't know how you implemented them!-, so when you see suitable fire them yourself using the Raise methods.
I'm sorry my reply came very late, but your email notification arrived to my just now!!
You can't acess ctl this way because you've declared it as a local variable in a method. Declare it as a public member in your class, and access it like MyCustomColumn.ctl.Click for the click event as an example.
I don't know if my reply would help you or it came too late, but forgive me.
i have one combobox that sometimes i want show a item and sometimes not. this combox is binded to a dataset. is there on elegant way to do it without inserting and deleting a element is the dataset all the time depending the context? if don`t, how can i do that in a better way?