Questions tagged as '.net'

1
answer

Create panel with center at user click point

I need to create a Panel in a Form Getting more or less like this: When you click the mouse on Form create Panel taking the location of the click and create the Panel centralized. I did so: Panel...
asked by 25.11.2015 / 18:13
1
answer

Source not recognized in PDF generation

I'm using the ITextSharp library to create PDF's and I'm having problems with the source of the document, I have the error "Font is an ambiguous", I've looked in several places and all the examples end up giving the same error, fix this or do yo...
asked by 11.06.2016 / 20:47
2
answers

Does user need to have .NET if I compile using Mono?

Will the user using my application need to have the .NET version on the PC? I saw some topics on the internet talking about this Mono advantage.     
asked by 18.06.2016 / 04:15
1
answer

How do I go through all the controls in a window in WPF?

Is there any way I can go through all the controls in a window and disable them? For example, make a foreach that disables one by one of the controls. Something like below, only for WPF, not WinForms. private void HabilitarControles(boo...
asked by 31.08.2015 / 14:40
1
answer

Use / Escape @ in CSHTML view

I'm having a jQuery code on the CSHTML page and I'm having trouble validating the email with a regular expression since @ is a Razor command in .NET. How do I resolve this problem? Follow the script: $("#formEsqueceuSenha").submit(fu...
asked by 11.09.2015 / 14:55
2
answers

Field format for saving time

What field should I use in SQL Server to save a running time? Example: 2Days 23H 47Min 00Sec. If you have an example with Fluent API it will help a lot.     
asked by 23.06.2016 / 04:20
1
answer

Html.BeginForm () Do not submit model, ModelState.IsValid = False

Next I'm with the Html.BeginForm () where the same submits the model but when it goes to the same control it finds the ModelState.IsValid false. Follows Template, Control and BeginForm Model: [Table("TB_Estado")] public class Estado { [Key...
asked by 09.12.2015 / 20:59
2
answers

Pick values from a dynamic list

I have a list of type dynamic : private List<dynamic> listServicos = new List<dynamic>(); And it's being populated like this: listServicos.Add(new { Codigo = txtCodServico.Text, Servico = txtNomeServico.Text, Quantidade...
asked by 28.12.2015 / 16:37
1
answer

How to Duplicate Values from an ArrayList

I would like to know how I can separate values that show duplicity, an example: I have a% Variable with% set to FormaPagto , In this variable I have 6 data:    0 - Money 1 - Debt 2 - Debt 3 - Money 4 - Money 5 -   Check What I...
asked by 28.05.2015 / 15:42
1
answer

How to write bit information to SQL Server database?

I am developing a registry system in VB and need help writing the CheckBox information to the SQL Server database. The column is in bit in the database, I do not know how to pass the parameter so that the user's choice is saved...
asked by 25.09.2015 / 16:52