Questions tagged as 'c#'

1
answer

Android VM - Connection Error

Dear, good morning! I am not getting connection in my android emulator, could someone help me? I'm using VisualStudio Emulator for Android. My project is compiling, and running correctly, but I can not connect, do I need to configure somet...
asked by 28.04.2016 / 14:17
0
answers

Configuring IIS to authenticate using Active Directory

I created a web system using C # and used a routine to authenticate the user by picking up the Active Directory user. But my system is not catching user AD: it is catching the user from the pool of the application. When I run the system locall...
asked by 21.01.2016 / 21:49
1
answer

Consume Web Service in Java

I'm a beginner in C #, my Visual Studio is 2010, my Windows Phone version is 7. I searched the internet and in this version of the "async" command only Visual Studio 12 works up. Do you have any other alternatives? In a C # Desktop applica...
asked by 22.05.2016 / 00:53
1
answer

What Threads do you share when making Http calls?

Problem: I can not log in to a site more than once in%% of different%. My application is Threads . If I open multiple executable , each can login successfully on a Console application , only the first . I believe this e...
asked by 26.05.2016 / 01:38
2
answers

Factorial C # Calculator

I'm building a calculator in C # and I'm having a little problem building the button that calculates the factorial. private void btnfact_Click(object sender, RoutedEventArgs e) { primeiro += double.Parse(janela.Text); //int i = 0;...
asked by 09.08.2016 / 10:51
2
answers

Execute condition (if / else) that is inside a string in C # 4.5 [duplicate]

I have a class that generates csv files from a query, and this file can have multiple templates , some with conditions to display value x or y . These conditions are within a database and when I retrieve this data t...
asked by 29.09.2017 / 22:18
0
answers

How to validate an XML by Schema XSD?

I am trying to validate the values of a XML through a XSD file. I'm trying this way: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(xmlReader); ValidationEventHandler eventHandler = new ValidationEventHandler(ValidationEvent...
asked by 05.06.2017 / 12:32
3
answers

How to convert date in dd / mm / yyyy format?

Once I published my app, I started getting the dates in American format like this: 9/14/2016 12:00:00 AM How to format for dd/MM/yyyy ? I tried convert.ToDateTime() more does not work.     
asked by 14.09.2016 / 18:11
1
answer

Prealoder when requesting dowload

I'm doing a return of a pdf from a Custom ActionResult response.ContentType = "application/pdf"; response.AddHeader("Content-Disposition", "attachment; filename=teste.pdf"); And I would like to know how I could make a preloader...
asked by 16.09.2015 / 19:20
0
answers

ShareStatusTask identify my app on Facebook?

I'm using the code Microsoft.Phone.Tasks.ShareStatusTask status = new Microsoft.Phone.Tasks.ShareStatusTask(); status.Status = "Eu, " + sNome + ", sou doador de órgãos, baixe o app e seja um também: http://www.windowsphone.com/pt-br/store/app/...
asked by 30.08.2015 / 06:05