Questions tagged as 'c#'

1
answer

WPF window does not exceed screen

I have the following code: System.Windows.Point ponto = PointToScreen(Mouse.GetPosition(this)); JanelaAbrir.Left = ponto.X; JanelaAbrir.Top = ponto.Y; JanelaAbrir.ShowDialog(); It opens the window in the mouse position,...
asked by 01.12.2014 / 13:35
1
answer

How do I remove the character limit of a URL by GET or POST

I'm having an error submitting the form, it returns a MaxQueryString error. Is there any way to increase this number / remove this limitation? because \ web.config \ is already set high and is not advancing.     
asked by 09.12.2014 / 14:51
1
answer

Aligning a string in a space of 42 characters

I am generating a text file and have to align the company name to the center, but the company name will vary for each client, the default amount of characters is 42. texto="lb_NomeEmpresa.text"; This way you are aligning the left by simply...
asked by 25.11.2014 / 14:19
1
answer

Inheritance with Repository Pattern

I'm studying and trying to implement the Repository Pattern in C # but I'm having some difficulty solving certain inheritance problems between my Repository classes >, for example the inheritance between Pessoa , PessoaFisica...
asked by 03.12.2014 / 15:30
2
answers

Write input button in ASP.NET C #

I have the following code: r.Write("<th colspan='3' style='text-align:center'><input id='btEmail_" + (n - 1) + "' name='btEmail_" + (n - 1) + "' runat='server' class='btn bg-brownCinc' onclick='btEmail_' type='button' value='Update' /...
asked by 19.06.2015 / 12:39
1
answer

C # - EntityFramework | Database Comparison

I started using EF recently, so I do not have much knowledge about it. I would like to know if I have a comparison of my class with the database, using EF. Comparison example: Employee Class has the following fields:    Code, Name, Z...
asked by 15.06.2015 / 19:13
1
answer

Delegates and methods

When to use delegates . If I have a delegate I point to a correct method? Would not it be the same as creating a normal method? What's the difference and when to use and why to use? Is better? Is it worse?     
asked by 02.03.2016 / 03:32
4
answers

Dealing with collisions in dictionary C #

I need to map an array of strings to a dictionary so that I can later test whether an informed string is valid by checking that it is part of dict , and would like to retrieve some other information stored in dict . For th...
asked by 23.03.2014 / 15:40
1
answer

XML returning incorrect values

I'm trying to make a program on the c # to test the codes you need to be able to run a xml , read your data and enter them in a list. But for this, I preferred to use a MessageBox to debug first. My xml is a RSS Feed that I...
asked by 29.03.2014 / 17:52
1
answer

Map a field of type CHAR in the database to a field of type bool in C #, with FluentNHibernate?

In the database I have a ATIVO field of type CHAR(1) , where 'T' = true and 'F' = false . Now, in my application I'm getting around this problem with a "gambiarra", where I mapped my Ativo attribute to string...
asked by 02.04.2014 / 19:55