Questions tagged as 'c#'

1
answer

Capture error when button is pressed

I want to make a button that when clicked is shown the SQL Server information and say that it is connected (have to configure the file in the XML Configuration File) See below the code: public class Functions { public static void conn()...
asked by 15.11.2016 / 20:34
1
answer

Growing Counter in a Texbox [duplicate]

I'm developing software that every time the user clicks the save button, he needs to add +1 to a TextBox . Ex: Box = 1 - > Save - > Box = 2. Every time the user clicks save , he has to change the box number, always addin...
asked by 16.11.2016 / 14:16
1
answer

How to add a row at the start of the dataGridView C #

I'm developing a Tetris game in Windows Forms, I have programmed the movements of all the pieces, I now have to delete the lines that are painted completely. To remove a line use the code: dgvTetris.Rows.RemoveAt(27); As soon as I remove...
asked by 01.11.2016 / 17:48
1
answer

capture selected item DropDownList created in javascript

Hello, someone could help me. I have the following problem I have a TextBox and a DropDownList, in the textbox has an autocomplete with names of states; after finishing fill in the textbox populates DropDownList with names of cities correspondin...
asked by 02.11.2016 / 22:23
1
answer

How to use Database Diagrams in Visual Studio 2015

I'm doing the exercises in the book: "Use the C # Head", and one of the exercises was asked to create a Database diagrams. But you do not have this option in Microsoft Visual Studio 2015. Book page: Sothere'smyVisualStudio:     
asked by 31.12.2016 / 10:00
1
answer

Generate the primary key in the application or keep it as an auto incremental?

Should I set the primary key of my table to auto_increment or set it as numeric, generating the key within my application? Contextualization I'm developing a C # application and testing it in an Access database, and then passing it...
asked by 13.11.2016 / 17:37
1
answer

View Ocutar Password using EditorFor

I'm using LabelFor, I wanted to click on the above to enter the password, the characters were displayed, and when I clicked off it was hidden, how could I do it? <div class="form-group"> @Html.LabelFor(model => model.Senha, htmlAt...
asked by 13.11.2016 / 00:12
1
answer

Edit Div content

I have a index , which displays the data of my database, I wanted to click on div , open a modal, that would allow to change that value of div . Code of view : <div style="float:left; max-width:200px;max-height:200...
asked by 14.11.2016 / 04:54
1
answer

Injection of Dependency with Ninject C #

I am developing an application that has 4 layers Dominio, Infra, Servico e Web When I have access a route for example Home/Index it says that there is no constructor without parameters, my constructor looks like this: public Home...
asked by 21.10.2016 / 13:31
1
answer

How to do a Google search with C #?

I need to fetch any term on Google and get a list of the results of that search. I'm trying to do this using the Google Custom Search API but I'm not getting satisfactory results. For example, when I search for the term "bidding" with my...
asked by 20.10.2016 / 19:56