Questions tagged as 'c#'

1
answer

Excessive use of pens C # [closed]

Good morning, friends, I'm developing an application that should draw 4 graphics (for now), to draw the way you want it to need to redraw the graphics several times and update them. With too much drawline, performance drops. When I stop drawi...
asked by 18.12.2018 / 15:15
2
answers

How to Put a Word File in Windows Form C #

I'm doing a project in college and wanted to do a help system in Word, with the screenshots and explain the operation, and within the project create a Help tab and when I click on it, open what I did inside Word. Is this possible and how do I...
asked by 16.12.2014 / 18:11
1
answer

SQL database online only for LOCAL NETWORK, connect via C #

I developed a system for my company and need a database hosted on our internal network, explaining better I want to host this database on a PC running a Windows Server 2012 here in the company, our connection is all wired .. . It's a network...
asked by 09.12.2014 / 18:38
1
answer

Bank query for a List in C # WPF

I need to make a query in the database, I made this code for connection, but I do not know how to proceed to put this information in a list<String> SqlConnection conexao = new SqlConnection(_stringConexao); SqlCommand comando = ne...
asked by 22.12.2014 / 11:57
1
answer

Converting a SQL from Sql Server to LINQ from C #

I have an sql that looks something like this: SELECT coluna1, coluna2, coluna3 FROM ( SELECT coluna1, coluna2, coluna3, ROW_NUMBER() OVER(ORDER BY coluna1, coluna3 desc) as row FROM tabela1 WHERE coluna4 in ('a', 'b', 'c...
asked by 18.12.2014 / 14:41
1
answer

Synchronize Threads

I have an application with 3 threads, this application involves a chemical process simulator, and I have to pick up some values from these processes. the values come in a single object. The 3 threads make an infinite loop, in this loop they t...
asked by 17.12.2014 / 13:52
1
answer

How to return dynamic list?

How to return a List<dynamic> in ASP.NET MVC 5 and EntityFramework 6 For example I have an Object named User and mapped in my EDMX, when I do to bring the data dynamically type make an advanced query without returning an object o...
asked by 24.12.2014 / 18:16
2
answers

Enable / Disable Button according to Checkbox value in a DataGridView

A form in an application Windows Forms with C# displays a DataGridView with Checkbox . When one of the Checkbox is checked I want to enable a certain button. If no Checkbox is checked, I want to disable i...
asked by 04.01.2015 / 22:07
1
answer

deserialize xml c #

I made a call through my web api and put it in a class. How do I display the values? xml: <result> <resourceName>activity</resourceName> <size>1</size> <entries> <entry id="1802274" link="/activity/180...
asked by 26.07.2018 / 18:23
2
answers

Define a generic variable without defining the type

I'm doing some tests on Unity for me to practice programming. I'm a beginner and this question can be kind of stupid. I want to know if this is possible: I created the following abstract class: public abstract class Variable<T> : Scri...
asked by 22.07.2018 / 22:34