Questions tagged as '.net'

1
answer

"button" with invisible content [closed]

Is there a way to set a content for a button in WPF, but that it is invisible to the user?     
asked by 14.10.2015 / 18:42
1
answer

How to erase information in DB using DataGridView?

Can anyone tell me what command I should put to delete the database using the selected cell information? I put it like this: SQLcmd.CommandText = ("DELETE FROM usuario WHERE nome = '" & DataGridView3.IsCurrentCellInEditMode & "' ")...
asked by 06.12.2015 / 19:41
1
answer

Using variables from other forms (C #)

I'm learning programming with C #, using visual studio 2013. In this program I have 2 windows. In the first window I have a text box and a button that writes the text to a string and opens the second window. In the second window I only have one...
asked by 06.10.2015 / 12:36
1
answer

IsolatedStorageSetting on Windows Forms?

I'm used to using for Windows Phone, like this: using System.IO.IsolatedStorage; public void putString(string key, string variable) { IsolatedStorageSettings iso = IsolatedStorageSettings.ApplicationSettings; if (iso.Contains(key)) //A...
asked by 19.09.2015 / 21:32
1
answer

nHibernate with more than one database

Hello, I would like to know if it is possible to use nHibernate with more than one database, some tables will be in one bank and others in another. How would I do this? And in entity mappings, how would I report that mapping is from a tabl...
asked by 15.09.2015 / 15:23
1
answer

How do you deactivate a key in a complete Form?

How can I disable the program's TAB or ALT key? Example: Clicking TAB does not make any changes. Is it possible in KeyDown ?     
asked by 31.08.2015 / 01:36
1
answer

Convert String to Monetary Value in ASP.Net MVC

How to convert the result of a multiplication within a string to display as Real? The value of bol.ValorBoleto is loaded a little earlier. Data annotation : [DisplayFormat(ApplyFormatInEditMode = false, DataFormatString =...
asked by 18.08.2015 / 14:38
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

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

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