Questions tagged as 'c#'

1
answer

Limit the number of rows in a textbox

Is it possible to limit the amount of rows in a% multiline% by using C # .NET 3.5?     
asked by 07.02.2014 / 18:47
1
answer

Send CR LF through the serial port C #

I'm communicating with Serial ( SerialPort ) with a device that needs me to send the CR LF commands at the end of each statement so the device understands that an instruction has been sent to it. The instructions that I should send ar...
asked by 10.01.2014 / 17:44
1
answer

How can I convert a DataTable to a dynamic object?

How can I convert a DataTable to a IEnumerable<dynamicObject> ? For example, I want to convert any DataTable ID | Name DI | emaN --------- ou --------- 1 | x 2 | x 2 | y 1...
asked by 22.12.2013 / 01:45
2
answers

Transform Rotation with Unity3D

I'm trying to develop a game (starting my studies now), and I'm having a hard time: I have a scenario that is basically a planet and on this planet I can put objects that will "look" at the player ... I've been seeing some shapes and the most...
asked by 07.02.2014 / 00:19
2
answers

Error receiving POST in PagSeguro

I have a platform that makes purchases via PagSeguro form. The problem is that I'm only getting the POST in which the StatusTransacao is as "Awaiting Payment", ie in the case of a ticket generated. If the purchase was approved, I do not r...
asked by 09.01.2015 / 13:00
2
answers

Alternative to new use when implementing methods that return this in daughter classes

Taking the following code as an example: public class Pai { protected string PropriedadeA { get; set; } public Pai Metodo1(int valor) { //Vários procedimentos feitos aqui PropriedadeA = "Resultado do tratamento";...
asked by 22.01.2015 / 22:15
3
answers

How to use GetSetting / SaveSetting in Windows Services

I created a service and configured it as LocalSystem . In the implementation I try to fetch a record saved in REGEDIT by another program. The method GetSetting always returns me empty. Is there any way to recover / save data i...
asked by 17.01.2015 / 13:15
1
answer

Remove part of the time interval Kendo TimePicker

When you use% w / w% of% w / w to set a service time selection, the minimum period (8:00 AM) and maximum (18:00) has been set, however it will be necessary to remove the interval from 12:00 until 1:30 p.m. in this list. How to do this action?...
asked by 14.01.2015 / 12:13
2
answers

Identify pendrive

I need the application to copy a file when a pendrive is connected. Can you identify when the removable disk is connected and the volume name so that the system does not copy to the wrong pendrive?     
asked by 22.01.2015 / 18:43
1
answer

How do I view the version of my site on all pages?

I want to display in the footer of all my pages the version where my site is running. For example: Version 1.0 After I do an update on my site and post it again it would be something like Version 2.0 What is the best, or best, way to do...
asked by 09.01.2015 / 15:18