Questions tagged as 'c#'

0
answers

Error: Could not load file or assembly

I'm developing a desktop application with C #, and it's giving the following error when I do some interaction with the Bank. An unhandled exception of type 'System.IO.FileNotFoundException' occurred in BackupRN.dll Additional information: Não...
asked by 11.12.2014 / 17:55
1
answer

Panoramic image in C # Windows Forms

I'm doing a new project using C # windows forms, and needed to open a panoramic image and rotate it just horizontally. I looked for some examples on the internet, but found none that is clear. Someone has some example that can help me.     
asked by 25.11.2014 / 19:35
0
answers

Performance while drawing an image

I currently use the DrawImage method of the Graphics class. However, the drawing speed in the components is very slow. How can I optimize its use? Can libraries like MonoGame or OpenTK perform better on this? Here is an example of code in...
asked by 07.07.2015 / 14:51
1
answer

How to do redirect after authentication in STS?

My application authenticates users through STS. Authentication can go to the STS and validate the user PIN on the card. But how do I redirect it to the "home" page of my site after authentication? Addendum: I do not have access to the STS...
asked by 26.02.2014 / 15:12
3
answers

File download does not work

How to download a file by the browser from a directory in my project? I tried the following, but nothing happens: string path = "C:\test.txt"; var file = new FileInfo(path); if (file.Exists) { Response.C...
asked by 18.03.2015 / 12:34
2
answers

Convert PDF To SWF FLASH - Asp Net MVC

Good night, I'm generating pdf using Itextsharp and I need to send a swf to the client, however I'm having difficulties, the client gets a white flash screen. I am using this strategy because with the flash I can block the options to print the p...
asked by 27.11.2015 / 22:06
2
answers

problems with string and split C # [closed]

I have the following function: string str = "1 2 3 4 5"; //string para separar string[] ArrayValor = str.Split(" "); //nesse caso o array seria {"1","2","3","4","5"} But I wanted something more generic, for example, if the user entered "1-2...
asked by 18.07.2017 / 22:09
1
answer

Every time I download files I get a large amount of errors [closed]

I need help. Every time I load any file in Visual Studio 2015 I get a huge amount of general errors. I'm starting to develop for windows phone and soon when importing the first sample, downloaded from msdn I get a considerable amount of er...
asked by 26.11.2015 / 05:41
3
answers

What is the most recommended "try" or "if"

{ public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { double SalarioBase = 0, Descontos = 0, Vantagens = 0; try { SalarioBase = Con...
asked by 15.05.2017 / 00:19
2
answers

Is it possible to evaluate a ternary expression with 3 possible values?

Let's say I have this account: var total = valor1 / valor2; The result could be three possible values, type: total > 5 total > 0 and total < 5 a positive value Note: These are percentage values, so 5% equals 0.05. I coul...
asked by 30.01.2018 / 16:26