Questions tagged as 'c#'

1
answer

Pass parameter to constructor in UserControl

Very good, I have an application in which I should create as many UserControl objects as a value stored in a ComboBox variable. The objects are created but I would like that each time you create a new one, increase the value of your counter in o...
asked by 24.12.2017 / 11:18
0
answers

Leave Blank DataTable

Good afternoon everyone, I have the following method through which, by means of a Add button , I am adding various items to DataTable , which are visualize in a DataGridView in list form, the detail that I have is this: when I cl...
asked by 06.12.2017 / 18:38
1
answer

Problems when adding a new record

Hello again community, I am learning entity framework and I do an exercise where I keep a file with x documents and that document has x images. When wanting to insert new documents to an existing file, I have the following error:    An...
asked by 07.12.2017 / 17:54
0
answers

Problem when executing service

Good morning, when I run a service I get the following error:    Windows could not start the X service on Local Computer.   Error 1053: The service did not respond to the start or control request in time. I want to know what causes...
asked by 04.12.2017 / 17:54
2
answers

The specified string is not in the required form for an e-mail address

Hello, I am trying to send an email from ASP.NET but something is wrong with me, I found that to use the mailer I should not pass plain text to it than variables , but my valuable is a String , I do not know if I'm passing something else....
asked by 13.12.2017 / 20:00
0
answers

I can not initialize a ReportViewer in VS2017, but in DataTools 2015 it works correctly

I have been having problems with a .rdl report that I made in Data Tools 2015 in a C # Windows Forms project in VS2017. Following this guide I have managed to import my report to the application and associate it with my reportviewer, but when...
asked by 05.12.2017 / 17:46
0
answers

select nested in c # ajax mvc and bootstrap-select

It turns out that I'm loading a select with the data obtained from a database with ajax, this is the code c # for this I use bootstrap-select link vision code <div id="buttonGrp" class="form-group"> <div class=...
asked by 03.12.2017 / 02:53
1
answer

Create a Socket server in C # and connect with Javascript

It turns out that I need to make a server to communicate clients with each other but in C #. This is the code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System....
asked by 03.12.2017 / 16:43
0
answers

File Management

I have a problem. At the time of writing and reading and writing again in a file I do not know how I can do it, I get an error that can not be continued so the file is not being used in another call, so what should I do? I have this code:...
asked by 05.12.2017 / 01:43
0
answers

Record Notes on a date selected by a User

Select a date in a MonthCalendar and record a note in a txt with that date. Initial Screen Note Main Form using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.D...
asked by 04.12.2017 / 15:18