Questions tagged as 'c#'

2
answers

How forms are opened - Visual Studio

Good morning, My problem is that when I start the program it looks like this: That is, the child form nor the scroll bar has there cut the other options Tosolve,Imaximizetheparentform,butitlooksvisuallystrange,see: HowcouldImakethechildfo...
asked by 21.09.2017 / 16:29
1
answer

Call variable object from a string

I'm trying to call an object from a string, which contains its namespace, class and object name, however, all of these are variables and I do not have a fixed object type I found a similar question , but she does not answer me. In the ab...
asked by 06.10.2017 / 22:05
1
answer

How to run programs without a specific path

Example: I want to automatically do a search of the program I write, and if you find an ".exe" application it will run it, if it does not find it, send a message saying that the program is not installed on your computer. Process.Start(Progra...
asked by 04.09.2017 / 04:30
1
answer

ToTable method is not recognized

Contextualization I'm starting in ASP.Net CORE and, to consolidate knowledge, I'm trying to make a small project already using this framework. However, I'm having trouble mapping my domain classes. Problem I added a Class Library (.NET...
asked by 04.09.2017 / 03:06
1
answer

How to pass more than one Controller option on routes.MapRoute ()

I have the following route: routes.MapRoute( "Contracts", "Home/Contract/{contract}", new { controller = "Home", action = "Contract", contract = UrlParam...
asked by 24.08.2017 / 20:37
2
answers

Return an object coming from two or more tables the fields

I have done some posts about rest and lambda, and to give an end to this subject (hopefully), I have a question. A colleague here on the site recommended that I create a DTO and bring the database data based on this DTO class and not directly fr...
asked by 27.08.2017 / 23:27
2
answers

Error in IEnumerable [closed]

using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; namespace Rotas.Models { public class Noticia { public class Noticia { public...
asked by 28.08.2017 / 14:43
1
answer

Error calling service "auto-complete" [closed]

I'm finalizing a system and now the need to present a user field with autocomplete to the user. Then I had the idea of using autocomplete of the dictionary michaelis . If you access the SITE will see what you have in the f...
asked by 28.08.2017 / 18:13
1
answer

Send To Menu from Windows, sending File Path [closed]

I'm developing an application and my idea is to put this application from the send to windows menu. I have already put the start of the Application la, but I can not get the file path. Example: I have a pdf file on the Desktop the user will r...
asked by 29.08.2017 / 15:02
1
answer

Error saving to bank

I would like some help. When I try to save the registry, the following message appears:    23502: null value in column "id" violates not-null constraint The primary keys are not autoincrement, I'm using a function that generate the pri...
asked by 30.08.2017 / 16:27