Questions tagged as 'c#'

1
answer

How can I show wpf windows in an MDI type menu?

I am developing the interface of an academic system with WPF C # with styles of MAHAPPSMETRO and MATERIAL DESIGN and I need to show the windows of the system in an MDI style menu of windows forms but when I was researching I read t...
asked by 22.09.2017 / 08:43
1
answer

redirect to an error page

I have the following code make the connection and query the bd sql server: public DataTable ejecutarComandoConsultar(SqlCommand varComand) { SqlDataAdapter adapatador = new SqlDataAdapter(); DataTable tabla = new DataTable(...
asked by 13.09.2017 / 23:12
1
answer

Problem of formatting tikets c #

I have a problem printing the tiket on a printer. as you can see the sheet is letter size, so the printer marks me error. What I do not understand is how to adjust the sheet so that it can be printed to fit the printer.    Code...
asked by 14.09.2017 / 10:53
3
answers

Extract data from an xml file in c #

I have an xml file from which I want to extract the concepts of an invoice <cfdi:Conceptos> <cfdi:Concepto importe="13000.00" valorUnitario="13000.00" descripcion="Servicio profesional médico" unidad="No Aplica" cantidad="1" />...
asked by 29.08.2017 / 00:31
1
answer

byte attribute [] entity contains Linq string

Good friends, I am new to Entity and Linq and I have a problem that I can not solve. In a query I have to check if a byte [] attribute contains a string that they pass to me. I have tried a thousand ways and it does not work, and finally u...
asked by 09.11.2017 / 18:47
2
answers

Datagridview shows the length of the name instead of the name

I'm doing a window that shows the list of installed printers. But instead of showing the name of the printer, it shows the length of this. The code is as follows: public partial class frmPrinters : Form { public BindingList<stri...
asked by 14.08.2017 / 21:47
1
answer

Help with class instance that contains array of string

Hi, I have a class with an array as a variable: public string history; public string[] answers; public StoryNode[] nextNode; public bool isFinal = false; I want to create a reference in another class, as I must fill in the a...
asked by 09.10.2017 / 14:27
1
answer

Method Similar to Readline () for Windows Form?

I want to pass a small program that I have created in Console which takes the string that a USB device sends and sends it via TCP to an IP and a specific port. Right now I pass the received chain to a string and treat it a posteriori but...
asked by 11.10.2017 / 12:44
1
answer

Error in Xamarin Forms Timeout exceeded getting exception details

Could you help me with this exception error in xamarin, I can not find the error, I'm doing a MasterDetailPage, the other pages work invividually including the menu This is where the error marks me private void InitializeComponent()...
asked by 10.10.2017 / 19:39
1
answer

Error trying to install a package with Nuget in Visual Studio 2017

I have a project in Xamarin Forms and I want to consume service from an external page. I'm trying to install the package Microsoft.Net.Http to consume these services and I get the following error:    The package 'Microsoft.Bcl.Build 1....
asked by 06.08.2017 / 13:34