Questions tagged as 'c#'

1
answer

Modifying Values of Multiple Lines

I need a query that modifies multiple values at the same time The idea is more or less this "INSERT INTO registros(Envio) VALUES('1') where Aviso = '" + DdataAtual.Year + "-" + DdataAtual.Month + "-" + DdataAtual.Day + "' " The que...
asked by 09.06.2015 / 17:07
3
answers

How to make text disappear from WPF field C #

I'm using wpf for the first time, as is the declaration of a textbox field in which I have a text (Ex: "Login") and when I click on it it adds up and is just the pointer for me to start typing ? If you did not understand how this text is hot...
asked by 20.05.2015 / 15:15
2
answers

Get path of commit files with LibGit2Sharp

How do I get the path of my last commit files? I have this example method: private static void RepoListFiles() { if (!arguments.ContainsKey("repository")) { Error("O repositório ainda não foi informado."); return;...
asked by 12.05.2015 / 17:49
1
answer

Playing Query Data For DataGridView in C #

Hello everyone, I'm having problems with a listing. I have a DataGridView loading a list of products automatically and a combobox with the names of the categories, the idea is that when selecting a category and clicking the list button, DataG...
asked by 03.04.2015 / 19:12
1
answer

WebApi 2.0 - ApiControllers in another Assembly do not undergo mapping if runAllManagedModulesForAllRequests="false"

I have a WebApi2 application that implements some ApiControllers . This same application references an Assembly that implements some more. All these controllers use Attribute Routing , as in the following example: [RoutePrefix("s...
asked by 31.03.2015 / 21:06
1
answer

How to integrate a MySQL database with a C # application?

I am a beginner in database and I have a simple C # application of registers and I want to use the MySQL database to store the data. I have MySQL Server installed and I usually use the "command-line client" where I already have a test table c...
asked by 02.04.2015 / 17:49
1
answer

Read JPEG image, convert it to PDF and save to disk - Visual Basic 6

I'll create a button, which when I click it, it reads a JPEG image and can convert it to PDF and save to disk. I would like a hint in source code so I can start this project. Thank you very much.     
asked by 13.03.2015 / 20:58
2
answers

IoC with Ninject

I'm developing an application using IoC and Ninject for dependency injection, and I came across the following problem: When uploading my application to the server I get the following error: Can anyone help me with how to resolve this e...
asked by 17.03.2015 / 23:19
1
answer

Enable or disable C #

In the navigator of my table I have the following buttons: inserir, cancelar edição, excluir e salvar (figura anexa). I wanted to leave inserir and excluir disabled when starting an edit in any field of my table (both in the...
asked by 06.07.2015 / 05:27
2
answers

Best way to display a form inside another form?

I'm in doubt here, I do not know much about it. 1 I was using a form only, with several panel hidden inside it, and when the user clicked on any option in menuStrip I manipulated the Enabled and Visible properti...
asked by 01.07.2015 / 18:15