Questions tagged as 'c#'

1
answer

Control of browser windows with Selenium

I'm automating an operation on a particular site and at a certain point I need to download it, I can authorize the download by clicking on the link but after that I lose control because a Firefox window opens asking if I want to Open or save the...
asked by 20.08.2015 / 21:51
2
answers

Error "'object' does not contain a constructor that takes 1 arguments"

I wanted to know why this error is occurring. I created a class that extends another one, but when I call its constructor (parent class) it generates an error. There it says that there is no constructor with 1 parameter, but as you can see...
asked by 01.07.2015 / 03:16
1
answer

Problem in a Player Script PlayerMoviment on Unity 5

Problem in a Script PlayerMoviment of Char in Unity 5 Supposed problem on line 70 in "Quaternion" using UnityEngine; using System.Collections; public class PlayerMoviment : MonoBehaviour { //velocidade do Mago public float speed = 6f...
asked by 28.06.2015 / 17:08
1
answer

How to list items per logged-in user in ASP.NET MVC

I have an application that manages Courses and I have the following problem, student makes your enrollment in courses >, but when the student accesses the page where they list the courses they are enrolled in, this list is also listin...
asked by 24.06.2015 / 07:28
2
answers

Could not resolve this reference. Could not locate the assembly "MySql.Data"

How do I add the reference "MySql.Data"? I'm using SharpDevelop and not Visual Studio !!     
asked by 01.05.2015 / 18:43
1
answer

Working with Regular Expression

I'd like to know what is the best way to work with regular expression, so turn a code reader: Example: using System.Text.RegularExpression; void LoadRegex(string filter, RichTextBox rtb, Color c){ var RTBmatch = Regex.Matches(rtb.Text, f...
asked by 22.02.2015 / 01:59
4
answers

Empty field check and zero value

Below are two examples of my codes, I have a text box weight that the user needs to put some weight on, and can not be 0. In the first code below, it does the check though, it runs the remainder of my code where I commented, which was not to hap...
asked by 04.03.2015 / 17:26
1
answer

How to save scrollbar position?

I would like to get the scrollbar position of DataGridView , so after giving a refresh , continue in the same position.     
asked by 26.02.2015 / 14:50
1
answer

How to capture file size of System.Drawing.Image?

I have a method to which I pass the parameter System.Drawing.Image and the percentage that that image will be after resize . public static Image ResizeImagem(Image imgFoto, int percentual) { float nPorcentagem = ((float)percentual / 1...
asked by 19.11.2014 / 14:11
1
answer

How do I change the Header of columns in a gridview

How do I get a name that I want to column header from a gridview that is created dynamically in C # without being in ASP.NET please     
asked by 23.11.2014 / 20:20