Questions tagged as 'c#'

2
answers

Select in windows form c #

Imagining myself, I have 3 checkbox : 2.9.1 2.9.2 2.9.3 I wanted to, that I click on 2.9.3, and select me all that are behind. It's the sort of a select all , but just select me from a given number up that I choose. I'm doing t...
asked by 08.05.2017 / 18:17
1
answer

Shape size other than programmed

I created a form, with size 300; 300, in it a button with the following code: MessageBox.Show(this.Size.ToString()); The forms are getting too large for my screen, so running can be readable. Why is the size of the form changed when...
asked by 24.05.2017 / 20:38
1
answer

Dynamic Attributes of an Entity Model

I have a procedure that returns a number of dynamic columns , because this procedure uses the Pivot , then the question arises: How to create a Entity Model for this procedure? Example: public class SProcedure_EF6Context : DbContext {...
asked by 18.05.2017 / 01:51
1
answer

Class attribute with pre-determined values

I want to create a class attribute for the gender ( M or F ), which by default the person can already select. Is it possible to create an array with these values ( M and F ) already default without typing, or should I do this in the same lay...
asked by 18.01.2017 / 23:23
2
answers

Retrieves data with Request.QueryString

I have a Partial that loads the data: @using (Html.BeginForm("PesquisarEventoPorLocal", "CadastroEvento", FormMethod.Get)) { <div class="row"> <div class="col-sm-12 col-md-12"> <div class="form-group co...
asked by 18.08.2017 / 06:56
1
answer

How to search for tags using Regular Expression?

I would like to create a regular expression that looks for tags: <b>, <p>, <i> How would you do this in regular expression?     
asked by 16.02.2017 / 17:45
1
answer

Error in dynamic mapping: Missing type mapping or unsupported mapping

I have a data dictionary something like this: public class Colunas { public string ColunaOrigem {get; set;} public string ColunaDestino {get; set;} public DbType Tipo {get; set;} } public class Tabela { public string Nome {get; s...
asked by 21.08.2017 / 15:22
1
answer

Grid Fill dynamically with dapper framework return

I have a screen written in VB.NET WinForms, where the goal of it will be to execute SQL commands without the need to open an sql studio. For simpler commands like delete, update, alter table among others, it already works perfectly. Now, the...
asked by 03.02.2017 / 20:37
1
answer

How to make the keydown function work with the program in the background?

Code: if (e.KeyCode == Keys.F7) { A1 = !A1; } How to make this code work without the program being in the foreground?     
asked by 18.02.2017 / 17:15
2
answers

Is there any component that replaces Windows Forms SpinEdit in WPF?

I prefer open source components, or if possible a form of adaptation, since I did not find any SpinEdit or similar in WPF.     
asked by 13.02.2017 / 02:15