Questions tagged as '.net'

1
answer

Select the Value of a Dictionary in a ComboBox Wpf

I have the following code. ajusteCbb.ItemsSource = new Dictionary<string, string> { { "A", "SI" }, { "C", "NO" } }; ajusteCbb.DisplayMemberPath = "Value"; ajusteCbb.SelectedValuePath = "Key"; and in a Datagrid I have this code <D...
asked by 01.07.2016 / 00:09
0
answers

Report in Crystal Report MVC .Net

I have problems when viewing a crystal reports report using crystalreportviewer done in .net / C #, it shows me the toolbar but it does not bring me the report. Looking below the javascript that generates shows me this this is my code &l...
asked by 23.11.2017 / 22:00
1
answer

Error trying to generate a pdf with DataGridView C # using iTextSharp

I have a problem with the code I am writing to generate a pdf with the data from a DataGridView. After I run the DGV with the MySQL query, and I give the generate button, it throws an error that says: "Object reference not set to an instance of...
asked by 06.10.2018 / 18:14
1
answer

Data type Interval in Oracle with C #

I hope you can help me with my problem which is as follows: I have an application made in C# that connects to a database of Oracle , and in turn in this I have a table with a field INTERVAL DAY(2) TO SECOND(6)" (TIEMPOEJECUCIO...
asked by 14.09.2016 / 22:23
1
answer

Excel cell with several lines from .Net

I am dumping information from a SQL Server table into an Excel file. One of the fields that I overturn is a field of observations that may contain line changes. If I dump the information without more the result is the following: oRng = o...
asked by 08.03.2017 / 12:31
0
answers

Random common.js script error when loading Gmap map into a .NET Web Browser

I detail the scenario to try to locate a solution. I have a Windows application that uses two webbrowser embedded .NETs that load respective Google Map maps and their corresponding bookmarks. The loading operation of the bookmarks is d...
asked by 22.04.2016 / 11:04
2
answers

How can I use the data I get from a texbox in the whole form?

How can I occupy the data I get from a texbox in the whole form if I have to repeat the declaration of a variable in each event of different buttons in C #, for example I have two buttons, but I do not want to declare the variable twice name, ho...
asked by 15.01.2018 / 18:29
3
answers

Problem with Try-Catch

It tells me "use of the unmapped local variable" date "and it does not let me even compile. Should I not if or if I enter the Try and run time maybe give me error? DateTime fecha; try { Console.Write("Fecha de n...
asked by 16.06.2018 / 00:50
1
answer

How to count the times a string is repeated in another string in C #?

I have a string, for example: string cadena = "ABABBA"; and I want to know how many times the letter A is repeated next to the letter B , in the example I put in it I should result in 4 . I had thought to use a for to traverse the...
asked by 02.03.2018 / 20:38
2
answers

migrate from visual studio 2012 to visual studio 2015

Good afternoon in advance, thank you very much for any collaboration, I tell you I had a project in vs2012 and I changed to vs2015 but the only mistake that I get after migration is a problem with ReportViewer Microsoft.Reporting...
asked by 28.10.2016 / 18:22