Questions tagged as 'c#'

3
answers

Get a match in a text with regular expressions

I'm doing a practice in c # and I would like to know how I can get a substring of a string that meets some requirements. For example, I would like to take out what corresponds to a IP that would be 192.168.1.1 . I had thought about re...
asked by 28.04.2017 / 17:14
1
answer

Detect changes made in WindowsForms controls, C #

I need to detect the changes that were made to the form, either in TextBox , Datagridview or other controls.    Here is a small example as a test code (GoogleDrive Link ) IdentificarCambios.zip       This works Perfect...
asked by 05.01.2018 / 22:50
4
answers

I can not consume a Web service with jQuery; Answer Requested page not found [404]

This is a fragment of the webservice: [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)], [System.ComponentModel.ToolboxItem(false)], [System.Web.Script.Services.ScriptService]) public class ClientServei : System.Web.Services.We...
asked by 24.12.2015 / 11:40
1
answer

how to traverse attributes of a class in C #?

I have several classes with different attributes, one of them for example is: class MGestion { public int age { get; set; } public String gestion { get; set; } public String inicio { get; set; } public String fin { get; set; }...
asked by 29.03.2018 / 20:19
3
answers

How to put a text and image as a header in Itextsharp PDF document

Hello, I'm all working with Itextsharp and in the pdf document that I already have, I want to add a title as a heading and next to it an image of the company but it does not work out as I want. This is what I did. but it does not work: Parag...
asked by 05.01.2017 / 20:37
4
answers

Initialize variable string

How can I initialize an empty string whose value is "" but in this line of code: Presenter.OnRazonSocialChanged(txtRazonSocial.Text); I had solved it in the Presenter's constructor in the following way: public ProveedorPresenter(Proveedor...
asked by 03.06.2016 / 02:58
1
answer

Pass sentences by voice to text c #

I'm finishing a voice recognition application in c# , but it recognizes only words (not sentences), besides that some of the words that the program recognizes are not the ones I pronounce verbally, I would like them to help me so that the...
asked by 18.07.2017 / 18:27
2
answers

Error updating EF entity

Friends, the scenario is this: when I want to edit a record in my BD, I'm using context.Entry(entidad).State = EntityState.Modified; ; the problem arises that when you get to this line, you throw this exception to me    Attaching an ent...
asked by 03.10.2018 / 18:22
4
answers

How to get part of a url from a string on asp.net c #?

Good I would like you to help me I want to get value of a string .              I always want to get the parameter after &VariableR=              Now I'm doing this code but I only get two digits but I'd like to get everything a...
asked by 20.07.2018 / 17:49
2
answers

Recursive Exercise C #

I'm stuck with a recursive exercise in C #, then I leave the slogan: -Make a tree as detailed below from the entry of a value of a variable. Ex: Entry 5 - - - - 1 - - - 2 2 2 - - 3 3 3 3 3 - 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 (I...
asked by 27.06.2016 / 16:12