Questions tagged as 'c#'

1
answer

Is there a difference between bool and Boolean? [duplicate]

Is there any difference compared to the types bool and Boolean ? It seems to me that both have the same characteristics. I would like to know if there are any differences between these types. Example of implementing both types:...
asked by 26.03.2016 / 15:31
1
answer

Give preference to the results that have the parameter passed in the Entity Framework [duplicate]

I'm trying to implement a data solution that first displays the values that have the passed parameter and then pass the other parameters. Example: In a product table you have the following data: Coca-Cola -> Coca Cola Company Pepsi...
asked by 28.03.2016 / 15:04
1
answer

How do I limit the movement (Touch) of a character to 3 specific points? Unity C #

I would like to know how to limit the position of a character on the Y axis in the Up, Mid, Down positions. In the game the character runs while obstacles appear and dragging the finger up, if it is in the "down" position, it moves to the "Mid"...
asked by 30.03.2016 / 22:39
1
answer

Data Annotation - error ratio 1: 1

I'm trying to make a 1 to 1 ratio. Apparently it would be something simple but my system is getting lost in this relationship; It does not make a mistake, but the relationship is wrong: Model: public class CieloRecorrencia { [Key...
asked by 04.04.2016 / 21:27
1
answer

include decimal places 1500 and leave it as 1500.00 without comma!

I have an integer value of 1500 in the variable valuemonetary and I want to send it to another valuevalue variable like 1500.00. How to do in C #. I've tried conversions and nothing happens ... In the end, the variable ValueDecimal should be fil...
asked by 21.09.2016 / 20:31
3
answers

Bringing winform window to front

There are some parts of my application that need the user's feedback, such as asking about whether to update, or the system activation screen, but sometimes these screens, or messagebox, are left unselected, and are behind the window chain. I ne...
asked by 19.05.2016 / 14:52
2
answers

How to Popular a TreeView with Directories and System Files in C #

In my application (Windows Forms) I have to make a directory tree for the user to search for one (or more) file (s) within his system. I saw on the Web how to make this tree in a Microsoft tutorial, but in their example the TreeView only disp...
asked by 18.03.2016 / 15:27
1
answer

Store vector in SQLite

I'm creating an application in C# that must have a database. At first I'm thinking of using SQlite for simplicity. But for each data inserted in my bank must have: Identifier ( int , char , bool ) ... Vector (which...
asked by 17.03.2016 / 21:02
1
answer

Problem saving information from DropDownList to the database

I'm having trouble saving information in the dropdown by btn-save I have a form of registration of real estate being that the information inserted in the dropdown occurs only when I save in another page (that would be) I can not save in the data...
asked by 28.09.2016 / 03:41
1
answer

Send e-mail without appearing in the sent box

I do not want these sent items to appear in the real estate email. string emailOrigem = imobiliaria.Email; string password = imobiliaria.Senha; string html = getBody(dados); //aqui serve pra formata o html...
asked by 27.09.2016 / 03:19