Questions tagged as 'c#'

1
answer

I can not insert data in access from C #

I do not know where the problem is, it does not give me any kind of exception, it just runs and goes on, but it does not insert the data in access. static OleDbConnection con = new OleDbConnection(@"Provider = Microsoft.ACE.OLEDB.12.0; Dat...
asked by 15.02.2018 / 16:15
1
answer

Color in Row DataGridView when Check box CheckBoxColumn, C #

I am giving color to the row of DataGridView if the cell box is selected, I have created a function which I invoke in the event CellValueChanged of DataGridView works fine, but only when it is the user that check the box, i...
asked by 28.02.2018 / 19:25
1
answer

SQLite get data from a table

Hello friends I am new working with SQLite and I have a question, I finally managed to make my table and even put data (wow), but what I would like to know is if someone knows how to confirm whether the table is empty or not? and if it is, you k...
asked by 16.02.2018 / 21:03
1
answer

Basic calculator in c # and a label

You will see, as the title says, I am doing a calculator. My concern is how to send a label the values that are being added in a sum of several numbers, example: 4 + 5 + 10 + 8 + 7 and so, that I accumulate the values that go putting in the labe...
asked by 16.02.2018 / 23:38
1
answer

Concurrency violation: the UpdateCommand affected 0 of the expected 1 records. error datagridview?

I was developing an application in windows form but when wanting to update the datagridview and save it in the database this error occurs:    Concurrency violation: the UpdateCommand affected 0 of the expected 1 records. all within the me...
asked by 17.02.2018 / 01:17
3
answers

Fill a datagridview from an array

I have a datagridview that I want to fill with an array, for this I do the following: BindingSource CantonesBindingSource; CantonesBindingSource = new BindingSource(ConfData.TcCnf.TcCnfArray, null); oTcConfig.dataGridViewTcCnf.DataSource = Can...
asked by 13.02.2018 / 06:46
1
answer

combobox autocompleted in C #

I have a combobox that autocompleta with a query and I want to show two fields for example IdProyecto and ProyectoProyecto I want to know the form for when I search in the combo I see both the IdoProject And ProjectName next this is my code that...
asked by 13.02.2018 / 19:58
1
answer

windows calculator in c # that allows entry by keyboard

Alright guys, I'm a senior in high school, and as it says in the title I need to help me in the realization of the basic calculator (which I already have functional with the mouse), but now I need to adapt it for that accept me values by keyboar...
asked by 14.02.2018 / 20:48
1
answer

type data in crystal reports

I want to change the data type in a dataset so that it shows in the report of type number is in crystal reports and c #, this has a dataset in c # but when I click it in the crystal it only gives me the fields in chain format and I need in numbe...
asked by 10.02.2018 / 17:27
2
answers

How do I access my .ascx attributes in my c # class?

I want to access one of my labels that I have in a .ascx file through a method that I have in my c # class. but I do not know how to do it. How to implement .ascx in the aspx <%@ Register Src="UserControls/EvidenceDetailLoad.ascx" TagPre...
asked by 12.05.2018 / 16:03