Questions tagged as 'winforms'

4
answers

How do I set the data of a DataGrid to a TextBox in C #

I'm trying to set the data in the selected row of the DataGrid, which comes from B.D., to show in each TextBox. The data of each column of the selected row goes to a TextBox. How do I do? Which method to use? namespace EstoquePeca { /// <su...
asked by 31.01.2014 / 21:10
1
answer

JDK 1.8 GeneXus X Ev. 2

I would like to know if GeneXus X Ev.2 or above already allows you to compile the programs generated in Java with JDK 1.8. Do I have to do something different?     
asked by 20.06.2014 / 21:58
1
answer

C # - Instance property name in a DataGridView

I have a Products class with the following attributes: public class Produto { public int cod { get; set; } public string codBarras { get; set; } public string nome { get; set; } public Categoria categoria { get; set; } publ...
asked by 04.06.2018 / 14:33
2
answers

How can I execute a function that is in another form?

I have two forms, one of them I have: namespace J13_Rouparia_CS { public partial class frmMain : Form { public static int LocPesq; public static string peqNume; public static string peqArti; pu...
asked by 12.11.2018 / 23:08
1
answer

How to get all values of 'YamlDotNet' in 'File.yml'?

I'm working on an .yml file and I want to get all the values that contain this file. I am using the YamlDotNet.Serialization reference. What I want to do is take a certain value and display the properties of that particular value. But just...
asked by 04.09.2018 / 13:51
1
answer

Verify if a COM port is connected or not

Is it possible via the line of code to check whether a COM port is connected or not? Analyze: I have a program POS (Point of Sale) where it has the integration with SiTef, through a PinPad (card machine) and for it to work, the PinPad m...
asked by 02.01.2018 / 19:19
1
answer

Play value of a grid that is in form to another grid in another form C # windows form

Hello, I'm here with one more situation requesting help because I have not yet found it in the searches.  I have a form that I put a Gridview in the form has button to open another form of query and when I click on an item from the list it adds...
asked by 02.11.2017 / 01:23
3
answers

How to make a string in AppSettings and use it later

How can I make a string in AppSettings, and then use it, for example, the string in AppSettings is this:    string example="example" And get the value that is in the AppSettings string and put it in a textbox, how can I do this?     
asked by 27.09.2017 / 15:53
1
answer

Error creating a distribution of an executable with sql database using the Entity Framework

I'm developing a desktop winforms application with C # in Visual Studio with Sql database through the Entity Framework. The intention is that it be a local database, the program will be installed on isolated machines, which have no access to any...
asked by 02.05.2018 / 19:48
1
answer

Mask with Regex and replace to allow only digits and a single hyphen

What I need: A mask that works on the keypress event of a TextBox replacing non-numeric and excessive hyphens with "" . What is my difficulty: Check for the entry of only one hyphen in the same expression. I g...
asked by 25.08.2017 / 13:42