Questions tagged as 'c#'

1
answer

Problems Starting IIS Express via C #

I need to start IIS Express via C # with WPF. I can even upload the site and browse, but for only a few seconds. Soon the site stops responding to requests, and only returns to respond when I close the application. private void WinPrincipal_Lo...
asked by 02.09.2016 / 22:20
1
answer

Using ReportView

I would like some help. I am using ReportView to generate a report from the id passed as parameter: public ActionResult Relatorio(Guid id) { LocalReport relatorio = new LocalReport(); //Caminho onde o arquivo do Report Viewer e...
asked by 25.10.2016 / 12:41
1
answer

How to create a PrivateFontCollection

I have some fonts that are not standard Windows, so I'm creating a PrivateFontCollection but I'm having trouble. These sources are used by the whole program, so I thought about creating a Classe Static with a get method,...
asked by 25.10.2016 / 18:42
1
answer

Upload photos with preview Javascript / Ajax

Hello, I'm doing an administrative site, this site will have the option to upload photo, the user could upload up to 3 photos. My idea was to make facebook type, where you click and add the photo of the post, the problem and what I wanted as...
asked by 12.09.2016 / 20:34
1
answer

Format number in reportviewer?

I'm trying to format a number in ReportViewer and I'm not getting it, so I'm trying to use the Format function of TextBox in ReportViewer . The number is a code and I'm trying to fill it with 3 leading zeros. I'm tryin...
asked by 24.09.2016 / 20:48
1
answer

Entity Framework 6: removal method does not work

I'm trying to delete an object using the repository pattern , but the problem is that when calling the method for removal nothing happens, nor throws an exception. FinancialController.cs: [HttpPost] public ActionResult DeleteConfirmed(int...
asked by 24.08.2016 / 21:18
1
answer

Dynamic Linq Sorting using System.Linq.Dynamic

I'm trying to sort a list using the System.Linq.Dynamic library, it follows the snippet of code: list = db.TABELA.Where(consulta.Colum + ".Contains(@0) ", consulta.filtro).OrderBy("@0 ", "codigo").Take(10).ToList(); but the resu...
asked by 09.09.2016 / 22:02
1
answer

How to load ComboBox in C #? [closed]

I have 2 ComboBox: the 1st represents the provinces, the 2nd the municipalities. When the user clicks on ComboBox 1 and select a province I want their counties to appear in ComboBox 2.     
asked by 10.08.2016 / 16:23
1
answer

How to get the "Base Address" of the main module of another process

Hi, I made software that analyzes the dump of a certain Engine process to extract the XOR key from the game automatically because it has a dynamic 16-byte XOR changing from compilation to compilation of the game ... And for translate games from t...
asked by 09.08.2016 / 19:25
1
answer

Best method for finding values in a DataTable

In a unit of measure register, I have to check if the unit the user wants to register, if it already exists, then since I have a DataGrid populated by a DataTable , I thought of going through DataTable and check if it already...
asked by 18.08.2016 / 04:53