Questions tagged as 'c#'

1
answer

How do I put the value of a variable inside a textbox?

People, I have a boring problem. I wanted to put the text I took from one textbox and put in another that is set to readonly. I wanted it to work as a label. I tried textchange gave error. private void btncalcular_Click(object sender, EventAr...
asked by 12.08.2017 / 07:11
1
answer

How to create a banner by extending an Image in C #

I'm developing a method for adding a purple stripe to images that are rendered in my application. I'm using C # to draw in the image, currently I do this: using (Image image = Image.FromFile(originalFilePath)) { Graphics imageGraphics = Gr...
asked by 11.08.2017 / 15:36
1
answer

Method is executed by clicking the button despite making "button01.Enabled = false"

I want to disable a button while the method does not finish. I used button01.Enabled = false; , but even clicking while the button is disabled, the method is called again after it finishes. For example, when I execute the method below a...
asked by 10.08.2017 / 18:03
1
answer

Printing in Dot Matrix Printer with WPF C #

How do I print my tickets to a dot matrix printer (LX300) from routines made in WPF C #? Do you have anything specific for that? A drive or plugin?     
asked by 11.08.2017 / 13:59
1
answer

Inner join in tables 1 - n

I have two tables: Vehicle and Images, where a vehicle can have n images. When performing an inner join I get the following result: Vehicle1-Endereco picture Vehicle1-Endereco picture Vehicle2-Endereco picture Vehicle2-Endereco picture Vehicle2-...
asked by 10.09.2017 / 07:41
1
answer

Release of datagridviewr gridi on the change button

Good morning, I have a doubt, I have a datagridviwer, I have cleared the option to change the fields, and I need to do that when the user clicks on the change button I release the grid to change, how can I do this?     
asked by 11.09.2017 / 15:23
1
answer

Chart pizza is not being "sliced" using SfChart

I made this chart using Syncfusion Chart, private async void CriaChart() { SfChart chart = new SfChart(); DataService dataService = new DataService(); try { PieSeries pieSeries = new PieSeries() { I...
asked by 20.10.2017 / 19:59
2
answers

How to use Insert with multiple C # SQL records

I'm new here and also in the world of programming, today I managed for the first time to make the connection from C # to SQL, when making a simple connection with BD I can insert records, but when trying to insert 2 data in the same table simult...
asked by 22.10.2017 / 01:55
1
answer

Open Program with dragging file (PDF) and recovering the path

Hello, I'm having a somewhat complicated need, I'm developing an application that sends pdf files to an application via webservices. I just want to let this problem start in some different ways. I'll try to explain by example. When I have a file...
asked by 23.08.2017 / 21:36
2
answers

Property error can not be set for System.Double

I got this error:    The 'DataLib' property on 'Release' could not be set to   'System.Double' value. You must set this property to a non-null value   of type 'System.Single' What happens is that I commented the property in my Entity Mode...
asked by 24.08.2017 / 21:53