Questions tagged as 'c#'

2
answers

You are not changing the page when you change the pagination

When I'm trying to go to page 2, it shows the site loading, but it only brings me the first information on page 1 of my page. My Controller: public ActionResult Index(int? page) { IList<Abastecimento> abastecimento = dao.List...
asked by 18.09.2017 / 22:45
1
answer

Is it possible to edit an http response? [closed]

Is it possible to edit a http response before it is rendered by the browser? Something with this scheme: Receiving the response - > Response editing - > Streaming the response to the browser.     
asked by 24.08.2017 / 19:25
1
answer

Register / Display List C #

The function of this code is to read the information: Name of the course, 4 grades and the average The problem: I can not transport the data in a List on Form Cadastrar and display information on Form Exibir . Forms: For...
asked by 19.09.2017 / 23:28
1
answer

How to change the location of BackgroundImage in windows forms

I have a PictureBox object that has an image defined and by the way I put a background but I can not change the position of the background pb.ImageLocation = Directory.GetCurrentDirectory() + @"\..\..\img\copovazio.png"; I wanted to do so...
asked by 20.09.2017 / 18:15
0
answers

How to create a 'next record' button for a DB in C #

Hello, I'm trying to make a WindowsForm with a ' next' button to show data in some TextBox vide image: Thisbuttonisonlyanalternative,itshouldgothroughalltheBDrecordssincethefirstSEthetextboxisnotfilled;ifitisalreadyfilled,itmustgothroughallre...
asked by 20.09.2017 / 17:15
1
answer

How do I get to timers that were started by a C #

Hello, I'm trying to understand a situation but until then I could not solve it. Imagine that we have a class X that has a timer that is started by the constructor. Now imagine that this same class is instantiated inside a thread. By doing so...
asked by 20.09.2017 / 02:11
0
answers

Unity: distance with addforce

I'm creating a game where you apply a certain force on the block and it walks vertically and has to stop at a certain point and I want to do it for AddForce . However, on paper, I'm using the formula: distancia = velocidade ao quadrad...
asked by 22.09.2017 / 04:18
2
answers

Service to get a change in the bank

I need the following. How do I make a service auto start whenever the bank flag changes from 0 to 1? I have a field in a table in the DB (Sql Server), that every time the seller requests a discount, the flag (FlagLiberacao byte) changes from 0 t...
asked by 28.09.2017 / 13:31
0
answers

The insert is not working / Excel

I created a process to make a Insert in a worksheet in EXCEL but the data is not being inserted. It returns no error. Code: private void AtualizarPerformanceEntrega() { try { DataTable dt = ExportPerformanceEntrega...
asked by 06.10.2017 / 16:46
2
answers

Read and edit a specific word in a string (c #) [duplicate]

I have a text file: link I put this piece of code in a string, and I need to replace the name inside (in the Mateus case) with another name of another string.     
asked by 06.10.2017 / 20:04