Questions tagged as 'c#'

1
answer

How to create checkbox dynamically with windows forms?

I have a list that returns from the Database and for every record I need to create a% of dynamic form , I did a search and found some examples for WebForms and I need an example for Windows Forms It would be something like this, Example:...
asked by 13.02.2018 / 01:22
0
answers

Error creating installer by Visual Studio 2015

Good evening guys, I'm creating an installer for an application that uses SQLite database, at the time of compiling the installer, it displays a warning stating that SQL Server is needed with some DLL's, I'm not understanding what's going on .....
asked by 13.02.2018 / 03:17
1
answer

Sending file via FTP in C #, URI error

I'm trying to send a file via ftp using the class below: public static void EnviarArquivoFTP(string arquivo, string url, string usuario, string senha) { try { FileInfo arquivoInfo = new FileInfo(arquivo); FtpWebRequest...
asked by 11.02.2018 / 21:04
1
answer

SubmitChanges () does not update data in Linq

internal bool AlterarCargo(string login, string Categoria) { db.Log = Console.Out; //tentei ativar para ver se encontrava o erro mas não ajudou nada. var categoria = from x in db.Categorias where x.Categorias == Catego...
asked by 12.02.2018 / 12:59
1
answer

Mask for input field of varied size with windows forms

How to make an email mask in a Windows Forms application? I'm using the MaskedTextBox to validate fixed-length fields, for example: zip and CPF the problem is when the mascara is of varying size eg email ?     
asked by 12.02.2018 / 13:50
0
answers

TreeViewItem and HierarchicalDataTemplate

Is it possible to use HierarchicalDataTemplate of a TreeView per Attribute and not by Type? I explain: <TreeView x:Name="tv" > <TreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type local:MeuTipo}" > <Bord...
asked by 14.02.2018 / 21:01
1
answer

Create a list and insert the worksheet data into the database when importing

I have a protected void importar_Click(object sender, EventArgs e) method and inside it I check if the file has been selected, and it validates the file extension. This system is a file import system from an excel spreadsheet, which saves...
asked by 09.02.2018 / 16:51
0
answers

How to do a query using Oracle.Managed.DataAccess in C #

I have the following method in C # public static ProdutividadeBean GetProdutividade() { Console.WriteLine(CairuUtils.UserContext.getCodUsuario()); String strConnection = "Data Source=(DESCRIPTION=(ADDRESS=(PROTO...
asked by 14.02.2018 / 21:35
1
answer

Read download data using ProgressChanged BackgroundWorker

Okay? I'm very new to programming, I got a project from a launcher with autoupdate ready and just edited a few things. It basically downloads the updates of a game. I already moved with other projects before they used only the WebClient to do...
asked by 19.02.2018 / 03:17
0
answers

How to avoid possible incompatibility in Windows

Good morning, Is there any choice to make in creating an application so that it is compatible with the versions of windows 7, 8 and 10? I'm making 32Bits today, is that enough?     
asked by 22.02.2018 / 14:20