Questions tagged as 'c#'

1
answer

Sort tree view nodes

In my tree view I have several child nodes. All nodes are created with numbers because they identify a different file and are composed of the date. How could I order these nodes numerically? That is, type: Raiz 1 2 3 4 A...
asked by 19.11.2015 / 17:00
1
answer

Update in database in Visual Studio

Could you tell me where the error is in this little bit of code I am creating for a budget program with a database with 4 tables (only the last cmd7 object is not accepted in the build): OleDbCommand cmd1 = new OleDbCommand("INSERT into Client...
asked by 19.11.2015 / 01:25
1
answer

Get Type from a class without instantiating it

I need to get the Type of a class without instantiating it, I tried to do this: variavelQualquer.Type = new ClasseA().Type; // Type é uma variável pública que guarda o valor do método GetType() But so an instance is still created (se...
asked by 18.07.2015 / 02:44
1
answer

Query with query using LINQ and NHibernate

I need help with a query that you should look for:    PK_PARENT, PAPER_NAME, {FILE_NAME, FILE_NAME2, ..., FILE_NAME *} For the search I've tried to search some ways like: var listaPai = (from parent in session.Query<Parent>() sele...
asked by 24.09.2015 / 21:18
1
answer

Search in the ComboBox only items that match the digits

In a User Registration Form, I have a% c_of% Civil Status Register (which loads the data from a SQL table), when writing to combobox the system needs to search the data and only present the ones that match with the typed one. For examp...
asked by 25.09.2015 / 16:39
1
answer

How to convert Json to Object where column name is a variable number using HttpResponseMessage

I have the following Json: {"video":{"duration":"23:16","views":"2358","video_id":"1235288","rating":"5.00","ratings":"3","title":"titulo do video","url":"urldovideo","default_thumb":"urlaqui","thumb":"outra url aqui","publish_date":"2015-08-2...
asked by 24.09.2015 / 20:41
1
answer

Dependent executable files available to the user

I have a problem with my setup of Visual Studio 2010, I made an application that form principal has several dependent forms and when it generates its setup and installs it in the installation folder executable files are available...
asked by 31.07.2015 / 11:29
1
answer

C # How to get the length of an MP3 that is in an HTTP address

I need to get the length information of MP3s that are on an HTTP server using the C # language. I've tried TagLib # and NAudio, without success.     
asked by 21.10.2015 / 18:49
1
answer

Abstraction of code with several Replaces

I have this code block: xml = xml.Replace("<html>", ""); xml = xml.Replace("<head>", ""); xml = xml.Replace("</head>", ""); xml = xml.Replace("<body>", "<certidoes>"); xml...
asked by 15.07.2015 / 14:51
1
answer

Error even with click method

Please can anyone help me with a annoying ASP.NET error? Next ... I have a button: <asp:Button ID="cadastra" CssClass="btn btn-success btn-lg" runat="server" Text="Cadastrar Cliente" onclick="cadastra_Click1" /> And I have the method...
asked by 15.07.2015 / 21:02