Questions tagged as 'c#'

1
answer

What is the difference between ASP.NET Web Site and Web Application in Visual Studio?

I need to do a project in asp.net with web forms , I'm really new in asp.net and when creating the project I have seen tutorials in which they use the two variants or create a WebSite or create a WebApplication ....
asked by 29.07.2017 / 16:30
2
answers

Series fibonacci in a matrix n * n, C #

How can I introduce the fibonacci series in an "N" matrix by "N" example: 1 1 2 3 5 . . . My result is not as expected, it does not show the series in the matrix. This is my code: int i, j, n,aux; int a = 0; int b = 1; n = Convert.ToIn...
asked by 27.07.2017 / 15:48
1
answer

Are the e.HResult of the exceptions in c # unique?

I want to know if each e.HResult that gives an exception is unique and that as such it is always the same. Or else how could I validate a specific exception always? My problem is that I need an exception which tells me that it is not possible...
asked by 10.11.2017 / 16:05
2
answers

create a class to load an NxN matrix into C #

I do not know how to declare the attribute of the matrix without dimensioning it, since the dimension would be entered by keyboard.     
asked by 21.06.2016 / 01:02
2
answers

How to prevent a script under "_" from being added to the end of the contents of a TextBox

I'm working with nicks (first names). When a user registers, he must enter his nickname, he can not contain symbols (except the underscore), only numbers and letters. I use the event KeyPress of my TextBox Username for this:...
asked by 02.05.2018 / 00:57
2
answers

Set the checkbox of a DataGridViewCheckBoxCell to true

I load a DataGridView through a list. datagridview.DataSource = listaVariables; This DatagridView, is formed by a column (the first) that is of the DataGridViewCheckBoxCell type. What I want to do is that, depending on a property of the...
asked by 13.09.2017 / 14:01
2
answers

Do these types of expressions always remain in memory?

By moving with C # I have found that a new instance can be created without storing it inside an identifier. I understand that these statements only work with classes because of the need to invoke some method within them, but does this instanc...
asked by 03.05.2016 / 14:41
2
answers

Access a control of the main form

I have a windowsform application with 2 form and form2 windows, which is generated by default (I consider it the main one) and a 2nd form, and I wanted to access a textbox of the main form from it form2 form to update it with a button from this....
asked by 04.03.2016 / 19:42
1
answer

Problems with Ajax.BeginForm Razor MVC4

Good morning. I had previously posted a problem with a form ajax , but I'm still I can conclude this module. The problem is that when I open this Formulario Ajax (which opens in a dialog and the div of it is out of any othe...
asked by 03.02.2016 / 15:10
3
answers

How to use vb.net code in C # using a library

The question is how can I do to use the following code: Class MenaPE '------------------------------ 'Title: MenaPE (RunPE Class) 'Author: Menalix 'Website: Menalix.com 'Notice: For teaching purposes...
asked by 07.06.2017 / 23:27