Questions tagged as 'c#'

1
answer

How to change Text property of a Button within a for

I am having a question in ASP.NET, I am creating a loop of repetition inside the HTML so that 60 buttons appear, each with a different number in the Text, going from 0 to 59, and then I need to get that text and put it in a textbox. I was doing...
asked by 04.03.2017 / 20:56
1
answer

Switching between pages [Page Class] in an application

I'm searching for examples of browsing between pages in a desktop application. Let's assume that navigation is done from a ListBox always visible in the Ui. Most examples do something like this to switch to a particular page: private void myLi...
asked by 05.03.2017 / 13:13
2
answers

Split String Html

Personal I have an HTML with the following code: <div class="page"> ...Conteúdo1 </div> <div class="page"> ...Conteúdo2 </div> <div class="page"> ...Conteúdo3 </div> The "page" class it creates a backgr...
asked by 17.03.2017 / 14:31
0
answers

Receiving HEX Via TCP

I need to convert a string that has been converted to HEX and sent via TCP to string. I tried the 2 forms below and I only get illegible string: public async void HandleConnections(TcpClient client) { using (var networkStream = client.Get...
asked by 02.03.2017 / 17:19
1
answer

OpcNetApi performs faster reading while MarikonOPC Explorer is open

My application performs the reading of 24 tags from a localhost RsLinx Classic server. However, I noticed that reading the tags is faster when the MatrikonOPC Explorer software is running and reading the same tags from my application. When...
asked by 27.02.2017 / 18:09
0
answers

Start Async function

Good morning, I do not have much knowledge about async, and maybe someone could help me regarding this: public async Task<ActionResult> IndexAsync(CancellationToken cancellationToken) { var result = await new AuthorizationCod...
asked by 03.04.2017 / 15:31
0
answers

WebService with generic contract interface

I'm trying to host a Web Service in a Windows service. And when setting serviceModel to App.config I'm getting the following editor error warning: TheWebServiceisaprojectoftypeBibliotecadeServiçodoWCFandtheprojectthatwillhostth...
asked by 24.02.2017 / 22:13
0
answers

Send an Enter command using the SendMessage or PostMessage DLL

I am trying to send an enter command using c #, I can write to another process using this dll, but when I am trying to send the enter command it is written the following "{ENTER}" ... [DllImport("user32.dll", CharSet = CharSet.Auto)] publi...
asked by 25.02.2017 / 17:42
0
answers

Fill combobox with SQL Server Compact data

I need to populate a combobox with data from a SQL Server Compact column, the code I have has not worked. Class Servidor.cs : public DataTable Load(string sql) { Servidor objSqlCeServerDAL = Servidor.GetInstance(connString...
asked by 28.02.2017 / 12:40
1
answer

Edit word file using C # and replace

I'm developing a C # application that needs to manipulate files in word, I can write and read normally but I'm having difficulty formatting the text, I need to insert an array with some information but word concatenates all the text, as I break...
asked by 28.02.2017 / 16:35