Questions tagged as 'c#'

1
answer

Array From C # to Visual Basic

I have the following algorithm in C #: public static int Encriptar(string cad) { int[,] mul = { {0,1,2,3,4,5,6,7,8,9}, {1,2,3,4,0,6,7,8,9,5}, {2,3,4,0,1,7,8,9,5,6},...
asked by 09.03.2018 / 04:09
2
answers

Do not show controls when you identify that page! IsPostBack in c #

I need to hide the controls of a form that I intend to use to create credit requests. the procedure to be performed is: If the page is displayed for the first time, the controls to add client and co-debtor information are displayed, stored wh...
asked by 10.05.2018 / 18:03
2
answers

MySQL database performance [closed]

Good evening I have a query, I am creating a sales management system in c # for 3 branches with multiple users and all will be connected at the same time and to the same server, is my query that the data flow is too much saturated? or that depen...
asked by 08.01.2018 / 03:44
1
answer

Perform direct consultation

I have my next query in c # I'm using the ADO.NET Entity Framework 4, my query I just want to get the data of two specific columns. public List<clsSalidas> Listar() { try { var lista = contexto.Execut...
asked by 06.01.2018 / 20:45
1
answer

Avoid duplicate records in C # and SQL Server

I have this code to save records, when it is new, enter the record, when the record is repeated it enters foreach and displays the message (the record already exists) but it enters the record anyway . Is there any way that,...
asked by 13.12.2017 / 03:28
1
answer

Search for "pattern" in string C #

Is there a method to find a pattern with specific characteristics within a string? I need to look at a string and if any of the parts contains a (xxxxxxx) delete it, the problem is that what is inside the parentheses can be variable but w...
asked by 16.11.2017 / 11:12
2
answers

Prevent continuing program when an exception occurs

I have this method, which opens an excel file, what I try is that when the route is not correct I can not continue the program until the connection is correct. private void Conectar() { try {...
asked by 16.11.2017 / 09:10
1
answer

Listview show two fields in each row

Visual Studio Community 2015 + SQLite + Entity Framework The database has 2 fields: ID and ShipType Class for mapping the database: namespace ImperialFleet { public class ShipTypeClass { private string id; private string type;...
asked by 17.11.2017 / 13:23
2
answers

How to Get the Start and End Date of a Week having the number of the week?

I have the number of the week, I want to get the date that includes that week: Example: The week starts on Monday (first day), and ends on Sunday Week 1 of 2018 = 01/01/2018 - 07/01/2018 Week 52 of 2018 = 12/24/2018 - 12/30/2018 Week...
asked by 03.01.2018 / 23:41
1
answer

Error method must return a type c #

Hi, I have a problem and esque always shows me the same message that a guy should return, what I do is the following: Error method must return a type: var a = AssemblyHome(data); The code of my function is: internal static AssemblyHome(by...
asked by 01.01.2018 / 18:31