Questions tagged as 'c#'

1
answer

C # Read Balance Weight Toledo Line Prix PS 600

Hello, I'm trying to get the weight of a Toledo Model PS 600 scale. I used the example of the link below to perform the communication: rnmioshi toledo Github So far I can capture the COM port where the balance is connected and open the conn...
asked by 08.01.2018 / 16:39
1
answer

Load image dynamically on a grid?

I have this xaml: <StackLayout Spacing="10" Padding="10" VerticalOptions="Center" Grid.Row="3" Grid.Column="1" > <Image x:Name="MyImage" Source="{local:ImageResource Operacional.Images.images1.png}" > <Image.GestureRe...
asked by 31.01.2018 / 13:45
1
answer

Error opening connection to a SQL Server 2008 R2 database

I have a problem opening a connection to a local database in SQL Server 2008 R2. The opening method that is giving error is as follows: public static SqlConnection AbreConexao() { string path = System.IO.Directory.GetCurrentDirectory();...
asked by 14.12.2016 / 20:35
1
answer

Visual Studio 2017 does not recognize mobile connected in developer mode

After I formatted my Notbook, I installed Visual Studio and when I open my Xamarin Forms projects, Visual Studio is not recognizing my phone. Before I format it was working normally, I installed the drivers, updated the android sdk, but nothi...
asked by 11.07.2017 / 16:46
1
answer

How to return the value of the element using Xpath?

I'm doing a job for college where I need to return the news headlines from G1 - World . I'm using HtmlAgilityPack. As an example, the first news of the site appears in this code snippet after previewing inspecting the element by the browser....
asked by 18.10.2017 / 15:55
2
answers

Textbox multiline printing only last item [closed]

I'm using TextBoxt Multiline to do the "issuing" of the report on the system itself. When printing, however, the following message appears: "System.Windows.Forms.TextBox" and then the given. public Formulário() { InitializeComponent...
asked by 03.08.2018 / 13:35
1
answer

C # problem with MAIN and source

I was doing a program in visual studio using the C # language until this error appeared and I do not know how to solve it: andthecodewasthis Any suggestions for solving this?     
asked by 15.08.2018 / 19:18
1
answer

How to consume web service XML SOAP https with C # .Net Core 2.0?

I made the reference to WSDL by Visual Studio 2007 WCF, and I created a simple class to test the communication, I can not understand what is wrong, I get the error: "Could not establish trust relationship for SSL / TLS secure channel with author...
asked by 07.08.2018 / 19:39
1
answer

Copy content from a folder with all subfolders and files into a new one

I'm having a hard time creating a folder within another folder and moving the content into that new folder. The rule is as follows: I unzipped a .zip file into this directory: C:\Teste_Zip\Destino_Teste\Temp/> . Well if the...
asked by 14.03.2016 / 17:13
3
answers

Generate password hash and save to database [closed]

Can someone give me code that addresses how to create a password hash and save it to the database? It's that I tried to do it, but it's giving a headache, in case someone has already done it, I would greatly appreciate it if it helped me in this...
asked by 11.07.2016 / 09:39