Questions tagged as 'c#'

1
answer

How to write and block the textbox by clicking the button

I would like to know how to type a number in the textbox and block when the button is clicked private void button6_Click(object sender, EventArgs e) { textBox4.Enabled = false; } I was able to block it, but writing inside it coul...
asked by 16.11.2016 / 00:00
1
answer

Increasing the AssemblyVersion

I'm creating an update solution for an application that I have and I needed the Assembly version When putting a * in the assembly. [assembly: AssemblyVersion("1.0.0.*")] It started incrementing automatically, however the shape you are in...
asked by 02.04.2014 / 21:02
1
answer

Adding images to bd using classes in C #

I'm doing a project that has classes, for example, a user class, where you have: code, name, password and photo and if you have the method of user input: public string Inserir() { return "insert into Usuario(Username,Senha,Foto...
asked by 16.11.2016 / 22:28
1
answer

Fill bank by expanding a given value in so many items

I have in the bank the registration of the building, with the amount of rooms qtdSala , among others. I'm trying to insert, in another grid, each room according to the value entered in qtdSala , to register in the rooms table, throug...
asked by 01.02.2017 / 04:30
0
answers

System.Runtime.Serialization in UWP 10

I'm creating an exception in UWP , however, it seems like UWP apps do not have the same features for serialization as classic applications. The code below does not work for UWP . using System; using System.Runtime.Serializat...
asked by 23.12.2016 / 01:12
0
answers

Query of dataset that shows last ID created giving error

I am making a people registration form which when I finish entering the data it shows a MessageBox saying with which ID the person was registered. For this I use a% w of% of my query (I'm using Entity Framework model first), but fo...
asked by 10.11.2016 / 15:47
1
answer

Place pagination when generating PDF with iTextSharp

I'm using iTextSharp to generate PDF's in my application. Now a problem has arisen: I am printing listings and when there is more than one page I would like to print a footer with page numbers (eg "Page 1 of 4"). I found some examples but they...
asked by 02.04.2014 / 10:49
2
answers

How to populate a DropDownList from another DropDownList

I need to know how to populate a DropDownList from another DropDownList. Example: I have a DropDownList named Project that takes the information from my DB. When I select for example "Project 1" I need in my second DropDownList to load all Sub P...
asked by 23.07.2015 / 13:54
0
answers

MySQL with Entity Framework Code First

I have a project where I need to use MySQL as a database and EF6 with the CODE FIRST approach. I installed MySql.Data.Entity 6.9.9 and EntityFramework 6.1.3 My app.config looks like this: <configSections> <section name="entityFr...
asked by 28.10.2016 / 12:28
1
answer

Pagination x from y to Danfe in Report Viewer

Would anyone know how to make this page as in the example below? This pagination is easily done in the Report Viewer header or footer, but it looks like the pagination there is in the body of the report. If anyone knows how to do it, or indic...
asked by 27.10.2016 / 20:27