Questions tagged as 'c#'

1
answer

Communication between ViewModel's: return data to previous screen

I have a A screen that has a text field and a button, this button on the A screen, opens a second screen B . This B screen has another text field to populate and save, when the person clicking save saves the screen closes, and the one...
asked by 02.03.2018 / 15:13
1
answer

Function that receives another function as a parameter in C #

In the Lua language you can create a function that receives another function as an argument, for example: exemplo = function(outrafunction) outrafunction() end exemplo(function print("alguma coisa") end) Is there any way to do this using...
asked by 07.08.2018 / 06:46
1
answer

TextBox mascara value from 2 to 4 decimal places in WPF C #

I would like my TextBox to have the following "mask" When I put two houses after the comma:    0.00 or when I put three:    0.000 or when I put 4:    0.0000 My code in WPF C # is the following: <TextBox x:Name="ValorP...
asked by 15.08.2018 / 21:22
1
answer

Problem with Save image to MySQL database C #

Hello When saving the image, instead of going to the database file with the right size, it goes like this: CodeinsideVisualStudio:privatevoidbutton1_Click_1(objectsender,EventArgse){OpenFileDialogdialog=newOpenFileDialog();dialog.Filter="JPE...
asked by 28.07.2018 / 15:16
2
answers

TextBox changes the value to decimal (EN) when pressing TAB, but I want to leave currency (REAL) field

I have a field <TextBox x:Name="TbTotalICMS" Style="{StaticResource MeuTextBoxValor}" Text="{Binding Vicms}" /> My Vicms is a decimal. When pressing the TAB key, the value is 1.00 (example) it turns 100. For as it is a decimal in Eng...
asked by 06.08.2018 / 14:37
2
answers

Is it possible to force one method to be called by another in a specific one?

I have a parent method that calls a child method, I wish the child method could only be called exclusively by the parent method, would it be possible? Example: public void MetodoPai(){ //codigo MetodoFilho(); //codigo } void M...
asked by 25.04.2018 / 16:28
1
answer

What is the difference between XmlDocument and XElement?

I would like to know the difference of XmlDocument and XElement.     
asked by 19.04.2018 / 23:20
1
answer

How to extract web content (Web scraping) with C #?

Recently I learned how to do web scraping and got it on some sites, but in others I can not. I noticed that in some of those I can not get a "#", what does that mean? I'll give you an example of a site where this happens to me. link Is t...
asked by 21.06.2018 / 20:55
1
answer

Use Signalr

Well I'm starting to venture into Signalr . I've decided to follow this Tutorial . Well after doing all the steps, running the project gives me the following error:    Unhandled exception at line 35, column 13 in   http: // localhos...
asked by 10.12.2014 / 17:51
4
answers

How to debug only one project in Visual Studio

I have six C # WEB projects inside a SOLUTION in Visual Studio 2010, when I run the debug, visual studio launches the six projects at a time, each one in a different process. Does it have to debug just one project or do I have to put each pro...
asked by 22.12.2014 / 13:48