Questions tagged as 'c#'

1
answer

How to detect if a file is in use? [duplicate]

I want to detect if a file started by something ( javaw ) in a given directory is in use or not.     
asked by 18.09.2015 / 16:51
1
answer

How to import user32.dll and others in C #?

I found several and several results on the internet teaching to import a specific function of user32.dll . But I can not get out of my head if someone has not done a project with all the% done% organized. So this project would matter...
asked by 18.09.2015 / 19:29
1
answer

If it exists, update one table and insert another, if not, insert the two

How to make an expression using EF so that when a certain list of objects is sent and already exists in the database, it is updated and the change is inserted into another history entity, otherwise, it inserts both entities. Example publ...
asked by 23.10.2015 / 22:20
1
answer

Entity Framework Extra column when using ICollection

If I have two tables in the database, for example: tabela1 and tabela2 , and in tabela1 I have ICollection of tabela2 : public class tabela1{ public Guid tabela1Id {get;set;} //campos... public ICollec...
asked by 02.09.2015 / 16:03
1
answer

List all properties of a C # object?

I need to write all the primitive properties of a C # object regardless of how many "levels" I enter into those objects. I have the following object in Javascript: var objeto = { propriedade:{ valor:42 }, atributo:"foo" } The...
asked by 09.09.2015 / 23:02
1
answer

How do I set the size of a button in centimeters?

I need to put a button with height and width in centimeters, where the size is maintained if it is accessed at different screen resolutions. It is possible? If so, how?     
asked by 02.09.2015 / 18:42
1
answer

Mapping of Associative Tables with Entity Framework

I have the following problem: A client has tasks for each day of the week. Example:    Customer A - Saturday - Car Wash, Clean House ... Map as follows: public class Cliente { [Key] public int Id { get; set; } [MaxLeng...
asked by 02.09.2015 / 03:11
2
answers

Get customer information

This may sound like a silly question, but I'm kind of in trouble for a problem here. I need to gather through the browser some information that helps me identify the client that is browsing. I already know the MAC address I will not be able t...
asked by 01.03.2016 / 00:10
2
answers

Install an application

What is the best and simplest way to create a customizable installer in C #? Ex files: \bin32\dedicated.exe \bin32\server.exe \bin32\sdk.exe \etc\lib.def \etc\resume32.def Have the application install, for example, these files to a selec...
asked by 12.07.2015 / 01:53
2
answers

How to create an input grid in ASP.NET C # - MVC5

Basically I have a form and I am opening a window (modal) with a list of employees and by javascript I can add the email of the same in the form that will be saved, in another language in this case I would solve creating the input of emails like...
asked by 10.07.2015 / 21:09