Questions tagged as 'c#'

0
answers

c # Win32 api messages

I need to make an application of c # that activates an ok button in another different application. I do not have the code of the other one to plicacion and the sendkey does not work to me. I wanted to do it with win32 api. As in this example but...
asked by 03.02.2018 / 01:12
1
answer

Complex querys with repository template

I am building a project with the Web API and for this I am building on the Onion architecture. To separate the layers I am using the Repository Pattern (Repository Pattern) for accessing data and one layer above is the services layer. In t...
asked by 31.01.2018 / 02:06
0
answers

Unique and permanent ID for each USB device with C #

Using WMI I have found an ID that meets my expectations and is in Win32_USBHub . The problem is that I need to somehow associate it with Win32_DiskDrive or Win32_LogicalDisk ,. If this is not possible, there must be anothe...
asked by 28.01.2018 / 14:14
1
answer

Launch event in the form from a user control

I have a form that will contain several copies of a user control, what I want to do is that when within one of those user controls a button is clicked, an event of the form that contains it is launched. I thought about saving a reference of t...
asked by 06.02.2018 / 15:35
2
answers

because the onClick method of a button control does not work?

I have a button that when pressing shows a modal and loads the data of a query but when pressing it does not react the method in the code of C # when doing tests it never enters the method. <asp:Button ID="btnaddRequest" CssClass="btn btn-p...
asked by 09.02.2018 / 19:41
0
answers

WPF WebBrowser Control pop-ups

I have a project in WPF (Windows Presentation Foundation). In a WebBrowser within a Window I show a web page that contains some links that trigger pop-ups, then: 1) How to enable by default the option to allow all pop-ups? 2) How to displa...
asked by 08.02.2018 / 16:13
3
answers

Like: validate through textBox the existence of a record in the database. C #

I would like to know: How to validate from a textBox the existence of a record stored in the database? That is, write in the textBox the name of the record and when you press the "Search" button, I get a message that tells me that the reco...
asked by 08.02.2018 / 15:04
0
answers

problem receiving string from C # calling an Oracle procedure with OUT parameter

Good morning. I have the problem that since I call a procedure in Oracle that returns one or more variables in out but if the text is 1234, it returns 12, for as long as I return the double value, that is, 1234 || 1234, but how can I fix it so t...
asked by 08.02.2018 / 15:01
0
answers

Twilio send Mp3 url

I have a problem in c # I want to send the url of the file that should be reproduced in the calls that will be made to people currently works like this. Twilight Bins <?xml version="1.0" encoding="UTF-8"?> <Response> <Sa...
asked by 06.02.2018 / 05:34
0
answers

errors when using downloadata to download a file

Hello, I am trying to download a text file using download data, the code that I try is such that: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Reflection; using System.Secur...
asked by 06.02.2018 / 04:35