Questions tagged as 'windows-forms'

2
answers

Modify variables from one form to another

I have a problem and when I modify a tag or tag of a parent form tag from a child form, when I close the child form, the variable or tag of the parent form goes to the previous value, as if it were not I had modified. What I do is call the co...
asked by 12.07.2018 / 11:08
1
answer

Set DateTimePicker start date always Monday C #

I am developing a Windows Forms application in C #. I have a DateTimePicker that I will call dtp1 . It happens that what I need is that this dtp1 always have the date on Monday of the current week. That is, If today...
asked by 07.10.2016 / 00:55
1
answer

How to insert Image 3 Layers C #?

Good evening, I would like you to help me. I'm doing an image insert with SQL SERVER and C #. These are the fields of my table: CREATE TABLE [dbo].[alumno]( [Alu_IMAGEN] [VARCHAR](250) NULL ) ON [PRIMARY] This is my stored procedure c...
asked by 18.03.2017 / 05:09
1
answer

Is it possible to save the contents of a panel in a binary file?

Regarding my question, is it possible to save the contents of a panel in a binary file? What I need is to know if it is possible and how I could develop it. In other words, I have a panel on which I can draw. After drawing I would like to be...
asked by 20.01.2016 / 23:53
2
answers

Work with an xlsx file without opening excel in c #?

I have this code to get the first cell of an arx of .xlsx Excel.Application excelApp = new Excel.Application(); excelApp.Visible = true; string workbookPath = "c:/Libro1.xlsx"; Excel.Workbook excelWorkbook = excelApp.Wo...
asked by 20.07.2016 / 09:20
1
answer

Show certain time window form

Good I'm doing in window form a mini system that when there are 2 buttons 1: first button called a raffle is to appear at a certain time and my 8 numbers appear label 2: regenerate button is only bleach is to say that they are visible again...
asked by 07.07.2018 / 00:18
2
answers

ComboBox in DataGridView getting the value in the SelectedIndexChanged event

I am working on a Windows Forms application in which I have several ComboBox in different columns of a DataGridView. The need I have is to take the values in the event SelectedIndexChanged of each control ComboBox, I have implemented t...
asked by 30.07.2018 / 22:41
1
answer

Get data from a selected row

I'm working with DevExpress GridControl for Windows Forms, what I want is to get data from certain row, I do not know how to do it. In Windows Forms DataGridView I do it in the following way if (dgvCategoria.Rows.Count > 0)...
asked by 04.11.2016 / 22:13
1
answer

Show message after opening of Form

I am making an application where after the login window, if you are a new user, you will run a tutorial to show the use of it. The problem is that a method of the second form is executed where the messagebox is displayed before the logeo form is...
asked by 27.03.2018 / 10:37
2
answers

How to dynamically remove a UserControl in c # .net from the form?

I have a UserControl that is dynamically added to a FlowLayoutPanel . In that same UserControl I have a button to remove itself if the user wants, obviously at runtime. I need to delete it from Form . I tried this but n...
asked by 14.06.2018 / 06:47