Questions tagged as 'c#'

2
answers

How to run program in C # by cmd

I am creating a program that works with commands, and would like this program to be executed by cmd style: c:\path\folder>meuprograma >comando arg1 arg2 >comando 1 falhou >comando2 >comando 2 executado com sucesso! >exit c:\p...
asked by 12.05.2015 / 15:07
1
answer

How to stylize a WPF application to look like Windows 8 applications (Metro style)

I work in a company where they use a system that is very reminiscent of Windows 8, even though I'm on the Windows 7 machine. What I needed to do is to develop a desktop system from my computer (Windows 7) but needed to leave the same face, si...
asked by 10.04.2015 / 19:55
3
answers

Webbrowser - Click on elements of a site

Hello, everyone! It's this, I need to make my program click on an element. Here is a photo to make it easier to understand: link I have tried many things, but nothing successful so far ... I want the button to be pressed My code is li...
asked by 20.07.2015 / 23:39
1
answer

Unity does not update frames by rotating the character with the movement of the mouse

My Unity is not giving error, or anything. Everything is OK, but the character does not move. I already looked at the code and no mistake, I move the mouse and nothing happens to the character. The Unity version is 4.6 and the code is this: p...
asked by 01.03.2015 / 07:03
2
answers

Make a combobox assume C #

I have doubts about making combobox a value. I have two combobox with the 'low, medium and high' items and I want it if I select low on the combobox it assumes the value 0, if it means medium it assumes 0.5 and if it is selected high it assum...
asked by 19.02.2015 / 13:32
1
answer

Compiler error or code error?

I came across the following case and I do not know if it is a .Net error or error in my implementation, syntax itself (see image below). condenacaoInsert.qtd_ano_pena=null;condenacaoInsert.qtd_ano_pena=(!string.IsNullOrEmpty(readerCondenacao[...
asked by 19.03.2015 / 16:01
1
answer

DDD - What is the best option (Layer) to consume an external WebService?

DDD Pattern. I need to consume an external WebService , treat the return of this WebService and return the result through the Application layer. Would it be interesting to consume this WebService in the Infrastructure layer and tr...
asked by 22.04.2015 / 14:58
2
answers

Problem writing data to Postgres

I have two tables in postgres (PRODUCT and CATEGORY) In the PRODUCT table I have the FIELDS - > ID, productName, description, value, Category ID . In the CATEGORY table I have the FIELDS - > Category ID In my project in Visual S...
asked by 01.10.2015 / 20:54
1
answer

Variables with special characters

Hello, I'm trying to create a class of the genre: [DataContract, Serializable] public class XMLCM5050 : XmlApi { [DataMember] public string $name{ get; set; } [DataMember] public string $age{ get; set; } } I know it's no...
asked by 01.10.2015 / 15:39
1
answer

Manipulating the opacity of an object (control)

Example: When I press a button, I will display a painel by editing only its visibility, it works, but it has no effect, Then I had the idea of pressing the button to display the panel with opacity 0 and then increasing it gradually. B...
asked by 23.08.2015 / 17:33