Quote:
can anyone help with the code for buttons in c#
not sure what you need from us here - when you're in forms design mode, if you select a button, look at the properties, select the events (look for the lightning bolt symbol iirc), you can see for example 'click' event. If you click on this, the system will insert a click handler for you - iirc (I dont have VS open) you can change the name of the handler, but if the buttons are properly named I usually dont need to. ... you then fill in the code in the supplied button click event handler to handle reading from txtbox1, translating and setting txtbox2 to the result
you need to find yourself a good tutorial on WinForms to get the hand of this - Im not sure if this
Step 1: Create a Windows Forms Application Project[
^] is good enough .. this one might be better
https://www.dotnetperls.com/button[
^] ..
Is that what you wanted ? or maybe you need this
Google Translate Desktop Application in C#.NET[
^] to help you start on one possible way of doing the translate