Questions tagged as '.net'

1
answer

Error System.IO.FileNotFoundException

I have a problem with my project, giving System.IO.FileNotFoundException error. I imported 2 Dll's into my project, but it appears as if it was not. Doesanyoneknowwhatitcanbe?     
asked by 07.04.2017 / 15:48
1
answer

How to create file with date in iso string in name?

I'm having trouble creating a file with the following template: 2017-01-17T09:42:15.3419026-02:00_teste.txt When I run the application to create, this message appears: The given path format is not supported. var dataHora = DateTimeOffs...
asked by 17.01.2017 / 12:46
1
answer

.NET app can only access Web service with Fiddler on

I have a client application developed in .NET, I am not able to call a WS through the URL that was passed by my provider. I ran the test using SOAP UI and it worked perfectly, I received the answer without any problems, but my application only w...
asked by 16.12.2016 / 19:01
1
answer

I would like to verify in the customer registry if the code you entered already exists. How do I do?

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtFinal { class Program { struct Cliente { public int cod_cli; public...
asked by 25.08.2016 / 05:41
1
answer

Reduce code that references the same object?

Here the code, would you have any way to reduce it? (For learning purposes only) worksheet.Row(1).Style.Font.FontColor = ClosedXML.Excel.XLColor.White; worksheet.Row(1).Style.Font.Bold = true; worksheet.Row(1).Style.Alignment.SetHorizontal(XLA...
asked by 17.10.2016 / 01:19
1
answer

Split List with more than a thousand lines - .NET

I'm getting an error while performing this select sb = New StringBuilder sb.Append(" SELECT ") sb.Append(" SE.NU_SERIE_NF, ") sb.Append(" SE.NU_NF, ") sb.Append(" SE.DH_ENTREGA, ") sb.Append(" SE.DH_IMPORTACAO, ") sb.Append(" SE.ARMAZEM, ") s...
asked by 15.08.2016 / 16:44
1
answer

Draw outside the area of a form

Using C # with the Windows Forms Application project type is it possible to draw things out of the form? I would like to draw a mouse-stretchable and repositionable square, where should I start? Here's an example image of what I'm looking for...
asked by 02.08.2016 / 11:01
1
answer

Performing Submit Form using C #

The following HTML login form is available <form action="/Home/Login?ReturnUrl=%2f" method="post"> <input name="__RequestVerificationToken" type="hidden" value="W3ndyLx5kkFIy_QKjOGhEYQoHFtF4kIMFxLIG42t2r5tJJKwnzCy1iMmLw8SFH6yIm...
asked by 15.09.2016 / 14:46
1
answer

GetWindowText in C #

How can I use the GetWindowText function in C #? I need to convert this function into delphi for C # function FindWindowExt(partialTitle: string): HWND; var hWndTemp: hWnd; iLenText: Integer; cTitletemp: array [0..254] of Char; sTitleT...
asked by 21.10.2016 / 13:44
1
answer

ActionResult and async Method Using FastMapper, Error in TypeAdpter

I have the following problem with FastMapper. When implementing an ActionResult async when using the TypeAdapt it can not perform the asynchronous conversion, would anyone know how to do the conversion with FastMapper? Remember, when I do the co...
asked by 30.06.2016 / 16:59