Questions tagged as 'c#'

2
answers

Remove element from a vector in C # and not leave the vector with a space?

I need to remove an element from a vector with 5 elements, and can not have empty space in the vector. I need to remove by index.     
asked by 11.03.2016 / 00:00
1
answer

Access modifier property C #

I noticed that it is possible to sign the access mode of a property as private: public string Codigo { get; private set; } Or just ignore it: public string Codigo { get; } Is there a difference or some scenario where one of these signa...
asked by 10.04.2016 / 17:29
1
answer

What are Sockets? And how to develop in C #?

I have to develop a socket, but I do not know what it is or how it works! I want to know what it takes to create a socket in C #, I'm using Visual Studio as IDE.     
asked by 20.04.2016 / 01:08
1
answer

How do I put a Password field in a MessageBox?

How to insert a field so that I can put a password in a MessageBox . I could call a form , but wanted something simpler and faster, I would like that when I clicked on a button it would provide a field to put a password that will be se...
asked by 30.12.2014 / 15:25
2
answers

How to delimit a string fields in C #

I have a string field for example address in code. This address field receives a 60 character die. What I want is to delimit the address size so that it only receives 30 characters and not above that, even if it truncates the information....
asked by 24.02.2016 / 14:23
1
answer

Lock keyboard and mouse or prevent user leaving window in C #

I'm developing a lan-house style locking screen where the user does not leave the screen without the permission of the server, I wonder if it has a way to prevent the user from using the keyboard and > mouse or it leaves the Form open (examp...
asked by 24.02.2015 / 22:51
1
answer

Integration with GIT

I would like to know if Git provides an integration API, such as I am developing a C # application and would like to know if you have any way to get the files from the last Commit . I took a look at the GIT website, but I did not find anything...
asked by 20.08.2014 / 22:52
1
answer

Connection error

I am creating a Windows Forms application using C # and am having a problem with the connection to SQL Server CE 4.0. The application database is in the AppData folder of the logged-in user. To get the path of the AppData folder...
asked by 28.10.2014 / 16:51
1
answer

Why @ Html.CheckBoxFor returns "true, false"

In the construction of my View, I have a field of type: public bool? RegistoGesOleos { get; set; } What I represent using Razor as: @Html.CheckBoxFor(model => model.RegistoGesOleos.Value) Now when I do submit of my Form, and...
asked by 27.10.2014 / 16:09
3
answers

Image to byte []

Hi! I'm using Xamarin.Forms to make an application. So, I need to save images in Parse. To do this, I need to convert the images to byte []. Any idea how I can do this? I already searched the internet but none of the solutions worked for me. In...
asked by 23.10.2015 / 18:46