Questions tagged as 'c#'

2
answers

What do I need to program in C #?

I use Delphi and need something similar to program a code like this: link     
asked by 27.02.2015 / 00:44
1
answer

Combo or Dropdownlist display a Text according to its value

I do a search on my DB and bring, say, the number 237. This is the value of my Combo that is equivalent to the text Bradesco S / A. So I would like the Dopdownlist to display this text Bradesco S / A when I pass the value (237). I can not make i...
asked by 30.12.2014 / 13:00
1
answer

Sybase database connection with C #

I have a Sybase database file on my machine, I want to make this database available in my C # application, how do I make this Sybase database file available, and how do I access that database with C #?     
asked by 17.07.2018 / 22:27
1
answer

How to apply regex, using C # in a pdf file? [closed]

private static string BuscaComparacao (string url) { Regex r =new Regex("\S+\D{3}[.]\D{3}\S+\D)"; var result = r.Matches(url); return result[0].ToString(); } The code does not find the data I ha...
asked by 26.07.2018 / 17:57
1
answer

Property HasRows in C #

I'm doing SELECT mysql with inner join within my C # application MySqlCommand _comandoDados = new MySqlCommand(String.Format( "select EMGroot.id, EMGroot.lbs_net, EMGroot.lbs_gross_aai, EMGroot.price_brazi...
asked by 20.07.2018 / 20:20
3
answers

Difference in screen Windows Forms C #

I have a problem with Visual Studio > Windows Forms. When I enable the classic Windows theme and create a project in C # the screen stays within what I want, but when I enable Aero mode, the right side of the screen is misaligned. Just below...
asked by 16.10.2017 / 18:00
1
answer

Writing a line in text file without using repeat instruction, is it possible?

I need to write a text file from a DataSet in C #, so something like: string[] lines = {"First line", "Second line", "Third Line"} using(StreamWriter outputFile = new StreamWriter(docPath)){ foreach(string line in lines){ outputFile....
asked by 09.07.2018 / 04:14
2
answers

Changes Webservice's "Web Reference URL" added by add web reference [closed]

I wonder if it would be possible and how to do this change by picking up the web.config address     
asked by 05.07.2018 / 14:14
2
answers

doubts with linq to sql

Personal I have two tables, sale and sale Items: Sale: [Table("venda")] public class VendaModel { [Key] [Required] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int id_venda { get; set; } public DateTime dt...
asked by 05.07.2018 / 00:40
1
answer

Error occurring

<td> @Html.ActionLink("Editar","EditarPessoa", new { cod=item.Id }) | @Html.ActionLink("Details", "Detalhes", new { cod=item.Id }) | @Html.ActionLink("Deletar","DeletarPessoa", new { cod=item.Id }) </td> public ActionResult E...
asked by 23.06.2018 / 21:45