Questions tagged as 'c#'

1
answer

Recognition and Pause Console

Good morning. I have a console application made in C # for speech recognition with the class System.Speech.Recognition that recognizes the audio and writes it in a document called tub.txt. Here the code: using System; using System.Colle...
asked by 03.09.2017 / 18:08
1
answer

Visual Studio Installer Projects with PostgreSQL

I am starting a Windows Form C # project, a commercial application that the user downloads, installs and uses, without complications. Is it possible to configure Visual Studio Installer Projects to install together PostgreSQL without the user no...
asked by 10.08.2017 / 05:47
1
answer

convert a saved image to byte in an itextsharp image to display in PDF C #

I need to convert a saved image into a byte in the database (SQL) to be able to print it to a pdf with itextsharp In this code I call the method where the byte of the database is consulted. string imgByte = obtenerByteImagen (codigo, codigo...
asked by 31.01.2018 / 18:54
1
answer

How to load several assembly in c # and invoke them

How can I load several assembly and use them? Since when I charge one by means of: var assemblyBytes = File.ReadAllBytes("ReflectionAssemblyLoadTarget.exe"); var loadMethod = typeof(Assembly).GetMethod("Load", new Type[] { typeof(byte[]) }); v...
asked by 04.06.2017 / 00:41
1
answer

Configure error pages from web.config or IIS with a subdomain

I can not show my error page when in url I have a subdomain and this page does not exist. In the configuration of my web.config I have the following: <system.web> <customErrors defaultRedirect="~/ErrorPag/Error500"...
asked by 15.05.2017 / 22:39
2
answers

Fill selectoption with titles stored in a database

I have a <select> and I want it to show titles that are stored in a database. I have found several forms but none has been useful. If someone can guide me, I would appreciate it: D This is what I have in my application of c # &...
asked by 25.05.2017 / 16:56
2
answers

Read HTML from a WebBrowser

I have a Form with a WebBrowser, two text boxes (1 and 2) and a button. In the text box 1 I enter a URL, press the button and execute: private void button1_Click(object sender, EventArgs e) { Uri myUri = new Uri(textBox1.Text); webBrow...
asked by 04.02.2017 / 13:48
2
answers

colspan does not work on the Datatable in C #

For example, I have a datatable: <script type="text/javascript" class="init"> $(document).ready(function () { $('#table_1').DataTable( ); }); </script> <table id="table_1" class="table table-striped table-bordered" > &...
asked by 26.09.2016 / 05:31
1
answer

Hosting Web Services

I am trying to host a web services in a hosting that I hired. I use it for login, and just validate username and password From Visual Studio I created an empty web project. I added a file .asmx , and when I publish it I upload WS.asm...
asked by 01.09.2016 / 17:59
2
answers

Convert .bat to .exe in C #

I have an application in c # that creates a% % co that prints "Hello World". I want to know how to convert this file .bat to .bat from my own application, without using other software. In case this is not possible, how to make...
asked by 10.09.2016 / 10:25