Click here to Skip to main content
15,860,943 members
Home / Discussions / C#
   

C#

 
QuestionTabcontrol and treeview data binding Pin
Hervend22-Nov-17 12:59
Hervend22-Nov-17 12:59 
AnswerRe: Tabcontrol and treeview data binding Pin
Mycroft Holmes22-Nov-17 13:15
professionalMycroft Holmes22-Nov-17 13:15 
Questionhow svd(singular decompostion value) works for matrix? Pin
Isawyouoo22-Nov-17 4:00
Isawyouoo22-Nov-17 4:00 
AnswerRe: how svd(singular decompostion value) works for matrix? Pin
M-Badger22-Nov-17 4:36
M-Badger22-Nov-17 4:36 
GeneralRe: how svd(singular decompostion value) works for matrix? Pin
Isawyouoo22-Nov-17 5:00
Isawyouoo22-Nov-17 5:00 
GeneralRe: how svd(singular decompostion value) works for matrix? Pin
OriginalGriff22-Nov-17 8:26
mveOriginalGriff22-Nov-17 8:26 
GeneralRe: how svd(singular decompostion value) works for matrix? Pin
Isawyouoo23-Nov-17 11:19
Isawyouoo23-Nov-17 11:19 
Questioncan't add combobox Items (C#) Pin
Dunnewijk22-Nov-17 3:43
Dunnewijk22-Nov-17 3:43 
I want to write one code to fill more comboboxes.
The code is running ok except ' mycbox.Items.Add("een") ' in the final rule.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FindcboBox
{
	public partial class Form1 : Form
	{
		public ComboBox mycbox;
		public Form1()
		{
			InitializeComponent();
			{
				Cbo1.Items.Clear();
				Cbo1.Items.Add("een");
				Cbo1.Items.Add("twee");
			}
		}

		private void Button1_Click(object sender, EventArgs e)
		{
			GetcboBox("Cbo1");
			GetcboBox("Cbo2");
			GetcboBox("Cbo3");
		}

		private void GetcboBox(string cbName)
		{

			mycbox = new ComboBox();
			foreach (Control mycbox in this.Controls)
			{
				if (mycbox is ComboBox & mycbox.Name == cbName)
				{
					MessageBox.Show("hallo");

					mycbox.Text = "kl";
					mycbox.Items.Add("een");					
				}
			}
		}
	}

AnswerRe: can't add combobox Items (C#) Pin
Pete O'Hanlon22-Nov-17 4:48
subeditorPete O'Hanlon22-Nov-17 4:48 
GeneralRe: can't add combobox Items (C#) Pin
Dunnewijk22-Nov-17 5:04
Dunnewijk22-Nov-17 5:04 
GeneralRe: can't add combobox Items (C#) Pin
Dave Kreskowiak22-Nov-17 5:15
mveDave Kreskowiak22-Nov-17 5:15 
GeneralRe: can't add combobox Items (C#) Pin
Sascha Lefèvre22-Nov-17 5:20
professionalSascha Lefèvre22-Nov-17 5:20 
GeneralRe: can't add combobox Items (C#) Pin
Dunnewijk22-Nov-17 6:56
Dunnewijk22-Nov-17 6:56 
GeneralRe: can't add combobox Items (C#) Pin
Sascha Lefèvre22-Nov-17 7:55
professionalSascha Lefèvre22-Nov-17 7:55 
AnswerRe: can't add combobox Items (C#) Pin
Dave Kreskowiak22-Nov-17 5:02
mveDave Kreskowiak22-Nov-17 5:02 
GeneralRe: can't add combobox Items (C#) Pin
Dunnewijk22-Nov-17 6:59
Dunnewijk22-Nov-17 6:59 
QuestionHow to filter like or = with a column in reportviewer C# Pin
C Sharp coder 201821-Nov-17 4:56
C Sharp coder 201821-Nov-17 4:56 
Rant[REPOST] How to filter like or = with a column in reportviewer C# Pin
Richard Deeming21-Nov-17 5:03
mveRichard Deeming21-Nov-17 5:03 
Questionhow i distinguish scan or keyboard value ? in windows ce ?? Pin
Member 1284514418-Nov-17 1:52
Member 1284514418-Nov-17 1:52 
AnswerRe: how i distinguish scan or keyboard value ? in windows ce ?? Pin
OriginalGriff18-Nov-17 2:22
mveOriginalGriff18-Nov-17 2:22 
AnswerRe: how i distinguish scan or keyboard value ? in windows ce ?? Pin
jschell20-Nov-17 6:30
jschell20-Nov-17 6:30 
GeneralNullable reference types in C# Pin
jschell17-Nov-17 10:38
jschell17-Nov-17 10:38 
GeneralRe: Nullable reference types in C# Pin
Eddy Vluggen18-Nov-17 0:54
professionalEddy Vluggen18-Nov-17 0:54 
GeneralRe: Nullable reference types in C# Pin
jschell20-Nov-17 6:10
jschell20-Nov-17 6:10 
GeneralRe: Nullable reference types in C# Pin
Eddy Vluggen20-Nov-17 6:23
professionalEddy Vluggen20-Nov-17 6:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.