Questions tagged as 'c#'

0
answers

Problem: Could not load file or assembly. Unsupported operation. (Exception from HRESULT: 0x80131515)

Good evening, I have developed a program and need to implement the print PDF functionality. Doing research on the internet found what I need, but there is a problem. When I run the code in a separate console program, it opens the window of...
asked by 12.07.2016 / 00:31
3
answers

How to identify a key in the TextBox? [duplicate]

I would like to create an event that would only be started when the user pressed "Enter" inside the TextBox, but how do I identify when the user pressed this key?     
asked by 11.07.2016 / 16:30
1
answer

Invalid Enumerator when trying to add a filter using WFP by C #

I'm trying to port a c ++ code for C #. My goal is to block a site using WFP. After translating the code, it seems that I made a mistake because when I add a filter I receive the message "An enumerator is not valid" (FWP_E_INVALID_ENUMERATOR)....
asked by 01.06.2016 / 01:20
0
answers

Form creation sometimes stays behind main form

Person, I'm creating my child forms as follows. BuscaUsuario _chld = new BuscaUsuario(); _chld.ShowDialog(); _chld.Dispose(); It turns out that if the user presses alt + tab or for example if I'm debugging and goes to IDE and then I go b...
asked by 31.05.2016 / 20:59
0
answers

Mark PDF text with C #

I have an application where some names in a given PDF file will be searched. When I find the name I must mark with a "mark text" the words found. Does anyone know of any library that does this? I'm trying to find everywhere in the world and n...
asked by 13.06.2016 / 18:23
1
answer

Error of ambiguity after changing resource (ASP.NET)

I'm working on an ASP.NET MVC project for months. It is a system available in English and Portuguese, with English being the default language. I do this through the use of Resources, and it worked fine, see image below. However,nowwhentrying...
asked by 16.06.2016 / 14:02
0
answers

One note .one file does not open on windows phone 8.1 C #

I have a Windows Phone 8.1 app that accesses OneDrive after authentication, I have access to all files / folders and subfolders of the logged in account. I am having an error while trying to open the native one note app after calling my Tas...
asked by 30.06.2016 / 15:41
1
answer

Passing as a parameter a generic type in an attribute in the .NET MVC

In another question I made here I had to modify my authentication class to return the values of the user model and the type of authenticated user, eg admins, users, clients , so I had to implement a generic type of the call, and a new interfac...
asked by 29.06.2016 / 17:18
0
answers

How to create a div dynamically using database data

I have an administration page called ( admin.aspx ) with a table that has data that I will fetch from my SQL Server database. My idea is in this page I select the data that I need and at the click of a button, create a div dynamically in t...
asked by 29.06.2016 / 11:25
0
answers

DXErrorProvider Doubts in use [closed]

How are you? I'm starting to use the DevExpress components, and I'd like to implement the DXerrorProvider, which in my case, if the value of the text box is null, or empty, the error icon would appear next. Then I logged into the DevExpres...
asked by 30.06.2016 / 18:25