Google Answers Logo
View Question
 
Q: Two .NET questions ( No Answer,   0 Comments )
Question  
Subject: Two .NET questions
Category: Computers > Programming
Asked by: cmer-ga
List Price: $2.00
Posted: 17 Jul 2002 19:15 PDT
Expires: 23 Jul 2002 20:25 PDT
Question ID: 42336
The following code snippets are in VB.NET:

Question 1:
I have 2 combobox that get filled from the same datasource as follow:

cboParent1Type.DataSource = dsGeneralStuff.Tables("ParentTypes")
cboParent1Type.DisplayMember = "Description"
cboParent1Type.ValueMember = "ID"

cboParent2Type.DataSource = dsGeneralStuff.Tables("ParentTypes")
cboParent2Type.DisplayMember = "Description"
cboParent2Type.ValueMember = "ID"

Their SelectedValue property is bound to another datatable.

The problem is, when I select a value in Combobox #1, Combobox #2 also gets
that value selected by itself.  Obviously, it's not what I'm looking to do.
How can I "separate" each combobox even if their source is the same?



Question 2:

I am trying to change the forecolor of a groupbox that its FlatSyle is set
to System but it does not seem to work.  When set to System, the text is
blue but when set to Standard or Flat, it is black.  I want to have it black
when FlatStyle = System (just like all my other controls).

What am I doing wrong?



Thanks in advance!

Carl

Clarification of Question by cmer-ga on 18 Jul 2002 07:12 PDT
I have figured out Question #1.  Only QUestion #2 needs to be answered now.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy