Questions tagged as 'c#'

2
answers

Error inserting background image in a form of windows form

I wanted to know why I get this error when trying to put a background image in a form of windows form. I have seen like 3 tutorials where they put the same code and it does not give them error, I would really appreciate if someone could help me....
asked by 07.11.2018 / 15:29
1
answer

How do I autoscaling my application in different screen resolutions?

I made a program with Windows forms in visual studio c # 2017, and I want to be able to add that the forms automatically adjust to the resolution of the screen, but I have not achieved it. In my search I found the following code: void AjustarR...
asked by 03.01.2019 / 03:13
1
answer

Format Textbox in C # for WPF project

I have created a project in WPF in which in some textbox I have to enter hours in the 00:00:00 format, I would like the texbox to have the predefined format.     
asked by 02.01.2019 / 00:58
1
answer

update with double condition in c #

I need to update a field of a record in my sql database using two conditions I'm trying to do it in the following way sql = "UPDATE detalle_pedido SET cant_ingresar = '" + Convert.ToDecimal(TextBoxCantidadCargar.Text.Trim()) + "' where codi...
asked by 30.10.2018 / 19:42
2
answers

SQL Clear table with foreign key

Good day, I'm starting with SQL and during the development of the project my question arose. The issue is that I have a Detail table And a product table The problem arises when I want to delete a product, due to the reference t...
asked by 18.11.2018 / 00:15
1
answer

Using Where in c # asp.net mvc 5

what can I do to save what that where generates every time I enter and then show it in the view, as well as saving the FirstOrDefault that every time I enter it I keep it in that add if (DedudccionesId != null) { IL...
asked by 17.10.2018 / 16:00
1
answer

To work with asynchronous programming, do I need an asynchronous connection?

Good morning friends I am seeing some tutorials on the management of asynchronous programming with .net, in windows form .. many show concepts and basic practices on how to implement it. But my doubts is. when we want to work with persistence...
asked by 17.10.2018 / 15:16
5
answers

Extract part of a text that is in the middle of a string

I need to extract a text that is in the middle of a string using, but I do not know how. The text is as follows: string cadena =jy193UAhUHJsAKHV4rD904PBAWCC0wAA&url=http%3A%2F%2Fwww.icali.es%2FPORTAL_ICALI%2FprintPortal.do%3FurlPagina%3...
asked by 27.06.2017 / 09:40
2
answers

Several database operations that behave as one

I am doing a system in which, on occasion, I must perform 3 or more movements in the database: read a field, insert in another table, and update some tables; the situation here is that, sometimes, the insertion or update is not done due to some...
asked by 03.03.2017 / 19:14
2
answers

How to display a query in a dataGridView?

I have 2 textBox (textBox1 and textBox2), the query I want is this: The production_line would be the textBox2 and the item_number is the textBox1 select * from tbl_volumen2 where production_line ='L1B4' AND item...
asked by 20.04.2017 / 15:43