Questions tagged as 'c#'

0
answers

ProgressRing is not shown

I need to show progressring while running a task, but it does not appear and the screen is frozen until it runs. private async void btn_Criar_Click(object sender, RoutedEventArgs e) { pgr_Carregando.IsActive = true;...
asked by 06.06.2018 / 20:10
1
answer

Convert Time 24 hours to 00 hours

I have an account in int, that I need to return it for hours, and it is working perfectly, the error occurs when the time appears 24, and it should appear 00:00. Here's how I'm doing: string horaStg; decimal valor = int.Parse(item.HoraInicio);...
asked by 06.06.2018 / 15:22
1
answer

My access is denied when executing the following code

private void GerarPDF(string pCaminhoArquivoPDF) { Document doc = new Document(); // Aqui acontece o erro PdfWriter.GetInstance(doc, new FileStream(pCaminhoArquivoPDF,FileMode.Create)); try { Paragraph p = new Paragr...
asked by 30.06.2018 / 20:13
1
answer

How to check if a specific data exists in a multidimensional array C #

Work in a school that makes the control of students' frequency by digital, every time a student "hits" the finger is added to a code to a txt, if the student hit 1 time is recorded entry if he hit 2 Sometimes it is marked input and the output, I...
asked by 29.06.2018 / 21:38
0
answers

Form child gets in front of everything including other windows Windows Forms C #

I need my child forms to be in front of the parent form, up to there blz. Only they stay on top of any other window or program. I would like to know if the child forms are just in front of the parent form and when other windows or programs are o...
asked by 30.06.2018 / 03:32
1
answer

How to get object references in vb.net or C #?

I have the following code: Dim objeto1 as new ClasseTal Dim objeto2 as new SubClasse Dim objeto3 as new SubClasse objeto2.Prop1 = objeto1 objeto3.Prop1 = objeto1 I want to count the reference number of objeto1 , in this case it woul...
asked by 29.06.2018 / 20:29
0
answers

Excel with password for editing

I am building an Excel file where I generate an array of bytes and the UI downloads the file in xlsx format, I need to open this file with password to perform edits, is there a way to do this directly in the byte array? / p>     
asked by 11.06.2018 / 16:40
0
answers

OAuth authentication does not work in azure function

I created a webhost selfhost and I used OAuth to generate an authentication token, it worked as a console application but when I try to create a function in Azure it only returns server error (500) My Startup.cs public void Configuratio...
asked by 11.06.2018 / 20:09
0
answers

Bank Image Download with ASP.NET MVC5

I'm saving images to the database in varbinary format. byte[] arrayImagem = null; using (MemoryStream memoryStream = new MemoryStream()) { novaSolicitacao.Anexos.InputStream.CopyTo(memoryStream); arrayImagem = memoryStream.ToArray();...
asked by 11.06.2018 / 17:12
1
answer

How to define the space that a string will occupy in C # / PDFsharp

I would like to define how far the string will take up space. the values (200,50) refer to the beginning of the text x = 200 y = 50, the other 2 values I do not know for what it is, even doing some tests. textFormatter.DrawString("texto texto...
asked by 27.06.2018 / 15:52