Click here to Skip to main content
15,899,935 members
Home / Discussions / C#
   

C#

 
GeneralRe: Opinions needed on Win Form Design Pin
MrJJKoolJ11-Feb-04 14:18
MrJJKoolJ11-Feb-04 14:18 
GeneralRe: Opinions needed on Win Form Design Pin
Heath Stewart12-Feb-04 3:26
protectorHeath Stewart12-Feb-04 3:26 
GeneralSetting Properties through .Net Remoting Pin
Brian Rogan11-Feb-04 11:09
Brian Rogan11-Feb-04 11:09 
Generalproblem with XmlDocument Pin
visiontec11-Feb-04 10:50
visiontec11-Feb-04 10:50 
GeneralRe: problem with XmlDocument Pin
Kentamanos11-Feb-04 11:01
Kentamanos11-Feb-04 11:01 
QuestionIs anything wrong with this? Pin
profoundwhispers11-Feb-04 10:40
profoundwhispers11-Feb-04 10:40 
AnswerRe: Is anything wrong with this? Pin
Heath Stewart11-Feb-04 12:08
protectorHeath Stewart11-Feb-04 12:08 
GeneralDatabinding to combobox Pin
Anonymous11-Feb-04 10:34
Anonymous11-Feb-04 10:34 
Hey,

I receive always following error :
{"Could not bind to the new value member.\r\nParameter name: value" }
System.ArgumentException

I don't find the problem in my source. Can someone have a look to it.
I use the property "Omschrijving" for the displaymember and that is not a problem. Why I have a problem with the property Id? I also check the whole array and there are no null-values in Id.

tkx,
Jac

My code :
..
this.Cmb01.DataSource = Codes.Splitsingen.Items;
this.Cmb01.DisplayMember = "Omschrijving";
this.Cmb01.ValueMember = "Id";
..


In an other class :
public class Splitsingen
{
public static Splitsing Jaarlijks = new Splitsing (1,"1",1,12,"Jaarlijks","Annuel","Yearly");
public static Splitsing Halfjaarlijks = new Splitsing (2,"2",2,6,"Halfjaarlijks","Semestriel","6months");
public static Splitsing[] Items = new Splitsing[5]{Jaarlijks,Halfjaarlijks,Trimestrieel,Maandelijks,Eenmalig};
}
public class Splitsing : CodeX
{
public int AantalPeriodesPerJaar;
public int AantalMaandenPerPeriode;

internal Splitsing(int id, string code, int aantalPeriodesPerJaar, int aantalMaandenPerPeriode, string omschrijvingN, string omschrijvingF, string omschrijvingE) : base(id, code, omschrijvingN, omschrijvingF, omschrijvingE)
{
AantalPeriodesPerJaar = aantalPeriodesPerJaar;
AantalMaandenPerPeriode = aantalMaandenPerPeriode;
}
public Splitsing()
{
}

}
public abstract class CodeX
{
public int Id;

private string OmschrijvingN;
public string Code;

public CodeX()
{
}
internal CodeX(int id, string code, string omschrijvingN)
{
Id = id;
Code = code;
OmschrijvingN = omschrijvingN;
}
public string Omschrijving
{
get
{
if (OmgevingParameter.Taal == Talen.Ned)
{
return OmschrijvingN;
}
}
set
{
}
}

}
GeneralRe: Databinding to combobox Pin
Heath Stewart11-Feb-04 12:00
protectorHeath Stewart11-Feb-04 12:00 
Generalmanaging Deletes and Backspaces Pin
obelisk2911-Feb-04 10:19
obelisk2911-Feb-04 10:19 
GeneralRe: managing Deletes and Backspaces Pin
Heath Stewart11-Feb-04 11:57
protectorHeath Stewart11-Feb-04 11:57 
Generalmanaged c++ class that inherits from unmanaged c++ Pin
godzooky11-Feb-04 8:30
godzooky11-Feb-04 8:30 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
Heath Stewart11-Feb-04 9:47
protectorHeath Stewart11-Feb-04 9:47 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
godzooky11-Feb-04 9:50
godzooky11-Feb-04 9:50 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
Heath Stewart11-Feb-04 9:52
protectorHeath Stewart11-Feb-04 9:52 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
godzooky11-Feb-04 10:07
godzooky11-Feb-04 10:07 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
Heath Stewart11-Feb-04 10:10
protectorHeath Stewart11-Feb-04 10:10 
GeneralMouse Button > keystroke Pin
Spanky311-Feb-04 8:04
Spanky311-Feb-04 8:04 
GeneralRe: Mouse Button > keystroke Pin
Kentamanos11-Feb-04 8:15
Kentamanos11-Feb-04 8:15 
GeneralRe: Mouse Button > keystroke Pin
Daniel Turini11-Feb-04 8:16
Daniel Turini11-Feb-04 8:16 
GeneralRe: Mouse Button > keystroke Pin
Spanky311-Feb-04 8:28
Spanky311-Feb-04 8:28 
GeneralRe: Mouse Button > keystroke Pin
Kentamanos11-Feb-04 9:20
Kentamanos11-Feb-04 9:20 
GeneralRe: Mouse Button > keystroke Pin
Anonymous11-Feb-04 9:31
Anonymous11-Feb-04 9:31 
GeneralRe: Mouse Button > keystroke Pin
Kentamanos11-Feb-04 10:36
Kentamanos11-Feb-04 10:36 
GeneralRe: Mouse Button > keystroke Pin
Anonymous11-Feb-04 10:59
Anonymous11-Feb-04 10:59 

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.