Questions tagged as 'c#'

2
answers

Is an application possible on different computers running CRUD simultaneously?

I am creating an application in C # using the VisualStudio 2015 enterprise next to SQL Server 2016 to save the data, but I am almost finishing the project and still do not know if it will really work! p> I need to install this application on...
asked by 10.11.2016 / 17:44
2
answers

Working with vectors / arrays

Hello, I have the following question, I have 5 vectors string[] Defesa = { "Gigante", "Golem", "Gigante Real" }; string[] AtkTorre = { "Corredor", "Ariete de Batalha", "Gigante Real" }; string[] AP = { "Bárbaros de Elite", "Gigante Real", "P...
asked by 09.04.2018 / 22:37
4
answers

How to get the computer name?

How can I get "computer name" and "Full computer name" using C #? What are shown in the properties of the computer:        
asked by 26.06.2018 / 16:50
2
answers

How to check if the email is already registered in the database?

The Controller is always returning the error message when the email is registered in the database. [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create([Bind(Include = "Id,Nome,Email,Senha")] Pessoas pessoas) { if (pessoas != n...
asked by 26.10.2018 / 18:29
2
answers

Can I use C # (through Visual Studio) to develop a program for Mac / OSX?

I would like to know if Visual Studio (through a computer running Windows and C # language) can create an administrative program (simple, for 1 user, involving only a database interaction) to a computer running Mac / OSX . If so, what settings d...
asked by 10.02.2017 / 21:24
2
answers

Doubts about converting from Byte into Image in C # You are experiencing a strange and unusual error [duplicate]

I'm trying to convert the bytes that are in a database into a PictureBox in C # 2012, but when it arrives on a particular line it says that the parameter is invalid, an abnormal error that never happened before , I made a Debug and the only th...
asked by 09.01.2017 / 00:28
2
answers

Create Excel file with C # [closed]

I have a problem: I have to generate a class in C # to create an Excel file, but I'm not getting it. Can anyone help me? The idea is to generate an Excel file with a menu and a line with values.     
asked by 02.03.2017 / 19:58
4
answers

Return True or False in jQuery Success

< script type = "text/javascript" > $(document).ready(function() { $('#btnEnviarDados').click(function() { var strFomr = $("form").serialize(); $.ajax({ url: $("form").submit(), type: "POS...
asked by 07.02.2017 / 01:48
1
answer

JOIN by LINQ in C #

I need to join LINQ in two lists using codeList. List 1 must exist in the second list (list 2) and needs to be returned. How do I do that? Note: I've never done join via LINQ in C #     
asked by 27.07.2016 / 00:48
2
answers

How to replace the comma

I wanted to know how I can replace the comma to an end point. Example: I have the following number 2.32 I wanted it to be 2.32. How can I do this? I already tried to use ToString(CultureInfo.InvariantCulture) but it still did not...
asked by 06.11.2017 / 17:27