Questions tagged as 'c#'

1
answer

How to read only a record of a DataGridView that has information from the BD? C #

My problem is that I would like to read the complete record of a table in my database, well, so far, it brings me the information and shows it in the form that I should, because what I want to do is an update, only that I read all the records an...
asked by 19.01.2017 / 23:31
1
answer

Difference DataTable and Grid of jQuery

I am a beginner in this of Web programming and I am doing a project. My goal is to collect data from a table in a very extensive database and to show it on a Web page. I use c # and I have been told that it would be nice to use a grid with...
asked by 19.01.2017 / 21:45
2
answers

How to pass selected items from a checkedlistbox to a listbox with C #?

Hello everyone, first of all thank you for taking the time to read me. I am doing program using visual studio 15 community programming from C #. In the program I connect to a database made in SQL Server 2008 from which I obtain keys for some pro...
asked by 19.01.2017 / 19:35
2
answers

Problem with list within Dictionary in C #

I have the following: dic = new Dictionary<string, List<int>>; But when I do dic.Add the values per parameter that I expect are a string and a List<int> , but for the same key ( string ) I...
asked by 27.01.2017 / 04:18
2
answers

Methods to call Store Procedure from C #

I have this method to execute stored procedures public void EjecutarSP(string sp) { try { SqlCommand cmd = new SqlCommand(sp, ConexionBD.con); cmd.CommandType = CommandType.StoredProcedure;...
asked by 03.02.2017 / 13:33
1
answer

asp.net how to change the SVG image in html page from the codebehind

I need to change the image (SVG) that is on the page in a object container by selecting another item within dropdownlist. It has to be in the CodeBehind, using the OnSelectedIndexChanged event. By default it loads the image.svg, but when selec...
asked by 12.02.2017 / 18:54
1
answer

how to perform a search in dgview by date range

As I can perform a mediating search a date range with two datetimepicker and a button it is worth noting that I filled my datagridview in this way: adapter = new MySqlDataAdapter("Mostrar_ClientesExamen", C.conect); adapter.SelectComma...
asked by 12.02.2017 / 05:26
1
answer

Form integrated in groupBox

I have a main form divided into two groupboxes, the first groupbox is where the tabs are and on each tab a different keypad the second groupbox (gbContainer) is empty, and what I want to do is that when one of the buttons is clicked, a form (frm...
asked by 17.01.2017 / 11:12
2
answers

How to delete files in memory left by the MemoryStream, with C #?

It turns out that I use MemoryStream to read a file with ReadToEnd in the following way: IEnumerable<uint> uids = Client.Search(SearchCondition.Unseen()); IEnumerable<MailMessage> messages = Client.GetMessages(uids, F...
asked by 29.12.2016 / 13:41
1
answer

Create Buttons in dynamic form (C #) [closed]

I am working in a sales application with c # and I want to make it possible to filter by category in the window where the products are chosen to be sold, but that each category is a button and that the user can select the category he wants there...
asked by 10.01.2017 / 23:39