Questions tagged as 'winforms'

2
answers

Context trying to delete 2 times the same record

I'm having a problem, in fact it should be the lack of knowledge even at the time of deleting a record using Entity Framework 6. When I try to delete a record that can not be deleted because it has references, it gives the following error:...
asked by 15.12.2015 / 17:13
1
answer

How to make it redirect

I made a C # application, in addition to performing the basic functions, I want to be able to run with batch scripts, but the problem is that I run Console.WriteLine and it does not write anything in the CMD window. using System; usin...
asked by 17.12.2015 / 12:46
1
answer

___ ___ erkimt manage Multiple WindowsForm SplitContainer ______ qstntxt ___

I have multiple windowsforms inside a SplitContainer, one of them, I have a ListBox.

That is, outside the SplitContainer, on Form1, has button, when I click it, I want to add a text in the ListBox inside the SplitContainer on Form2

When I click the button, nothing happens! < Here is the error.

Form1Load:

%pre%

Button1code(ERRORishere):

%pre%    
______azszpr94312___

Of course it will not add, you are using %code% as if it were a static member, when re-creating the object with %code% will appear the item that you defined. It's like a pre-addition.

To solve this you should create a reference to the created member, follow the example below:

%pre%

To add the item to the ListBox, do the following:

%pre%     

___
I have multiple windowsforms inside a SplitContainer, one of them, I have a ListBox. That is, outside the SplitContainer, on Form1, has button, when I click it, I want to add a text in the ListBox inside the SplitContainer on Form2 When I...
asked by 23.10.2015 / 21:26
1
answer

Data conversion error

I can not open my user control form. private void usuáriosToolStripMenuItem_Click(object sender, EventArgs e) { Usuarios USU = new Usuarios(); sNome_usu = Status_Label_Usuario.Text; USU.iAcesso_Usuario = Convert.ToI...
asked by 07.11.2015 / 12:30
2
answers

Windows Forms and Panels

How do I use a single form to display several screens, such as login, registration, administration, etc.? It is possible to use the panel component, but the rendering of the panel is slow, as well as being unpleasant to develop in this way....
asked by 29.10.2015 / 10:31
2
answers

Filling Table with List

Is there a function in Visual Studio where it is possible to fill a table with values of a List<> without a certain number of positions?     
asked by 25.08.2015 / 20:06
1
answer

Doubt to Load ComboBox from an account with the subaccount

I made a select to fetch an account and load the sub account and would like your opinion to see if this is how it does if it is correct code private void cbbConta_SelectedIndexChanged(object sender, EventArgs e) { PlanoCont...
asked by 20.08.2015 / 15:32
1
answer

When I enter the system Choose a company to work for

Good morning, I need some help from you in my college project. I'm doing an inventory system with 4 layers, I have a form that is a company record where I register the user company that the user wants to work, when I enter the system, I choose t...
asked by 21.04.2015 / 13:20
2
answers

Publish application Windows Form C #

I have an application developed with Windows Form C # + Entity Framework v6.1.3, where I use an existing database. The application works correctly, in Visual Studio 2013, where I'm developing. My App.config has ConnectionStrings...
asked by 08.04.2015 / 19:10
1
answer

Catch the search dataSeller and put in the form product register

I can not get the data from the form Searcher and put on formCadastroProdu My project is in C # Windows Forms in 4 layers. I did so frmCadastroPecasprivatevoidpctLocalizaFornecedor_Click(objectsender,EventArgse){frmPesquisarFornecedorpe...
asked by 24.03.2015 / 15:34