Questions tagged as 'c#'

1
answer

Process.Start does not load executable dependencies

I created a code that opens a program, but the program needs the DLLS / Folders - in the folder it is located, so when I run it from the error, it seems that it is not picking up the DLLS / Folders (if I perform normal, usually the program)....
asked by 23.09.2017 / 14:48
1
answer

Checkbox Check C #

I have the following code: private void lsvRecebeGrupoLayout_ItemChecked(object sender, ItemCheckedEventArgs e) { Layout lay = new Layout(); GrupoLayout grupo = new GrupoLayout(); RepositorioLayout repolay = new RepositorioLayout()...
asked by 06.10.2017 / 21:04
1
answer

C Sharp: error object reference not set to an instance of an object

I'm a beginner in C Sharp, and I'm using the VS community, so I found a web cam program and adapted the code where I want to use it here, but when I click on save image, it appears this error:    error object reference not set to an instance...
asked by 18.09.2017 / 19:12
1
answer

Modal passing data nullo

When writing in my modal the Controller receives Null. 1 - Modal Model @model WebAutenticado.Models.CAD_DEVP @{ Layout = "~/Views/Shared/_LayoutModal.cshtml"; } @using (Html.BeginForm()) { @Html.AntiForgeryToken()...
asked by 14.08.2017 / 01:16
1
answer

How to integrate a Web application to Call up a desktop application C # biometrics

Good afternoon, I need to make the request through the browser (chrome) calling a windows form c # on the same computer, which is a biometrics application, both use C #. I have both codes, I made through websocket where the desktop applica...
asked by 24.08.2017 / 21:09
1
answer

Error: System.NullReferenceException: 'Object reference not set to an instance of an object.'

I have the Agenda object class, according to the information below: namespace Teach.Negocio.Models { [Table(name: "Agendas")] public class Agenda { public long Id { get; set; } public virtual Aluno Aluno { get; set;...
asked by 24.06.2018 / 03:06
1
answer

How to get only part of a directory name?

Hello, I'm making an application to locate a file in a directory and save it to the database, as well as save tbm to the PATH. But I need to save only the name of the directories it finds, without being the complete directory. For example:...
asked by 16.01.2018 / 19:01
1
answer

How to do this in LINQ?

I spent the day looking for how LINQ works and I tried to use it in a project I'm using to study, after a long time trying the code using LINQ it looks like this: for (var dia = comeco.Date; dia.Date <= fim.Date; dia = dia.AddDays(1))...
asked by 24.01.2018 / 21:45
1
answer

Change color of expressions that begin with '@'

I need to create a winform to change the color of expressions that start with '@'. For example: nothing @examples nadamais The @expressao must be of another color. The text will come from the input of a textbox that the user type...
asked by 26.01.2018 / 13:18
1
answer

Progressive Web Apps switching pages within the application without opening browser

I have a mobile page ( link ) based on Progressive Web Apps and made using Asp.Net Core. But I have the supposed problem: When adding to the home screen of the mobile device by clicking on the sharing option and adding to the Home Screen a...
asked by 04.08.2017 / 07:20