Questions tagged as 'c#'

1
answer

Realm .NET - Create object copy

I'm having problems using Realm in .NET with Xamarin. I can usually add, update, or delete objects from a Realm. But as the pro version .NET does not have a copyFromRealm, here comes my doubt. My method should open the realm, query the obj...
asked by 18.12.2017 / 20:15
0
answers

Move Assembla Project to Visual Studio Team Services

The Assembla has changed prices this year and it will not be sustainable to continue with the service. Is there any way to migrate projects to Visual Studio Team Services without major complications? What procedure should I do?     
asked by 02.01.2018 / 18:05
1
answer

UWP application executing sequences of videos in MediaElement coming from a Liststring

I'm using Media Element in an application UWP to run a sequence of videos, how do I do when one video ends the other runs in sequence? In the code below when the first video of List<string> videos10 ends the other o...
asked by 03.01.2018 / 02:07
1
answer

Api receives date with month and day changed if the parameter is sent by the url

I have an api that receives a date (the date is sent as a string and received as DateTime): [HttpPost("ObterDados")] public JsonResult ObterDados(DateTime data) { //codigo If I make the post with the parameter in url the...
asked by 15.12.2017 / 18:20
2
answers

Accessing components from another Form

I have two Forms in my application. A Form for data from an engine that has the following fields: txtPotencia , txtTensao , and txtCorrente . I would like to access the values entered in these TextBox throu...
asked by 31.01.2017 / 13:54
0
answers

Show values of Multi-parameter Report Viewer

I have a question, how can I display all values recorded in a MultiValue Parameter in Report Viewer (C #), I can display a value of a specific position (Parameters! Test.Value (0)), but I wanted to show all the values being one in each line.   ...
asked by 17.12.2017 / 00:01
1
answer

C # - If in ComboBox Exercise Caelum

Good afternoon, I've been trying to resolve this exercise in Caelum's C # handout for a few hours, but I think it's a long way from solving it. I would like to know how to use an IF within a ComboBox to make it distinguish between a checking acc...
asked by 27.12.2017 / 17:22
2
answers

Accessing variable in another class comes null - C # Visual Studio 2015

Hello, I know it's a beast question, but I'm having trouble accessing a variable from another class. Situation: - I am using a datagrid, which I want to get the value of a column, and transport that value to another class. Script: public...
asked by 27.12.2017 / 18:33
0
answers

Invalid report file path - Crystal - C #

I'm trying to generate a pdf from the crystal report. When I run the code on my machine it works perfectly, since when I go to the server it returns the following error: invalid report file path The error is popping up the moment I run re...
asked by 29.12.2017 / 17:13
1
answer

How to access the main thread from the main thread

I would like to know if it is possible to call a method using a thread from another thread. The reason is that there are methods that can only be called from the main thread, and I need to call them in another thread.     
asked by 28.12.2017 / 22:40