Questions tagged as 'windows-forms'

1
answer

Store Data from a txt file and save to a database with VB

Well I told you that I'm doing extracting the data from a txt file and storing it in a table for them I'm using the tools of: Sql server Visual Basic Window Form Inside my table you only have these fields: Id int identity (1,1) not...
asked by 15.02.2017 / 21:37
2
answers

Determine when a windows process is closing

I want to determine in vb code when a windows process is closed (which I have previously opened). But I get an error when I want to run: Call GetExitCodeProcess(handle_Process, lp_ExitCode) And the error message is: "Attempt to read or wri...
asked by 21.11.2016 / 23:47
1
answer

How to get the time, using a textbox

I am developing something similar to an activities agenda, in which the user can choose the days in which he wishes the agenda to apply as well as the activities of the same, the problem that I have is that in the agenda the user you must choose...
asked by 25.10.2016 / 19:15
1
answer

Deleting the last row of a DataGridView

I have a DGV in which I enter data directly but when I create a new row but I precede the escape key is pq I do not want to enter data but there is a blank row created then that row I want to delete, this is my code. Creating row. private void...
asked by 02.05.2016 / 21:56
2
answers

Error updating

I am working on a windows forms app, Entity Framework, I have an error when doing the Update. public void Update(T entity) { //Context.Set<T>().Attach(entity); Context.Entry(entity).State = EntityState.Modified;...
asked by 06.06.2016 / 17:18
1
answer

C # - Hide or show panels within a SplitPanel

In a form I have a SplitContainer: in the left panel I have a series of buttons and in the right several panels COUPLED to the right panel of the SplitContainer. The idea is: by pressing the different buttons on the left panel, the different...
asked by 18.04.2017 / 18:02
1
answer

How to add elements dynamically to a form c # from a class

Being more precise, I am trying to add (at the moment) some buttons to a form of c #, my dilemma is that I have no idea how to add these elements from the default class that has all the forms of c # , and the examples that I have seen have not w...
asked by 14.11.2018 / 05:03
1
answer

Modify from DataGridView connected to SQL in C #

Good morning, I am developing an application using Windows Forms within C #, it is a record of workers in a store, the users are entered from a form inside the application and they are shown in the following module in a DataGridView which is...
asked by 23.08.2018 / 16:39
1
answer

I do not update with Update

I am trying to modify a password based on a textbox. Pass the code but do not update the database. string conexion = "Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Resources\Atreus_bbdd.mdf;Integrated Secu...
asked by 14.08.2018 / 08:48
1
answer

Properly display Panel or custom form when activating OnClick event

Background: I am generating a Windows Form application whose main functionality is to consult information through a web service. The design of the (controls) form consists of: (1) TextBox (1) Button Due to the latency of the r...
asked by 19.07.2016 / 16:52