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
Y

yuifox

@yuifox
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Databind won't work for Combobox and Checkbox
    Y yuifox

    Hi There ! I've using some properties set in my class to replace Tag

        public string cfield { get; set; }
    

    but it is doesnt work for checkbox and combobox. Thank you for your help.

    C# help wpf wcf question

  • Databind won't work for Combobox and Checkbox
    Y yuifox

    Hi ! Pardon for my bad english. Ive been working this code for weeks,

    foreach (Control Ctrl in this.Controls)
    {
    switch (Ctrl.GetType().ToString())
    {
    case "clarinrt.form.other.sdate":
    if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
    break;
    case "clarinrt.form.other.slookup":
    if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
    break;
    case "clarinrt.form.other.scheck":
    if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Checked", formdataset, Ctrl.Tag.ToString()));
    break;
    case "clarinrt.form.other.snumeric":
    if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
    break;
    case "clarinrt.form.other.stext":
    if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
    break;
    case "clarinrt.form.other.sdropdown":
    if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("SelectedIndex", formdataset, Ctrl.Tag.ToString()));
    break;
    default:
    break;
    }

            }
    

    For each control, TAG property will be filled such as "account.detail" refering to a column in table name, while formdataset is Dataset for this form. This code in Load method on base form. the problem with sdropdown and scheck which inherited from combobox and Checkbox. If I comment out, those two part, Databind work fine. Can someone told me, what I should do ? sdropdown will be databind with Integer column while scheck will be databind with Boolean column Thank you for your help...

    C# help wpf wcf question

  • difference between these code
    Y yuifox

    Thank you Pravin for the link. It gives me an understanding.

    Visual Basic csharp json question

  • difference between these code
    Y yuifox

    Thank You Dave. It clear my mind.

    Visual Basic csharp json question

  • difference between these code
    Y yuifox

    Hi, I'm new in vb.net What the difference of these codes

    for u = 0 to datatable.rows.count - 1
    ' process code
    next

    for each rows in datatable.rows
    ' process code
    next

    assuming process code are to parsing data datatable.rows either to search or to print or to calculate. which one is faster ? can someone give me some enlighment ? sorry for bad english.

    Visual Basic csharp json question

  • Difference between datagridview.rowcount and For each row in Datagridview.Rows
    Y yuifox

    Hi, I'm new in VB.NET I would like to ask what difference of these code

    For z = 0 to datagridview.rowcount - 1
    '.. code to process ..
    next

    with these one

    for each row in datagridview.rows
    '.. Code to process
    next

    which one is faster ? Thank you for your enlightment

    Visual Basic csharp question
  • Login

  • Don't have an account? Register

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