Questions tagged as 'c#'

2
answers

Select row in datagridwier and write to database

I have a datagridviwer populated by a sql database query, in that datagrid I have a column with a chekbox, now comes my doubt, how do I write to the database when the row has been selected by the user in the chekbox. Follow my datagrid screen...
asked by 26.09.2017 / 15:20
1
answer

Insert date written in the textbox in a certain format for the database

Code: private void button1_Click(object sender, EventArgs e) { conn.Open(); using (SqlCommand cmd = new SqlCommand("INSERT INTO (StartDate) VALUES(@StartDate)", conn)) { cmd.Parameters.AddWithValu...
asked by 26.09.2017 / 17:00
0
answers

Error while compiling project xamarin.forms

I'm having this error:    The "XamlCTask" task was not instantiated from   "C: \ Labs \ FCM-Xamarin-Forms-master \ FCM \ packages \ Xamarin.Forms.2.2.0.45 \ build \ portable-win + net45 + wp80 + win81 + wpa81 + MonoAndroid10 + MonoTouch10 + X...
asked by 26.09.2017 / 12:03
0
answers

Error of: Unauthorized

I downloaded a project to test push notification. I'm trying in many ways and without success. This project is from a guy named HabibAli . When Squeeze gives the error of    Unauthorized This is the program code for sending notifications...
asked by 26.09.2017 / 12:49
0
answers

Set a default value in DropDownListFor

In the form I have one: @f.FormGroup().DropDownListFor(r => r.AtividadeId, Model.AtividadeList).WidthLg(6) Listing all activities to perform an activity filter. I want to put an option: "List All" to list all activities without the...
asked by 20.09.2017 / 21:47
0
answers

How to use ConstraintLayout in Xamarin

Hello, I would like to know how to use ConstraintLayout in Xamarin for Android, I use Visual Studio Community 2017. I have already installed the NuGet packages, I have updated my Android SDK, set the minimum versions of the project to 7.1 (AP...
asked by 20.09.2017 / 23:38
0
answers

Add Font in BundleConfig

I want to put a source that is in a link , tried these two ways and none works, simply my page does not load the source. Here are codes: First form: var linkFont = "http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&s...
asked by 22.09.2017 / 02:48
1
answer

How to create a user access history for a Desktop app

I am creating a desktop application (Commercial System) using C #. I have a User registration table in which all the employees who will log in to the system will be registered. On the registration screen, I would like a HISTORY tab and list all...
asked by 22.09.2017 / 02:05
1
answer

Application xamarin.forms stopped from nowhere

I was making a code to receive notification and suddenly the application does not run anymore. Compiles, Deploys, but it takes time to consume the service and this message appears: Android project stopped continue / ok. My MainActivity: us...
asked by 21.09.2017 / 22:05
1
answer

Virtual method with Generic C #

I am creating a Base Form where I am not using it of type "Generic" because of problem with forms inheritance in C # with it. In this basic form, I had to create a virtual method with "Generic", because it will be overwritten in the child cla...
asked by 22.09.2017 / 01:21