Questions tagged as 'c#'

1
answer

How to set column width of Grid View?

I would like to know how to set the width of columns of DataGridView manually. My first column must have a fixed value and the other columns must "fill" the grid, so that they are the same size.     
asked by 25.11.2015 / 12:20
2
answers

How to print from a web application to a local printer with C #

I need to schedule some of the local printing features on the web where texts and commands are sent to a specific device without user interaction . For example, labeling Zebra and Argox equipment and printing non-tax coupons on Bematech MP2...
asked by 13.09.2017 / 13:04
1
answer

Query only Date in a DateTime field with LINQ

I'm generating a report in an app I'm developing, but with a little problem. When I send a query in a date range, I can not get anything because it is a DATETIME (I can not change to date only, because I need the time in some moments). So I'm ju...
asked by 09.10.2015 / 17:00
2
answers

How to count columns from a txt file HttpPostedFileBase?

In the code below, it would work perfectly if I had access to the path of the uploaded file on the client side, however, it does not work that way. So I'd like to ask your suggestion for another way to do this. Basically I need a colum...
asked by 27.10.2015 / 15:10
1
answer

How to send variables to another page in Windows Phone 8?

I tried to follow this method , but an error occurs in MainPage, saying NavigationService does not exist in the current context. In BlankPage, the same error occurs in NavigationContext . How can I fix this? Do I need to imp...
asked by 17.08.2015 / 00:25
1
answer

Transform Query into Linq

I need to transform this query into Linq: select B.Nome from Gestor A inner join Entidade B on A.UniaoEntidadeId = b.EntidadeId group by B.Nome HAVING COUNT(A.EscolaId) > 0     
asked by 13.08.2015 / 20:21
2
answers

Get null bank fields with LINQ

I have a Gestor table in the database where I store information for a user with Manager profile. In this table, I have two FK's : uniaoId and schoolId . Well, this manager MUST belong to a union and may or may not belong to a sch...
asked by 14.08.2015 / 14:27
1
answer

Table Relationship - EF

Good afternoon! I have the tables "Order of Service" and "Attachment". In my "Service Order" table, I want to be able to attach the scanned service order and be able to attach photos of the equipment. Order of service [Table("OrdemDeServ...
asked by 31.07.2015 / 20:27
1
answer

Problems to do Multithreading with C #

Well, I'm having a problem with multithreading on a Kinect system I'm developing for my research project. I understand that this happens because I'm trying to access a Thread B resource that is on Thread A, thus launching the System.InvalidO...
asked by 05.08.2015 / 22:47
1
answer

OnSelectionChanged MVC

Late, How can I do to call the OnSelectionChanged event of a DDL using MVC? I have the following DDL: @Html.DropDownListFor(model => model.Type, ViewBag.Type as SelectList, "-- Select --", new { id = "ddlType", onchange = "onchange()"...
asked by 20.05.2015 / 20:34