Questions tagged as 'c#'

1
answer

What is the error in the conditional? [closed]

What is the error in the conditional below and how to solve it? private void Botão_Click(object sender, EventArgs e) { if(Pbox.Show();) Pbox.Hide(); else(Pbox.Hide();) Pbox.Show(); } private void Pbox_Click(object send...
asked by 25.05.2017 / 10:30
3
answers

How would the conversion of this algorithm from c to c #?

How can I convert this algorithm from c to c #? int main () { char nome[50]; float LIM=20, soma=0.0, media, mediaTurma; float a, b, c, d, e, f, g, h, i, j; int x, y; for (x=0; x<=LIM;x++){...
asked by 17.06.2017 / 01:35
1
answer

Logging into Site via C #

I'm developing a C # application and need to do the following: I need to initially enter a site on a specific page. However it is necessary to start a session, do not just put the link directly from the login page. You must enter the Home pag...
asked by 27.06.2017 / 21:41
1
answer

Substring after character C # [closed]

Good Afternoon string nr = ABC:1 I would like to get the number after ":", how would you do it? nr = nr.substring(...); Expected result: for nr = ABC:50 nr = 50; for nr = LKfasEWF:5039 nr = 5039     
asked by 26.10.2018 / 20:56
1
answer

Interop.word service

Good afternoon, I'm using microsoft.office.interop.word to convert pdf documents to pdf in WCF, however the only interopr to run WCF is online only interopr does not work, where it is necessary to restart the WCF service for it works again. D...
asked by 20.09.2017 / 22:58
1
answer

How and what better way to calculate a net value [closed]

These days I came across a problem that I can not solve and I do not know much where it starts. I have these 4 fields in my system, where, if the user infuses the percentage discount, the system automatically shows to the user, in the f...
asked by 01.09.2017 / 22:39
1
answer

Complicated program [closed]

I'm already trying to make a program that does the following: Ask a user to type a number of numbers and then to enter the number of numbers that he wants to have in the combination and then the program prints the combinations and the quantities...
asked by 15.05.2016 / 19:49
2
answers

how to send input value to control using asp.net querystring? [closed]

I have this code in View @using (Html.BeginForm("VisualizaJogoParaExclusao", "Relatorios", FormMethod.Post)) { <div class="row"> <div class="span12"> <input class="form-control input-...
asked by 31.12.2015 / 01:46
1
answer

Turning a string into json

I need to mount this json from a string and pass it as a parameter: I did this: string s = "{\"Matriz\":12, \"Filial\":21}"; In the click of my button I have this: private void Click_Service(object sender, EventArgs e) {...
asked by 11.01.2018 / 17:27
1
answer

Adding the items in an array automatically [closed]

I have these values: x = 5; long[] b = new long[]{5,1,2,3}; I need to make a program that adds the items in the b array so that the result is always equal to 5 (x). You can repeat the items, type: [1,1,1,1,1] or [5] or [2,3] or [1,1,3] o...
asked by 07.05.2018 / 21:37