Is there a way to add image on window form?

I’m trying to add an image on window form using c#, but every implementation did not give the result I needed. I want the image stay on the navigation bar, but it always hop into the main tab. This is the code I’m currently using public TabPage AddCustomTabs() { TabPage imageTab = new TabPage(); imageTab.Text… Read More Is there a way to add image on window form?

How to change drawn rectangle/s size using a trackBar1 scroll event?

It’s a bit long, but it’s all connected. At the top of form1: List<DrawingRectangle> DrawingRects = new List<DrawingRectangle>(); The mouse events to draw the rectangles: MouseDown: private void pictureBox2_MouseDown(object sender, MouseEventArgs e) { if (e.Button != MouseButtons.Left) return; x = 0; y = 0; if (pictureBox2.Image != null && selectedPath != null) { if ((x… Read More How to change drawn rectangle/s size using a trackBar1 scroll event?

How can I change selected textBox in windowsForms app

I want users to be able to travel between textboxes and to a button by clicking Keys.Enter, Keys.Up, Keys.Down. Is there a way like this.SelectedItem = TxtBoxName or something? private void TxtBoxName_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if(TextIsEmpty(TxtBoxDebt.Text)) { //switch to TxtBoxDebt } else { AssignNewPerson(); } } if (e.KeyCode ==… Read More How can I change selected textBox in windowsForms app

How to add the items to start from the second cell and not in the column header cell?

private void DisplayTableWithListview() { listView1.GridLines = true;// Whether the grid lines are displayed listView1.FullRowSelect = true;// Whether to select the entire line listView1.View = View.Details;// Set display mode listView1.Scrollable = true;// Whether to show the scroll bar automatically listView1.MultiSelect = false;// Is it possible to select multiple lines // Add header(column) listView1.Columns.Add("ToString(yyyyMMddHHmm)", 160, HorizontalAlignment.Center); //… Read More How to add the items to start from the second cell and not in the column header cell?