Questions tagged as 'c#'

1
answer

TFS Automatic Merge without Check Conflicts

We have recently installed TFS 2012 to control the versions of some local systems, but we are facing a problem. When you are asked to check in a file that has been changed, it is saved in TFS without verifying the version, ie it does not tell...
asked by 05.04.2017 / 00:54
2
answers

Check Consistency of a SQL Server backup in C #

How can I check the integrity of the backup file of a SQL Server database in C # ?? I used the following namespace and classes to generate the backup: Microsoft.SqlServer.Management.Smo { ServerConnection Server Backup BackupD...
asked by 06.01.2017 / 18:33
1
answer

Items are not shown in the dataGridView

I'm using the following code to include items in a list and show the same in my DataGridView : PedidodetalheOffline item = new PedidodetalheOffline(); //crio um novo item item.IdOffline = id; //seto o id item.PedidoOffline = numero; //se...
asked by 02.01.2017 / 02:22
1
answer

Change color of the Aero application

How do I change the color of the .NET / Forms application in the Windows Aero taskbar?     
asked by 21.03.2017 / 03:56
2
answers

What is the difference between public async System.Threading.Tasks.TaskActionResult Index () and public ActionResult Index ()? [duplicate]

Follow the code: Example 1: public async System.Threading.Tasks.Task<ActionResult> Index() { return View(); } Example 2: public ActionResult Index() { return View(); } Please explain the difference between the 2 in as...
asked by 07.01.2017 / 01:00
1
answer

Insert data with related objects

I'm trying to insert an containing object that has a relationship. User > Company First of all I need to get the UserID data in the% Create % public ActionResult Create() { var usuarioLogado = User.Identity.Name; var usuario...
asked by 10.01.2017 / 22:25
1
answer

PagedList: Data Paging with Ajax

I'm using PagedList with Ajax, but I'm not getting a page change because when I click the button that represents the page, the value that is going to the controller is null. I made the following structure: View: @model PagedList.IPagedList&...
asked by 18.12.2016 / 01:23
1
answer

How to open a local file with Xamarin?

Using Xamarin with Visual Studio and C #, I made an Android application and I'm creating a player using VideoView . I would like to know how to access the mobile folder containing the video. For example: "/storage/pasta/video.mp4...
asked by 16.12.2016 / 20:26
1
answer

Automatic view of a selected row

I have a worksheet where I can load numerous records, and I also have a field to search for any record. When I search for a particular record and the system finds this ROW it is automatically selected! Currently, when I look up the reg...
asked by 15.12.2016 / 21:56
1
answer

How do I validate how many images are inside a TIFF file?

I want to do a validation in C # when converting a TIFF image to JPEG I can see if all the images have been converted, since TIFF is a single file that sometimes brings several images inside it. So sometimes I have 10 TIFF that generates 30 J...
asked by 25.01.2017 / 14:46