Questions tagged as 'visual-studio'

1
answer

an object reference is required to access non-static field method or property c #

I have a private method that returns me as a result of the execution of a data set. What I want to do is reference in this method a textBox that I have in the main button of my Windows Form application. For the user to manually enter the 'Cap...
asked by 07.04.2016 / 23:05
1
answer

How to increase the value of a cell in a DataGridView when a code matches? C #

I'm doing a kind of verifier, I need to press a button to check if the code of my TextBox matches in some data of the column "Code" and if so, increase by 1 the value of "Captured", this is what I'm trying now: foreach (DataGridViewRow fila i...
asked by 19.12.2018 / 01:53
1
answer

C # Events (difference with respect to a Delegate)

I am studying C # but I got to the subject of Delegates and Events, I know it is a delegate and how it works: The delegate is like an "encapsulator" of functions, where we can reference a method through an instance of the delegate. I searc...
asked by 05.01.2019 / 02:35
1
answer

How to delete not only datagrid rows, but also columns from header c #?

I'm doing this to erase the rows of my datagrid.Rows.Clear (); this erases the rows to me, but it leaves me the headings and I also want to erase the columns, how do I do it? the rows and columns are added by code datagrid.rows.add (), not fi...
asked by 05.12.2018 / 19:40
1
answer

declare list list as object attribute c #

I have the following object: namespace MODELO{ [Table("Check_lists_PVR")] public class Check_lists_PVR{ [Key] private Int64 NroCL { get; set; } public DateTime Fecha { get; set; } public string Turno { g...
asked by 04.07.2018 / 01:29
1
answer

Counter and Media C #

I am doing a program in which I request the data of N students such as their name, age, weight and height, I want to know the average weight of the students, how many students have the same height and what is that height. using System;...
asked by 24.08.2018 / 01:53
1
answer

Insert all CheckedBox into an ingredients database table

I'm doing a project for a Pizzeria, the customer can choose the type of dough, quantity and different ingredients, everything works perfectly except the ingredients I do not know how to do it, I tried a CheckedListBox but I did not know how to d...
asked by 31.05.2018 / 10:47
1
answer

Problems with Crystal Report in Visual Studio 2012

Good hope you can help me, I have problems with the crystal report that installs my visual studio 2012 Ultimate as you can see in the image at the time of adding the crystal report that window comes out and I do not know what could be     
asked by 02.06.2018 / 18:41
1
answer

Can you create 1 Visual Basi C # and 1 Web Form in ASP.NET?

I am starting to "program" in ASP.net and the question arises as to whether 2 different Web Forms can be created, that is, each with a "language", one with C # and the other with Visual Basic. And also know if there is much difference between...
asked by 04.06.2018 / 08:11
2
answers

Help with the search method c # mvc razor

That such a friend I turn to you again to solve a problem that I think is simple but I could not find the solution. 1- I am using the sew component to be able to enter various data into a search form that contains 2 dropdownlist. 2.- the 2...
asked by 05.06.2018 / 20:43