Questions tagged as 'visual-studio-2015'

1
answer

Problems to activate Allow Unsafe. I can not run unsafe

I'm making a website published in hostlocal in C # and VisualStudio 2015. I need to set the AllowUnsafeBlocks option, for a class that uses pointers, but I can not. I'm sure it's silly, but I do not see it and I'm going crazy. When I open the...
asked by 02.11.2018 / 23:25
2
answers

I get an error with modifying database from C # [closed]

   This is my code but I do not know if there will be any problem with the sentence I have made public void modificar(Int32 cantidad, String producto, String tipo_pedido, Double total) { conexion.operacion("UPDATE pedidos s...
asked by 04.10.2018 / 02:03
1
answer

Error with Crystal Report The report could not be loaded

Currently the application is working for several users, but sometimes the system gives an error when they try to preview a report that they generate many times a day. The error generated by crytal report is "The report could not be loaded" ,...
asked by 04.09.2018 / 18:50
1
answer

Error with Insert in Postgresql in C #

I have a problem that I can not solve because I do not see the error. I am developing a simple project in C #, when I execute a stored procedure of Postgresql (Insert): pgsqlCommand cmd = new NpgsqlCommand("select insertclientes(" + @idcuenta_...
asked by 06.08.2018 / 17:30
1
answer

Event problem double click on datagrid

Hi, I have a problem that if I double-click on a datagrid header it returns an error in the CellDoubleClick event, I am interested in the event being valid for all the cells except the headers, I tried with e.RowIndex> 0 or e.RowIndex < >...
asked by 31.12.2017 / 07:12
1
answer

How to position buttons next to each other?

I am working with WPF, Visual Studio 2015, in which I want to place buttons next to each other as well as this image. I've only been able to achieve this. This is the XAML code that I am occupying, what I did was put a Grid wit...
asked by 08.10.2017 / 17:11
2
answers

How to insert data from timepicker, textbox and all the contents of a datagridview? visual studio 2015

I have a big question about ... How do I make multiple entries into my database the records that are inside my datagridview and also outside it? for example: A trip of such date that would be a data of the datetimepicker, the name that has th...
asked by 04.10.2017 / 17:27
1
answer

How to create a Switch on / off button in c #

I am trying to create a swtich on / off for a desktop opalance in C # but I do not find any recent documentation of this, only half-finished documents or the examples I have tried have not worked Currently I'm trying to control the Checbox by...
asked by 04.10.2017 / 19:17
3
answers

How to convert a table to an IEnumerable to show it in a Dropdownlistfor

Good morning, I'm learning c # ASP .NET MVC, How can you convert a table to IEnumerable to use it in Dropdownlistfor ?: I have the following model: public class Saleform { public int ID { get; set; } public in...
asked by 10.10.2017 / 00:12
1
answer

Exception from HRESULT: 0x80070002 Visual Studio

Hi, I'm working on Visual Studio and I do not know what I did now that I can not access the controllers of my project, I can run it without problem but when I try to access it the following appears ... Does anyone know what can be d...
asked by 04.01.2018 / 19:41