Questions tagged as 'c#'

2
answers

Why can not I assign a list of a more specific type than the declared type?

I have this class example: public class User : APerson { private string _userName; [DataMember] public virtual string UserName { get { return _userName; } set {...
asked by 21.09.2017 / 19:29
2
answers

How to execute IF function when selecting item from ComboBox?

I wanted to know how to make a if work only when combobox has any items selected. I'm doing a program in windows forms and I need a if to limit the program to only doing that function when combobox contains something...
asked by 12.10.2017 / 15:57
3
answers

Return the previous page with the back button

I have a back button that supposedly should return to the previous page, regardless of which page on the system. How can I do this using MVC 4? Does returnURL have anything to do with this feature?     
asked by 30.05.2014 / 16:21
2
answers

What is the corresponding variable type of timestamp (SQL Server) in C #?

I have a field in the database (SeqAlteracao) of type timestamp and I need to map it to the C # (Entity Framework). What is the corresponding type in C # for this type in the bank? public **Tipo** SeqAlteracao { get; set; }     
asked by 21.11.2016 / 21:00
2
answers

Why is the last letter of my code replaced by a question mark "?"?

The teacher asked for semester work a code in C # that encrypts a text from a file. The code is still not polished or anything, I'm only doing the brute then I'll add more things, but my problem is that every time the last letter of my text c...
asked by 02.11.2016 / 15:17
3
answers

Linq filttar elements of LEFT JOIN

I would like to return an object with your children, but only wanted to bring the children that corresponded to a certain condition. ex: I have the following classes: public class Fornecedor { public int FornecedorID { get; set; }...
asked by 11.11.2016 / 17:29
2
answers

How to hide a password in C #

I want to hide my password. What I want to happen is that as long as I type the "*" is shown instead of the characters, the problem is that this happens only when I click the "Log in" button. Yes, I know this happens because the commands a...
asked by 31.05.2017 / 22:01
3
answers

Link selection between two ListViews

Would it be possible to bind the unique selection between two ListView objects via XAML? For example, I have two ListView , TopListView and BottomListView , both configured for simple selection, ie only one item can...
asked by 08.01.2017 / 18:32
3
answers

using visual studio unnecessary

Does anyone know why it looks like this? Resolution:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingMySql.Data.MySqlClient;usingSystem.Data;namespaceMySqlSe...
asked by 15.02.2017 / 13:07
2
answers

Adds number on each line in C #

How to remove the numbering of this line and then add it again in another format? Input: N0006 G90 N0007 G90 N0008 G92 X21.7301 Y88.9657 N0009 S555 N0010 D14 N0011 G42 G01 X22.0659 Y89.3015 N0012 X22.4194 Y89.655 N0013 (PATHSTART0) Output...
asked by 13.09.2016 / 15:17