I can not complete this list, as it is:
foreach (var item in text)
{
string[] linha = item.Split('\n');
foreach (var i in linha)
{
string nova_string = i.Substring...
I have a screen with 25 buttons and would like to interact with the buttons through the code.
For example, a number is generated using the Random function:
Random rdn = new Random();
numero = rdn.Next(0,25);
Let's say the result w...
How can I get the textbox inside a For:
I have a For that runs 20 times and I have 20 textboxes on my screen, I would like to know how to get all textboxes containing name get the text and play in an array.
I have a customer registration system and am trying to add products to registered customers. For the list of the cadastre I have the following:
public class Cliente
{
public string Nome { get; set; }
public string CPF { get; set; }...
I need to update to a table in the database using entityFramework,
because when I update a value of a field and I send save, it gives error.
Please someone have a way to solve this ??
grateful
usuarioVM.ContatoUsuarios = ContatoUsuari...
I'm trying to do something that gives me output like this:
[
{
"Nome": "João",
"Comprou": [
"Carro": "Sedan", "Preco": "12000",
"Moto": "Honda", "Preco": "8000"...
In a Windows Form Application I have a List Box that is populated from a list of IP's. It works like this: there is a text file ( config.eep ) that contains a series of IP's, at the press of a button to update the List Box, a loop is cal...
How to move an image into a form windows form.
I used the following code:
private void button1_Click(object sender, EventArgs e)
{
int tamanhoFundo = picFundo.Width;
int x = myPic.Location.X;
int y = myPic.Location.Y;
while...
I'm creating a restfull application that uses the Newtonsoft library to send information through controllers . In my application, I have numerous classes like for example the user:
public class UsuarioModel
{
public int Id { get; set;...
Win32Exception (0x80004005):
The system can not find the file specified in System.Diagnostics.Process.StartWithCreateProcess (ProcessStartInfo startInfo)
When trying to run a newly published program I came across this error,...