Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

BDJones

@BDJones
About
Posts
36
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Best way to populate this DataGridView
    B BDJones

    Before the grid is populated, there are no rows to enumerate in the grid. If the class is used as a datasource, adding rows 'dgView.Rows.Add()' creates an exception stating 'Rows cannot be programmatically added to the DataGridView's row collection' I'm using the class as the view bindng source. If this is correct, how do I get the list of obects into the grid? If there is a different approach that would be better than what I'm attempting, please comment. Thank you for your time.

    modified on Sunday, January 3, 2010 12:04 PM

    C# help tutorial question

  • Best way to populate this DataGridView
    B BDJones

    Happy new year... I have a list of objects I would like to use to populate a datagridview. I would somehow like to have each row bound to a specific object. I can see how that object class can be added as a datasource, but I'm not sure how to get the objects from my list added as a row. Anyone care to help? Also, is this the right direction? Thanks for your time.

    C# help tutorial question

  • Checkbox & CheckedChanged event... really?
    B BDJones

    Would you mind educating me a little more... What exactly is happening here? (Checkbox)sender; Is this casting sender as a Checkbox?

    C# question

  • Checkbox & CheckedChanged event... really?
    B BDJones

    OK, thanks.

    C# question

  • Checkbox & CheckedChanged event... really?
    B BDJones

    Thank you.

    C# question

  • Checkbox & CheckedChanged event... really?
    B BDJones

    When the CheckedChanged event fires, why does e not have a property with the current state? A CheckedListbox does... Am I missing something here? private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)... >>e has 'currentValue' and 'newValue'<< private void checkBox1_CheckedChanged(object sender, EventArgs e)... >>e has doesn't<< Do I really have to go get the state from the checkbox when I'm already in the state event fired by that checkbox? (checkBox1 == true) That seems redundant. Thanks.

    C# question

  • Capicom publish error
    B BDJones

    I'm trying to use Publish in C# 2008 express for the first time and getting an error that reads ...copy the latest version into the directory that contains SignTool.exe. If CAPICOM.dll exists, you may not have proper permissions to install CAPICOM. The dll is there, and I have local administrator rights but do not remember installing CAPICOM. Any suggestions about this error, or direction to a tutorial of the proper use of creating an install package would be great. Thanks.

    C# csharp help tutorial announcement

  • Accessing parent form from child from
    B BDJones

    I guess I'm not understanding how the property will update the checkox. The child is updating the property in frmMain. How does the checkbox in frmMain know the property just changed? Sorry if I'm missing something obvious.

    Windows Forms question

  • Accessing parent form from child from
    B BDJones

    Using suggestion 2, once the property has been changed by child in MainForm, how do I get MainForm to act upon that change? THank you

    Windows Forms question

  • Accessing parent form from child from
    B BDJones

    Please feel free to correct any terminoligy mistakes. From the main form 'frmMain' a child form 'frmChild' is instantiated and displayed. When 'frmChild' has focus and user is interacting, I need to cause a change on the parent form 'frmMain'. How do I get to cbOptionA (a checkbox) in frmMain? frmMain.cbOptionA.Checked = true; obviously wont work as that is the name of the class. Anyone care to school me? Thanks.

    Windows Forms question

  • CheckedListBox state to property
    B BDJones

    So you cannot store the e.CheckState value in the ItemCheck event? I have many collections to display/redisplay in the same checkedlistbox. I would rather push a value to the object in the list when it is checked then cycle through all of them before changing the collection being displayed. I have

    if (e.NewValue == CheckState.Checked)
    dv.checkedInLB = true;
    else
    dv.checkedInLB = false;

    which works fine, but adds a step.

    C# question

  • CheckedListBox state to property
    B BDJones

    Can you directly store the CheckState.Checked / Unchecked value in a class property? If so how would you store it, or do I have to examine it and store a bool? Thanks.

    C# question

  • Convert string to property name?
    B BDJones

    Thank you .

    C# question

  • Convert string to property name?
    B BDJones

    Thank you.

    C# question

  • Convert string to property name?
    B BDJones

    Thank you. Please forgive my ignorance, but where does 'refNumber' occur in your reply?

    C# question

  • Convert string to property name?
    B BDJones

    I have an object named 'dv' 'dv' has a string property named 'refNumber' There is also a string 'altString' = "refNumber" Is there a way to use 'altString' to get that property from 'dv'? string newString = dv.??altString?? -- should set newString the same as -- string newString = dv.refNumber Thanks for your suggestions.

    C# question

  • Highlighting a default treeview node
    B BDJones

    TabIndex = 0 That was it. Thank you again for your help today.

    C# question

  • Highlighting a default treeview node
    B BDJones

    How do you highlight a treeview node at startup? I have the node needed from BuildNodeTree() as defaultNode, and the following in frmMain_Load

    private void frmMain_Load(object sender, EventArgs e)
    {
    BuildNodeTree();
    treeview.SelectedNode = defaultNode;
    }

    This doesn't highlight the node. I'm assuming because it hasn't displayed yet. What are my options? Thank you.

    C# question

  • object from treeview help needed
    B BDJones

    Thank you very much for your time Luc. :thumbsup:

    C# question help

  • object from treeview help needed
    B BDJones

    I thought I could, but when using the object as the argument, I get an error myNode = new TreeNode(df); "Argument '1' cannot convert '...DetailFob' to 'String' " Sorry if this is so simple. I did try this before posting.

    C# question help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups