Questions tagged as 'c#'

1
answer

How does a windows form timer work internally?

What happens is that I'm using two Timer in a form , the first one checks a folder, if you have added new files and put the names in a queue (FIFO) and the other is responsible for being Verifying if the queue has elements uncoils t...
asked by 23.11.2016 / 00:02
2
answers

that returns an AND between integers?

What is the logic that follows. I can not understand why this int a = 0x0c; a &= 0x05; return this 4 I understand the hexadecimal numbers only that I do not understand the logic of the AND between integers     
asked by 02.01.2017 / 22:40
2
answers

How do I store a value of a DropDownList in a variable?

Good morning, With the following C # code, I generate a DropDownList. public void CargarViaSolicitud() { Class.EntidadConexion cnn = new Class.EntidadConexion(); cnn.Conexion().Open(); SqlCommand cmd = new SqlCo...
asked by 03.01.2017 / 14:12
1
answer

How can I avoid opening a User Control?

I'm working on a windows forms app. At the moment of calling a user control if it is open that you do not call it again. I want to do something like this: public static Boolean OpenForm(Form Formulario) { Form F = Application.OpenF...
asked by 31.05.2016 / 03:37
1
answer

Add a Button dynamically to a flowlayoutpanel in a specific cell in C #. (windows forms)

I have a flowlayoupanel in which buttons are added dynamically. This is done with the simple code that we all know: flowLayoutPanel1.Controls.Add(boton); However, if you set the Add method, you can not specify a cell as tabletla...
asked by 16.12.2018 / 17:38
1
answer

Timer countdown C #

Hi, I'm doing a game in Unity which must have a chronometer that starts at 60, when it reaches 30 it should change the color of the letters to red and when it reaches 0 it should start to increase and not go to negative until now I have the init...
asked by 02.08.2016 / 16:06
1
answer

How to call a method that is general with Activeform?

I have an application with many forms that have all specific methods such as Create, Modify, Save and in the main form I have a toolbar that should access these methods depending on the active form, at this moment I have it but in the applicatio...
asked by 04.01.2019 / 16:56
2
answers

Return the model class or VistaModel?

I have a design problem, I currently have a view that I only use information from my user model classe. What in the view I do not need all the information of the model what should create an extra class viewmodel with the necessary information or...
asked by 13.07.2016 / 13:14
2
answers

The project sometimes does not recognize me a class

I have a class that I use to generate the custom buttons of my project in winforms, I simply define the font..color and in this way I use this custom button in all my forms. The structure of files and directories that I have is this, within t...
asked by 31.05.2017 / 12:46
3
answers

Remove WPF buttons by default

Does anyone know what they are and how to remove the buttons that are added by default when creating a project WPF ? I attach an image with the buttons to which I refer: In windows forms, it does not appear only in WPF     
asked by 08.07.2016 / 14:09