Questions tagged as 'c#'

2
answers

Auto Publishing Wordpress c #

I want a C # application to post to a WordPress blog. The title of the post would be the value of the variable title and the article would be the variable html . How do I get this? Obs: Console project.     
asked by 08.05.2015 / 21:11
1
answer

How to check enumerator value with [Flags]?

I have my enumerator: [Flags] public enum EConta { Receber = 1, Pagar = 2, Cobrada = 3, Atrazada = 4 } and I have the assignment EConta conta = EConta.Receber | EConta.Pagar; var retorno = EConta.Cobrada How do I compare if...
asked by 21.04.2015 / 16:06
1
answer

Error trying to pass ticket [i] = i;

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Testes { class Program { static void Main(string[] args) {...
asked by 25.05.2015 / 15:42
2
answers

How can I have a Radio Group with 10 radio buttons divided into 2 columns and 5 rows?

How can this be done? I tried with table row , but this takes the properties of radio group . I wanted it to look like this:     
asked by 02.05.2015 / 15:27
1
answer

Serialization of lists in C # classes

Good afternoon guys, I'm doing an NFe project to issue, so I opted, after researching using class serialization to mount the xml. Everything works fine, from a class structure that I set xml amount, but in a certain part I needed to implement li...
asked by 28.05.2015 / 20:10
2
answers

DataGrid show foreign key value instead of ID

I am displaying the data of a table ( TB_LIBERACAO ) in a DataGrid , but this table has 2 foreign keys coming from tables TB_CARROS and TB_MOTORISTAS TB_LIBERACAO idLib idCarro(FK) idMotorista(FK) TB_CARRO idCarro pl...
asked by 06.09.2018 / 18:05
3
answers

Copy value that is enclosed in quotation marks C #

I have a Textbox that is fetching the text from another Form, and now I want to copy a value that is in this Textbox . Attached image with what I want:     
asked by 18.05.2015 / 11:52
1
answer

Regular expression does not validate a password when I just enter numbers

I am using this regular expression to validate my password, the password must have only letters and numbers, must have at least one letter and one number. (Minimum 8 characters). I'm using this expression: [RegularExpression(@"^[A-Za-z0-9]*...
asked by 22.10.2018 / 03:15
1
answer

The calling thread can not access this object because it belongs to a different thread

Follow the code: private async void button_1_Click(object sender, RoutedEventArgs e) { var listenPort = 11000; var listener = new TcpSocketListener(); listener.ConnectionReceived += async (senders, args) => { var...
asked by 17.03.2018 / 00:32
1
answer

Data overlapping the onClick command

Well, I have a small problem with asp.net webforms . And I gave a cool pack. I know the solution to this may be a bit simple, but I'm confused. Follow the code: public partial class Default : System.Web.UI.Page { List<Pessoa>...
asked by 28.10.2014 / 19:13