Questions tagged as 'c#'

2
answers

How to put in the center 02 TextView of VideoView

I have 02 TextView and I want to put them in the center of a VideoView with one text being one on top of the other. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" an...
asked by 29.01.2018 / 02:00
1
answer

Create a reference of a class from a variable

I do not know if I explained correctly in the title and I ask that you correct me. I am doing a simple system of a bank in C # by object orientation following the apostille of caelum (Link of the handout) and also making some changes base...
asked by 22.12.2017 / 18:13
1
answer

as per query by name or half of the name in the management list of c # console application?

So I'm creating a birthday management file, where I can add and consult people, but I'm having trouble making a person-by-name lookup code, however, by having the person appear and choose to view it : public class Metodos { #region //...
asked by 26.12.2017 / 16:36
1
answer

Error using System.Windows.Forms.SendKeys.Send ("% {DOWN}") [closed]

In a windows form application I have a DateTimePicker and I do not want it to display the date so I did the following: public CadNovoPagamento() { InitializeComponent(); dtpEmissao.Value = DateTime.Now; dtpEmissao.Format = DateTi...
asked by 14.12.2017 / 11:58
1
answer

.NET application C # express style NodeJS

But for a few features I'd like my project to respond to some simple HTTP Rest requests. As the project will handle COM + and other things, I will do it in C #. The issue is, I do not want to have to deal with IIS and wanted something simpler...
asked by 12.12.2017 / 20:52
1
answer

Condition in a list

I have a program that inserts information into a CSV file. And I wanted to check if there is data in the variable if it does not show a message that there is no data entered in the file. var csv = listForRegister.Select(l => String.Join(";...
asked by 12.12.2017 / 21:13
1
answer

You are bringing the entire column and not just a specific id

I'm trying to get the last km registered in the bank of a specific vehicle, but it brings me all km and not a specific vehicle. My Controller: var Rota = ckm.ConsultaProduto(viewModel.NumCarroId); var maiorRota = Rota.OrderByDesce...
asked by 13.12.2017 / 17:48
1
answer

How to format a field with ASP.NET WebForms C #

I need to format TextBox <asp:TextBox runat="server" id="txtValor" MaxLength="20"></asp:TextBox and I am very difficult, first this grid is opened in a modal, that is, when I create the main page I can not get control by javascri...
asked by 11.01.2018 / 21:37
1
answer

How to organize data

Good. I have a question, not so much about code with data organization. I have a small automatic backup application and the idea was to have a "task scheduler", where I indicated the hours, the type of database (MySQL, SQL Server) and the...
asked by 18.01.2018 / 14:02
1
answer

Ado.Net and Entity in the same project

I took a test to do and it is mandatory to use Ado.Net, but it would be a differential use of Entity. I'm kind of confused about that. Ado.Net and Entity give dancing?     
asked by 06.12.2017 / 18:51