Questions tagged as 'c#'

2
answers

How to change the value of the "Title" in WPF

Someone has modified the value of the title in WPF , I want to show a value in this space. Title="text" + key This is the one I currently have, I would like to be able to concatenate them with another variable that I have in a [key] of...
asked by 10.12.2018 / 16:18
0
answers

Error download using pop3 c #: Mediatype must be in the format type \ "/ \" subtype \ r \ parameter name: mediaType

I'm trying to get an email with an attachment from a mail box using pop3, the error occurs when I get the message does anyone know why this happens ?. It only happens with some emails. for (int i = 1; i <= cantidadMesajes; i++) { mensa...
asked by 10.12.2018 / 15:04
1
answer

Queries with entity framework

I need to make a simple query in a login. The query would be to see how many employees are registered, if there are no registered employees show a message and then register it. thanks public partial class WPF1_Login : MetroWindow { S...
asked by 05.12.2018 / 20:10
1
answer

EPPLUS - Adjust Text to Cell

I would like to know if you can fit a long text to the size of the cell in using EPPLUS.dll     
asked by 06.12.2018 / 22:44
1
answer

Send methods within a httpost Instance error

I am doing a payment service and I want that when a card is validated, it calls another service that registers data in a table. This is the controller public class PagoController : ApiController { ValidarPagoNegocios negocios =...
asked by 06.12.2018 / 22:46
2
answers

Validate Deletion of Related Records MVC Entity Framework

I am new to MVC, I want to know how I can validate that at the moment of deleting a parent record I am shown a message that tells the user that it can not be deleted because of the relationship with the child records. I have a validation in t...
asked by 05.12.2018 / 02:52
0
answers

how to create a class in time of execution

I'm a novice with the reflection emitted, I found a code for the creation of a class in time of execution: dynamically-create-a-class-at-runtime I want to make a class from reading a string vector and create a class called (for example Pati...
asked by 03.12.2018 / 22:26
0
answers

The current type, Project.ServiceLayer.Interface.IMenuService, is an interface and can not be constructed. Are you missing a type mapping?

I have the following problem, since I made a branch change in my project, which I run on .net 4.6.1 (I tried already uploading and downloading the version and updating the unity libraries, and even deleting and re-cloning the project), and is th...
asked by 02.01.2019 / 16:03
1
answer

I have a traffic jam in my C # WPF Program

Good day everyone, I became the user because I have a very big question and I can not continue without solving it. I'm trying to do the program in different files ".cs" of classes but this is bringing me complications when it comes to wanting...
asked by 02.01.2019 / 14:38
1
answer

Compare names between a SQL-SERVER field and a windows folder - C # - Windows Forms

I have created an application that allows me to validate the existence of images with any type of extension using the numero_guia(GUIA001__789656.tif) as a pattern. Currently my app works without problems, but I would like to improve...
asked by 03.12.2018 / 16:43