Questions tagged as 'winforms'

1
answer

Error calling the form screen

I'm having trouble loading a menu through another screen and following my code below. What would be a possible solution for such an error? public partial class frmMenu : Form { public frmMenu() { InitializeComponent(); }...
asked by 07.04.2017 / 19:03
2
answers

Permission Control in C # and Windows Form [closed]

I would like to create in C # with Windows Forms (basically equal to Windows folder permission), access levels for users, but not as level 1, 2 and 3, but for example: User A can only view a customer record; User B can delete and delete;...
asked by 08.03.2017 / 00:28
1
answer

Comparison of database dates with system date

Hello I need to compare the month of registration of information present in a database table with the current month provided by the system. In the database I enter the number for the month in a column. For example: On 16/12/2016 I regis...
asked by 17.12.2016 / 17:59
2
answers

Data query file settings

I have some projects in my solution and in one of them I will have the settings configured with some parameters. My question is: If you referenced this project in others, can I read these parameters in each project?     
asked by 12.03.2017 / 18:22
1
answer

Hide form when pressing key

I created a form, I do not want to use minimize or maximize button, I want to use for example when pressing "F1" my form is hidden and press F1 again it reappears. I tried this, but without success: private void Form1_KeyDown(object...
asked by 15.11.2016 / 03:00
1
answer

Format text Windows Forms

I have a system and I need to justify the text on the left, I already tried with the textbox and with ritchtext and neither of them give me this option, I can only align the left, but when I align only the first column of text is aligned, the ot...
asked by 12.08.2016 / 19:33
1
answer

When to use the constructor when using load

Good evening, how are you? I have a question, when to use the constructor and when to use the load of a form to call some method or etc. Example: public partial class Manutenção_cliente : DevExpress.XtraEditors.XtraForm { consulta_bd co...
asked by 20.07.2016 / 02:17
1
answer

How to create tabs inside a window?

I need to create a program that displays the forms I'm calling from the MenuStrip, inside the main form, as if they were part of it, and you can leave more than one open. I believe that because of the image I made, it is easier to understand wha...
asked by 30.11.2016 / 19:46
1
answer

How to tell if a System.Timers.Timer is running? [closed]

I need to know if a timer is running, if it is not, I will start it,     
asked by 15.07.2016 / 02:39
1
answer

Combobox is loading wrong array information

I made a C # (WinForms) application to load the marks according to the type of vehicle that is selected (car, motorcycle or truck) in a combobox. I put the following code at a button: private void btnCheck_Click_1(object sender, EventArgs e)...
asked by 13.04.2016 / 16:47