Questions tagged as 'winforms'

1
answer

How could I reverse the way a foreach traverses the object? [closed]

Next code: foreach(Control objCtrl in groupBox.Controls) { if (objCtrl is NumericTextBox) { int i = objCtrl.Text.Length; MessageBox.Show(i.ToString()); if (String.IsNullOrEmpty(objCtrl.Text) || objCtrl.Text == "...
asked by 19.09.2018 / 19:12
2
answers

How can I change the appearance of the form according to the operating system?

When I develop a project in C # (Windows Form Application) the appearance of the application window (borders) is according to the OS in which I'm running the application (Windows XP, Vista, 7, 8, 10)! WINDOWS XP WINDOWS7 How would I...
asked by 10.04.2018 / 02:30
2
answers

How to change button color using RGB or Hexadecimal code?

I have a WinForms application and would like to use colors that are not in the default settings of the Color object, how could I do that? For example: How the code is: this.btnLogout.BackColor = System.Drawing.Color.Red; Example o...
asked by 08.04.2018 / 23:43
2
answers

How to make the main form invisible C #

How to make the main form created by Visual Studio stay invisible after opening another? I tried using the "hide ();" command, but I did not succeed. code: using System; using System.Collections.Generic; using System.ComponentModel; using S...
asked by 02.08.2017 / 13:32
1
answer

How to highlight a word using REGEX

I need to color in the RichTextBox a text before a string For example: "Highlight: normal highlight"     
asked by 10.01.2018 / 11:43
2
answers

How to reproduce something similar to CSS in Windows Form?

I would like to make a program with the same appearance / style as the website, however in Windows Form does not work CSS because it is a Web technology. So how could I do something like this?     
asked by 11.12.2017 / 18:34
1
answer

Is it possible to change the template / graphical interface of a form in Windows Forms?

I've been researching about and the results I've achieved have been only to use WPF instead of using WinForm, but I'm still in doubt and I believe it's possible, is it possible to change the software template developed in Windows Forms?     
asked by 19.11.2014 / 13:39
2
answers

Changing Images from a PictureBox C # - Windows Form Application

Good Afternoon Personal,
asked by 31.07.2018 / 20:32
1
answer

Connection to database in Windows Form? [closed]

How to make / call the database connection in Windows Form? Knowing that the database configuration is in app.config     
asked by 22.03.2017 / 15:02
2
answers

How to pass rows from one DataGridView to another?

I want to pass the selected rows from one datagrid to another, for example, I select the rows, I click on a button , and they switch to another. Is to make a add - remove items. I have two datagrids , one will receive Products , and the...
asked by 29.01.2014 / 23:03