Questions tagged as 'c#'

1
answer

How can I create a Net Core class library in Visual Studio Code?

My Computer is a little outdated and using Visual Studio Comunity is impossible for me. That's why I want to switch to vs code, much lighter and it consumes less resources. But I have a problem when I create a class library, this one creates...
asked by 01.07.2018 / 23:00
1
answer

ASP NET CORE creation of the solution

My question is to understand the code when an ASP Net Core project is created. There are two classes, Program and Startup (created by default). The main calls the following method: public static IWebHost BuildWebHost(string[] args) =>...
asked by 14.07.2018 / 07:58
1
answer

Error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

I'm doing a project that consists of using a MySQL database with a graphical interface of C #, the point is that there is an item / element that consists of adding 2 dates but when compiling I get an error with the "DateTimePicker" ". My code...
asked by 10.06.2018 / 04:51
1
answer

How can I ask at the script level (C #) in Unity on which platform the game is running?

I would like to develop a multiplatform game in Unity mainly for Windows and Android. The problem is that in Android I would put controls using UI to allow the user to interact with the game in the absence of the default controls that my Windows...
asked by 17.09.2018 / 13:07
1
answer

How can I install donet in elementary os (GNU / Linux)?

How can I install .Net Core in elementary os (GNU / Linux)? I tried the same way as ubuntu 16.04 since it is mounted on this system but when I write in the terminal (after testing the lines of the micrasoft page):    sudo apt install dotnet-s...
asked by 17.09.2018 / 22:23
1
answer

How to store product names in the Database in variables and then display them in a WindowsForms MessageBox?

I have the following code that is executed when you click on a button that has the caption "CLOSE TABLE". What the code does is erase all the info from that table in the database! So far it's fine. What I need now is that before I delete them I...
asked by 25.06.2018 / 23:15
1
answer

Re-activate a disabled button C # Windows Forms

Hello first of all I am a beginner programmer (student) I am doing the game of the hangman, and my question is the following, I made the code with a method and an "if" condition so that when pressing each button this will be deactivated and will...
asked by 25.06.2018 / 08:29
1
answer

How can I redirect to another external page?

I have an Action Filter that validates if something exists and executes a redirect to redirect to a page x. public class CustomFilterAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext f...
asked by 25.06.2018 / 20:42
2
answers

Procedure or function 'InsertaUsuario' expects parameter '@name', which was not supplied

I have an error when calling my procedures on vs, I am trying to insert users. My procedures are the following: Here I have the name, type of users and ID ALTER PROCEDURE [dbo].[InsertaUsuario]( @id int = 0, @nombre nvarchar(50), @memo nvarcha...
asked by 08.06.2018 / 14:17
1
answer

Error trying to make a scaffold using entity framework code first c #

If someone could help me with the mistakes in the photo the classes are these public class RobotDog     {         public int Id {get; set; }         public string Name {get; set; }         public bool Armed {get; set; }         public virt...
asked by 30.05.2018 / 17:50