Questions tagged as '.net'

1
answer

How to convert latitude / longitude to Double in C #

I have a problem, as it has a variable of type string and I need to convert to type double without losing the "dot". Example: string latitude = "-8.709006" when converting is equal to: -8.709006 But until then I have...
asked by 25.02.2015 / 14:35
1
answer

Get location and console size in pixels

Is there any way to get the size and location of System.Console in pixels , not tiers? I've tried this method: 'Para o tamanho: Dim X, Y As Integer X = Console.WindowWidth * 8 Y = Console.WindowHeigth * 12 Dim final As Size = New Size(...
asked by 23.05.2015 / 01:43
1
answer

GUI Applications - Streamlined! As?

Hello, everyone! My mission is to give agility and fluency to a software ... leave it without those constant fights in each For ... For this I created a problem and would like to know if anyone can solve it. The solution will apply to a la...
asked by 26.05.2015 / 21:12
2
answers

Select does not return anything

I have the following method: public DataTable Select(bool all = true, string campos = null) { if (all && campos == null) _sql.Append("SELECT * FROM "); else _sql.Append("SELECT " + campos + " FROM "); _sql.A...
asked by 02.01.2015 / 14:03
1
answer

Multiple config files on different projects ASPNET MVC

I have a problem and maybe someone can help me. I'm working on a ASPNET MVC project so I've structured the solution into multiple projects to break down the different components. In my main project web.config file (for example PR...
asked by 23.01.2015 / 14:51
1
answer

How to observe user inactivity and enable or disable the lock screen in Windows Phone 8.1

How do I disable automatic screen lock on windows phone 8.1? phoneService.UserIdleDetectionMode = IdleDetectionMode.Disabled; Before using the above line, however, it is no longer valid for the new version of Windows Phone.     
asked by 07.08.2014 / 01:18
1
answer

Problem - Linq SQL Server: Query unwanted in the database when assigning value in a derived field of the database

All right people I have the following problem: I have the method below that only has the job of updating a field in the database, the t_sap_log_jobs class that is passed as a parameter was created automatically when LINQ was configured....
asked by 31.07.2014 / 15:18
1
answer

Adding DLL Referenced in a C # Executable

I've developed a console application in C # that makes use of a referenced dll. After doing the batch build and generating the application executable, I tried to run it on a computer that did not have this dll, of course an error occurred. Right...
asked by 08.05.2014 / 22:04
1
answer

Change WebService address at runtime - C #

I'm developing an application that should connect to a number of Web services depending on the user's location. For example :    If the user is in the city " A " he will connect to the Web service: 192.168.1.1:8010 if he goes to...
asked by 19.05.2014 / 16:44
1
answer

Converting a .NET algorithm to JS

Friends, I have a small problem in 'converting' an algorithm. In the algorithm in .net I have the following conditional structure: if (')' == caracter){ String item = pilha.Pop().ToString(); while (!item.Equals("(")){ re...
asked by 05.12.2014 / 14:53