Questions tagged as 'c#'

2
answers

ReportView without DataSet

I am finishing my TCC and I have a question regarding Reports with ReportView of Visual Studio 2013. I'll basically explain with how my application works. The connection to the database is made through a ConnectionString declare...
asked by 08.10.2014 / 15:49
1
answer

How to compress my Resources files

I'm developing a Battle-Naval game (I'm still a beginner on programming) and I'm adding some songs and images. My problem is that this is increasing the size of the project / game too much and it gets in the way. Is there any way to compre...
asked by 21.10.2014 / 16:15
1
answer

How to list sql server databases in a combobox [closed]

How to list SQL Server databases in a combobox from a C # application     
asked by 07.10.2014 / 18:48
1
answer

Change column color with values above the limit

I am making a report for winforms using REPORT viewer, in this report I added a column chart. What I need to do is that before loading the report the user can choose what value is good for him, and all the columns that were above that value chan...
asked by 08.10.2014 / 15:05
1
answer

How to sort a ListBox

I have a listBox and two buttons on the side, one to move up and the other down the selected item. However, the list is loaded by the DataSource of a table of the bank, wanted to sort the position of the list items, because after ordering...
asked by 12.11.2014 / 20:54
1
answer

Linq does not return data. There is data in the table and I return by query

I tried to make a LINQ very similar to my query. This is my query. select * from PDV where tipo_PDV = 'R' and UF = 'DF' and Cidade = 'BRASILIA-DF' This is my LINQ var resultado_rede_descricao = (from _pdv in db.PDV...
asked by 02.10.2014 / 13:56
1
answer

Dynamic column with value appearing wrong in WebGrid

I have a problem creating a table with dynamic columns. I add the columns in loop in this way: for (int i = 0; i < attrIds.Count; i++) { resource_attr attr = resourceAttrRepository.Find(attrIds[i]); int lo...
asked by 17.11.2014 / 14:13
1
answer

RadioButton returning only selected status [closed]

Follow the code: <asp:RadioButtonList ID="rdlCpfCnpjAvalista" CssClass="cPFCNPJRadioButtonList" runat="server" RepeatDirection="Horizontal" AutoPostBack="false"> <asp:ListItem Text="CPF" Value="1" Selected="Tru...
asked by 17.11.2014 / 13:42
1
answer

How do I know if a function was called by another form?

How do I tell if a function has been called by another form? For example: On my form 1, I have a method that calls another form: private void btnFormulario2_Click(object sender, EventArgs e) { frmFormulario2 frm2 = new frmFormulario...
asked by 17.11.2014 / 14:45
1
answer

String translation problem in Timespan

In the system I am developing a user sends me a TimeSpan via Post, but when I get the String it should be TimeSpan and I apply a TimeSpan.Parse it gives the error:    "Could not parse TimeSpan because at least one of the...
asked by 19.11.2014 / 12:08