Questions tagged as 'c#'

2
answers

How can I open the same reports on the same form? [duplicate]

I have my next form: that is called frmNot After clicking on the magnifying glass button, it sends me to another form that is a data catalog (frmCat) which, when clicking on any of them, generates the report. The question is that I open...
asked by 29.12.2017 / 20:10
1
answer

how to minimize and maximize?

What kind of event do I need to be able to minimize and maximize, but by clicking in the icon of my application from the taskbar? The only thing I have is the following code: WindowState = FormWindowState.Minimized; I hope you can help m...
asked by 11.01.2018 / 00:38
2
answers

Create an update from an if or a case in sql or postgresql

I'm doing an inventory program for a project with RFID. The problem is having the inputs and outputs controlled. When something comes out of the store, it does not necessarily come out permanently so it can re-enter, the problem is that the o...
asked by 10.01.2018 / 17:53
1
answer

Event problem double click on datagrid

Hi, I have a problem that if I double-click on a datagrid header it returns an error in the CellDoubleClick event, I am interested in the event being valid for all the cells except the headers, I tried with e.RowIndex> 0 or e.RowIndex < >...
asked by 31.12.2017 / 06:12
1
answer

Help with a code in ASP.NET [duplicated]

I hope you can help me with the following code that I have in visual studio, I am programming a user login, in asp.net with c # and it turns out that in my aspx form called PortalAlumons.aspx.cs I wrote the following code: protected void P...
asked by 03.01.2018 / 05:27
1
answer

Problem with Youtube Extractor with C #

Good morning I'm trying to make an application with WindowsForm in C # to download YouTube audios . I use a Nuget package called YoutubeExtractor . The code is as follows: private bool DescargarAudio() { bool...
asked by 23.12.2017 / 15:05
1
answer

Generate Report in PDF Using C # and Javascript [closed]

I need to generate a report in PDF. I currently use reportviewer as a tool but it is slow so I need to use another complement that I recommend?     
asked by 27.12.2017 / 17:34
1
answer

Disabled does not work in the driver

I'm doing a web application in c # asp.net mvc5, I have a dependent dropdown that is loaded through a javascript function and the data is from the database To this dropdown I want to put a text - Select - , and in turn this text leav...
asked by 18.12.2017 / 21:42
2
answers

Error deleting a record from the SQL server database asp.net

I have tried these two ways. 1 [HttpPost, ActionName("Delete")] public ActionResult DeleteConfirmed(int id)// el id llega con toda normalidad { db.Entry(db.Detalle.Find(id)).State = EntityState.Deleted; db.SaveChanges();...
asked by 21.12.2017 / 14:36
1
answer

Doubt: Column DataGridView that only accepts hour format (12h / 24h) in C #?

I have a DataGridView that contains several columns and there are two Columns which should only allow the user to type the time , I have made it from the following way: Event EditingControlShowing to invoke the KeyPress method:...
asked by 21.12.2017 / 14:23