Questions tagged as 'c#'

1
answer

White screen in transition between activities

I have a project in which I developed a method to save a reference of the current activity and when I used the HOME of the next screen, it returned to activity using that saved reference. But when I press it back, the scr...
asked by 02.05.2018 / 19:42
1
answer

Error creating a distribution of an executable with sql database using the Entity Framework

I'm developing a desktop winforms application with C # in Visual Studio with Sql database through the Entity Framework. The intention is that it be a local database, the program will be installed on isolated machines, which have no access to any...
asked by 02.05.2018 / 19:48
2
answers

Web system accessed by several companies appsettings

I'm developing an ASP.NET Core application, where each company owns its database. The question is: how can I do for the company to access the site by putting user and password and access information of it, remembering that there are several comp...
asked by 01.05.2017 / 07:56
1
answer

Device keyboard stays on Input

I have an application in Xamarin using HybriWebView (HTML screens). Inside it I have a text input at the bottom of the screen and when I click on the input the cell phone keypad is over my input, so I can not see what I'm typing. I found solutio...
asked by 04.05.2017 / 16:27
1
answer

Doubt with List C #

After querying the data, keeping them in memory and using the "Contains" to find a product, what would be the best way to do this? I thank you I have my DAL: public class BuscaProdutosDermaDAL { private Contexto contexto;...
asked by 26.05.2017 / 15:26
1
answer

Receiving Token via WebRequest?

Personal is there any way I can generate a token through a WebRequest? Because every time I use the Google Drive function, I need to open the authentication page only to generate the access Token, is there any way I can do it through WebRequest?...
asked by 05.04.2017 / 16:34
1
answer

How to generate 5-digit number automatically?

How can I generate a random number with 5 digits that do not repeat in the range of [10000 - 99999]. using System; using System.Threading; namespace ConsoleApp1 { class Program { private static int GetNumeroConta()...
asked by 23.08.2017 / 17:52
1
answer

Mask with Regex and replace to allow only digits and a single hyphen

What I need: A mask that works on the keypress event of a TextBox replacing non-numeric and excessive hyphens with "" . What is my difficulty: Check for the entry of only one hyphen in the same expression. I g...
asked by 25.08.2017 / 13:42
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

Entity Framework - Error?

I'm following a Entity framework tutorial: Simple Code First Example it is quite simple, but for some reason it is not working here and it appears the error message is as follows:    AspNet \ Projects \ ENTITY \ ENTITY \ App_Data \ E...
asked by 09.06.2017 / 23:51