Questions tagged as 'c#'

2
answers

Days Count of a date [closed]

I needed this parameter to count the days until the date that I type for example (12/31/2016) as shown in the attached image, but it is returning only the number of days it was entered in the 31 day case and not the total days until that date wh...
asked by 15.09.2017 / 23:47
2
answers

Regex | Catch separate group [closed]

This tag repeats changing the content and would like to know if you can get each content separately TextBox TXTTESTE = new TextBox(); TextBox TXTTESTEDOIS = new TextBox(); TextBox TXTTESTETRES = new TextBox(); ListBox LBTESTE =...
asked by 15.04.2014 / 22:29
1
answer

Interface implementation error in WCF

I am making an example using WCF and it has generated an error and I am not able to figure out what could be wrong. Error message:    WCFService.Service1 does not implement interface member   WCFService.IService1.Find People ().   WCFServi...
asked by 10.10.2014 / 17:08
2
answers

Add values to a list C #

Hello! I am reading values from a table and inserting them into a list. What I have is this: Expiração.Add(rdr["Name" + "Address"].ToString()); Expiração.Add(rdr["Address"].ToString()); Expiração.Add(rdr["PostalCode"].ToString()); Expiração.Ad...
asked by 16.06.2017 / 11:06
1
answer

Get position prefab and compare with other prefab within a grid? Unity 3D

I'm developing a tetris-style game, but geared towards chemistry. Instead of missing a complete line and punctuating, the user needs to form a molecule. For this, each element (H and C) is a different prefab. With this I need to identify if the...
asked by 05.04.2016 / 19:52
2
answers

Validation of WebForms fields

I am setting up a registration page with webforms , I need to do the field validations, but I do not know if it is better to do it by the% method of the record button > or if there is some way to call a onclick function to validat...
asked by 21.03.2016 / 18:16
1
answer

How to create DetachedCriteria criteria for a field in a join table?

First time I move with this and I'm having trouble setting up the query properly. Here is my code done the wrong way, so it is not obeying the conditions: public IList<Ficha> ObterFichas() { DetachedCriteria criteria = Det...
asked by 07.05.2014 / 19:38
2
answers

Increase ViewBag in .cshtml

I need to increment my ViewBag on my page .cshtml , for my PartialView in my Controller I initiate it: ViewBag.count = 0 In my page .cshtml I need to increase: example : @{ for (int i = 0; i < 10...
asked by 22.12.2015 / 18:17
1
answer

Convert AutoHotkey Script to C # or VB6

I would like to convert the following script done with AutoHokey : DllCall("shdocvw\SetShellOfflineState", "int", False) With this script I can "get" the Internet Explorer of the offline mode without user i...
asked by 23.02.2016 / 16:46
1
answer

Help to know what's wrong [closed]

//Função para permitir somente números e ponto private void ApenasValorNumerico(object sender, KeyEventArgs e) { TextBox txt = (TextBox)sender; if (e.Key != Key.Back) { if (Convert.ToChar(e.Key) == '.') e.Handled =...
asked by 16.01.2016 / 03:37