Questions tagged as 'c#'

2
answers

How can I take a break when writing a file on Xamarin Android?

I've been having trouble making a line break. I call my data and in my database there is no line break. I show a little of my code. In this way I show my data. var txtCheckpoint = FindViewById<TextView>(Resource.Id.txtCheckpoint); txtChe...
asked by 30.08.2017 / 17:02
1
answer

How can I delete the blank rows of a File.txt with C # [closed]

My File.txt has this form and I want to delete the blank rows 10203040 F B B B B B A A X A C 10209647 F C A B B B B B A B A 10217686 F B B A A A A B B X B 1022...
asked by 22.11.2017 / 04:54
2
answers

get value from @ Html.DropDownList in actionresult through formcollection MVC

I have an @Html.DropDownList that I filled with a List List with data already defined, the dropdown list is inside a form that is sent to the SaveConfiguration controller, I retrieve the data as a parameter to the FormCollection form controller...
asked by 22.03.2018 / 18:30
1
answer

How to run a thread several times in c #?

Why do I have an exception? Thread hs; hs = new Thread(()=>Playsound(sound)); while (bstate==-1) { t = Int16.Parse(bpm.Text); t = 60000 / t; hs.Start(); cajas[compas-1].Fill = new SolidColorBrush(Colors.White); cajas...
asked by 18.11.2017 / 08:57
1
answer

Tree exercise in C # [closed]

I would like to add functionality to my button, I want that by pressing the button it is added to the tree that has the name of tvwarbol. Would it be something like that? private void button1_Click(object sender, EventArgs e) {...
asked by 28.02.2018 / 17:47
1
answer

What is the regex that the boostrap datatable uses by default?

I would like to know which is the regex that the search box uses in the boostrap datatable, which is by default when we assign it to our table, since I would like to replicate it in a query that will obtain that same information from the table a...
asked by 25.10.2018 / 18:20
1
answer

How to connect to postgresql and MySQL from C # [closed]

Good evening, how can I connect to a database in MySQL and another in postgresql using C #, some examples or links for reading. Thanks     
asked by 10.10.2017 / 03:56
1
answer

Button Remove c # form button

Hi, I want to make the selected rows be eliminated so you look at the interface This is the code I have but it is not private void BtnQuitar_Click(object sender, EventArgs e) { if (DataGridViewSelectionArea.SelectedRows == n...
asked by 02.01.2019 / 22:59
3
answers

I need to change the contents of a richTextBox randomly every time a button is pressed and when I open the page at the beginning

I am trying to make a game in which a richTextBox will have a biblical text and the buttons will have the name of the appointment shown randomly through a List. I have no problems generating the text of the buttons, but how I have to show a text...
asked by 26.10.2016 / 23:57
1
answer

how can I do so that I do not get numbers in my script when I retrieve information? MVC C #

The problem is as follows: I am using mvc in visual study, the problem is when I want to retrieve the information within a script which I do with an @foreach, where the information I send has quotes, which are then they change with numbers, whic...
asked by 21.12.2017 / 05:49