Questions tagged as '.net'

2
answers

Recover External IP without third-party services

I have a WPF application. I need to know the external IP of the machine that is running this application. I found some tutorials that teach to do this through the method DownloadString() of class WebClient consuming some service...
asked by 18.11.2016 / 19:33
4
answers

TextBox accept numbers and commas

I need a textBox accept only numbers and commas. To accept numbers I'm doing this: private void textbox11_num(object sender, KeyPressEventArgs e) { if (!char.IsDigit(e.KeyChar)) { e.Handled = true;...
asked by 30.08.2016 / 13:18
2
answers

Application Server

The client does not have a server (Windows Server or Linux) and does not want to host the system in a data center or in clouds for example, and wants to use the system on an intranet. At the moment 3 employees will use the system being deve...
asked by 29.09.2016 / 13:20
3
answers

Media Player Classic libraries in my Windows Form project

I'm developing an application that will work as a player, but the videos inserted in my software will be of several different formats: avi, mp4, flv and etc ... for that reason I do not want to use windows media player, something more complete l...
asked by 11.03.2014 / 21:26
3
answers

Call a method automatically via a class class in .NET

I created a partial class for the model users where I implemented some custom functions, such as a function that takes the first and last name assigned and generates a handle , see example below: namespace E_Learning.Mode...
asked by 04.05.2016 / 17:13
3
answers

Can not implicitly convert type 'object' to 'int'. An explicit conversion exists (are you missing a cast?)

I'm trying to develop code in my game but I'm having this error. ... case "cpsuser": Console.Write("Digite o apelido do usuário: "); string Nickname = Console.ReadLine(); Console.Write("Digite a quantidade de Cupons"); stri...
asked by 18.05.2016 / 16:26
2
answers

Redeem code for an executable program?

I created a program to present in college, but due to problems in my HD, I lost his code and just got the executable I created to present it. Unfortunately, I also need the code and need to know if it is possible to redeem without having to crea...
asked by 17.07.2016 / 22:44
2
answers

Number of variable parameters in C #

I know you can do this. But I can not seem to find it. How do I get a function to accept a variable number of parameters of the same type, similar to an array? So I can simply call it like this: UIMostra("Localização", "Informações Gerai...
asked by 07.02.2014 / 18:58
4
answers

ObjectCache to make a variable available to all users

I have an application in ASP.NET and would like to cache all users as if the variable were in the pool application and everyone had access, something other than the session that makes the section variable for each user. ObjectCache...
asked by 08.04.2015 / 15:47
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