Questions tagged as 'winforms'

1
answer

How to put a form inside a tab?

I want to add a form inside a tab , I already tried using the "this.tabPage1.Controls.Add (new form1);" and it did not work, how to proceed?     
asked by 06.09.2017 / 02:18
1
answer

Put a combobox on a column of a datagridview

Using C #, with EntityFramework and codefirst, I have the following classes in my models layer: public class Cliente { public int ClienteId { get; set; } public string Nome { get; set; } public string Email { get; set; } public...
asked by 08.07.2017 / 04:11
1
answer

update tabcontrol tab

I am creating a program in Windows Forms and on my page I put a Tab Control with one tab to register and insert the data in MySQL and the other to see the data registered in a ComboBox. p> But when I insert one data from the registration tab...
asked by 08.06.2017 / 16:40
1
answer

Send data from a GridView on a Form to ComboBox on another Form

I'm trying to send the data from a gridview in a second Form to a combobox in form master but I have not been successful. I would like to know if there is a way to do this without being sent as a parameter, since I wi...
asked by 07.06.2017 / 00:40
1
answer

Scrollbar centralizing by itself

I have a form with height greater than the screen, with many buttons and checkboxes, The user uses the scroll bar to scroll down and see all the content of the form. My problem is that every time the user tries to click a button or checkbox,...
asked by 20.07.2017 / 19:20
1
answer

Customize TabControl C # [closed]

I need to customize a TabControl, like, change the colors of the tabs when selected, leave the TabControl without a border (flat type), etc. I tried using the TabControl component of Windows Forms and I could not, I tried to remove this white...
asked by 02.06.2017 / 01:20
2
answers

Filling in textbox of a form with information from a datagridview

I have a datagrideview on a form, and I need it when I click on the datagridview cell it fills two fields in another form. As I show in the image below. AlsofollowmycodepublicpartialclassfrmFaturaAnual:Form{SqlConnectionconexao=null;SqlCo...
asked by 11.04.2017 / 21:11
1
answer

How to return multiple rows with byte array from sql Server

I need to make a query in a table where the data is of type varbinary(max) , so I created the method below: public List<byte[]> preenche_fotos(string nCrm) { consql.bd_string(); SqlConnection sqlconn = new SqlCo...
asked by 11.05.2017 / 02:32
1
answer

Forearch loop how to use with controler

I have 6 PictureEdit in a PanelControl , and I need to run a haul on all PictureEdit so I made the following code: foreach (PictureEdit Pic in panel1.Controls) { //habilita o meno de zoom Pi...
asked by 21.05.2017 / 13:08
1
answer

How to find an object by name only?

I have 6 PictureBox , so when saving the photo in the database, saved together in which PictureBox it was. Then, when loading photos into a view, I need each photo to be displayed in its PictureBox , I query the database by...
asked by 19.05.2017 / 20:46