So I retired as of last July, but had all this stuff about PC-Dmis Automation which I've finally got around to uploading. Don't know it it is of any interest, but here it is.
The zip file has to Visual Studio project folders, both written in C#. One folder is a Class Library which has all the code for connecting with and dynamically interacting with PC-Dmis. The second folder is a C# application with uses the Class Library to connect and interact with PC-Dmis.
I also included two documents one explains how to setup the two Projects the other is about the application program.
Rather than trying to anticipate every possible question, the provided documents should be sufficient for someone familiar with visual studio and C#. Otherwise, I'll watch for questions to show up here. I can't promise to answer every question, given the complexity of what the answer might require. But I have taken phone calls and zoom opens up the possibility to demo live.
Now we add some components to the application interface or form that will be used with our PC-DMIS code. Currently, the application user form is empty. To this form we add two buttons and a text box from the 'Toolbox' tab on the right edge of the VS window. Place one button over the other and add the textbox to the right of the top button. Should look like the next image (I've reduced the size of the Form so it may look smaller than yours).
Now I'm going to change the name of each component and the text on each button.
Left-click on the top button, this is the button we will use to connect to PC-Dmis. On the right side of the VS window, below the 'Solution Explorer' is the 'Properties' panel. Scroll the properties list to the top and change the '(name)' property from 'button1' to 'btnConnect'. Now scroll down to the bottom and change the 'Text' property from 'button' to 'Connect PC-Dmis'.
Left-click on the bottom button and change it's name to 'btnViewPcdmis' and the 'Text' property to 'View PC-Dmis Window'
Left-click on the Textbox and change it's name to 'txbStatus'.
Note that I added btn or txb to the name of each component, this is just a nomenclature I use to help me remember that the newly named component is either a button (btn) or TextBox (txb).
The purpose of each of these components are: Top button is used to connect to PC-Dmis. The Textbox is colored Red if PC-Dmis is not connected, green if it is. The bottom button will be used as a simple test to prove that PC-Dmis is actually connected. By clicking on this button we can view the PC-Dmis window or hide it in the background.
With the changes made above the user form looks like the following image. I've stretched out the width of the buttons so that the full labels could be seen.
Now we add some components to the application interface or form that will be used with our PC-DMIS code. Currently, the application user form is empty. To this form we add two buttons and a text box from the 'Toolbox' tab on the right edge of the VS window. Place one button over the other and add the textbox to the right of the top button. Should look like the next image (I've reduced the size of the Form so it may look smaller than yours).
Now I'm going to change the name of each component and the text on each button.
Left-click on the top button, this is the button we will use to connect to PC-Dmis. On the right side of the VS window, below the 'Solution Explorer' is the 'Properties' panel. Scroll the properties list to the top and change the '(name)' property from 'button1' to 'btnConnect'. Now scroll down to the bottom and change the 'Text' property from 'button' to 'Connect PC-Dmis'.
Left-click on the bottom button and change it's name to 'btnViewPcdmis' and the 'Text' property to 'View PC-Dmis Window'
Left-click on the Textbox and change it's name to 'txbStatus'.
Note that I added btn or txb to the name of each component, this is just a nomenclature I use to help me remember that the newly named component is either a button (btn) or TextBox (txb).
The purpose of each of these components are: Top button is used to connect to PC-Dmis. The Textbox is colored Red if PC-Dmis is not connected, green if it is. The bottom button will be used as a simple test to prove that PC-Dmis is actually connected. By clicking on this button we can view the PC-Dmis window or hide it in the background.
With the changes made above the user form looks like the following image. I've stretched out the width of the buttons so that the full labels could be seen.