Questions tagged as 'c#'

1
answer

Problems with passing values asp.net C #

I have a problem, when I assign the return from query to a variable of type object it passes as null . I have other identical methods and they work right, only the one that is not happening the right value. I was able to see...
asked by 03.06.2015 / 21:04
1
answer

Counting and accessing checked checkboxes

I need to count checked checkboxes that are in a panel and are horizontal. It's Windows form, C #. I could not format a listbox for horizontal, so it's in a panel myself. But I would like to count them and access them with a bond. I tried concat...
asked by 04.06.2015 / 22:08
1
answer

How do you compare the last character of a string with some letter or accent

I need to compare the last letter of a String with an interrogation accent. I've already done it and the code works, except that I'm picking up the last letter with Substring , using Length and that's ugly code. I want to know...
asked by 03.12.2015 / 15:00
1
answer

How do I get Text from a TextBox on a Second Form and assign it to a String in the main form?

Class class class class value in String keySymmetric of class ACEcrypt. strong> But I do not know how to receive and cast: ( Form class to enter password. public partial class Senha : Form { string key; public Senha()...
asked by 07.12.2015 / 10:28
1
answer

MessageBox.Show error dialogresult

I do not know what I did but the error:    Error 4 A using namespace directive can only be applied to namespaces;   'System.Windows.Forms.MessageBoxIcon' is a type not a   namespace C: \ Users \ Guilherme \ Documents \ PanelX \ PanelX \ Form1...
asked by 07.09.2015 / 06:18
1
answer

Order in class to Serialize Object C #

I'm working on an NFe project, and I opted to use serialization of a class based on the xml structure I want. I implemented the class, everything worked as expected, root, nodes etc, however I'm having a problem, regarding ordering my elements i...
asked by 22.04.2015 / 22:52
1
answer

Problem with catch in MySQL connection c #

Hello, I'm a beginner in programming and I'm having trouble connecting MySQL in C #, where the code does not check and goes into the catch action. Here is the code: conexaoDataSet = new DataSet(); conexao = new MySqlConnection("SER...
asked by 25.04.2015 / 17:30
1
answer

Passing HTML Page Parameters to ASP.NET

I have an asp.net page which I need to get parameters from an HTML template . I'm trying the way below but I can not get the values. Here is my code: HTML - Template <form method="post" action="http://localhost:61712/Default.aspx">...
asked by 01.07.2015 / 16:32
2
answers

Disable ToolStripButton in form

I need to do a check and if it is true , the button is still enabled, if it is false , the button should be disabled ... How could I do this? Until now I only have the if, because I do not know how to do this: if(true) {...
asked by 30.06.2015 / 17:51
1
answer

Multiple modal bootstrap returning always the same content

I'm developing an asp.net mvc application, in one of the pages of the site I call several modals of the bootstrap one on top of the other, however, when already has a modal open the new appears with the same content as the old, follows code snip...
asked by 03.07.2015 / 03:04