Questions tagged as 'c#'

3
answers

Transform query result to an entity in an array

In my program I have an ADO.NET Entity Data Model with a couple of tables linked to my database. What I want is to make a query to bring me the data of a table and be able to access them as if it were an array. If for example in the entity ther...
asked by 18.08.2017 / 11:59
1
answer

Several threads in c #

Hi, I'm making an application where I need to run a call to an Api in the background: Main{ Metodo(); } Metodo(){ for(i=0,i<100,i++){Metodo2(i) } Método2(int i){ apiThread2 = new Thread(() => LlamadaAUnaApi); apiThrea...
asked by 16.05.2017 / 14:40
3
answers

Close Form Open a new Form c #

Good evening, I would like you to help me. I am new to c # and I would like you to help me. I am making a login but when I enter I want to enter another form and close the form that I logged in. This is the current code: private void btn...
asked by 17.03.2017 / 04:35
1
answer

Search data in sql and display it on grid

I am trying to search for products from the database and display them in grid . The code executes the search but does not throw any value. In the database I have the following: create proc [dbo].[spbuscararticulo_venta_codigo] @textob...
asked by 07.11.2016 / 05:03
2
answers

The object is already in use, when saving image in C #

I have a button that saves the image of my camera, in the following way: MemoryStream photo = new MemoryStream(); pictureBox1.Image.Save(photo , ImageFormat.Jpeg); byte[] byte_photo = photo.GetBuffer(); After I save my byte array in the...
asked by 02.03.2017 / 03:44
2
answers

Remove Words from a Text

I have a string with data and what I want to do is take out desired words that have specific characters and then add each word to an array [] with data taken from the text string datos = "Hay datos <Etiqueta>que [re]quiero <Etiqueta&g...
asked by 28.04.2017 / 21:36
1
answer

How do you remove elements from a winforms in C #, dynamically?

I would like to know how to remove elements from my windows forms using C #, I am currently doing an application with C # and winforms and in one of the parts of my application there is a window that has two winforms embedded inside a main winfo...
asked by 07.04.2017 / 21:34
2
answers

Users with MasterPage

I am trying the following: I have a Sitie1.Master with 3 related pages, and a page Default.aspx (That is not related to the MasterPage), the user puts his email in a TextBox (Login in Default.aspx ) I want that value...
asked by 07.04.2017 / 17:54
2
answers

Text of a specific Column of a GridView

How can I get the text of a cell of a column concrete in a GridView ? I need the text of a celda in particular, modify it, and put it back in the same cell, but I do not know how to access the Text of each of...
asked by 19.04.2017 / 10:35
2
answers

create an executable for window 10

I have finished one of my several projects in c# the question is that when I created the executable to install it on my final client I never thought that it had windows 10 of 64bits ... I did it in the simplest way intuitive...
asked by 27.11.2016 / 02:48