Hello, I have 2 textboxes (tbMarcas and tbSubmarcas) Brands and Sub-brands both with autocomplete, but sub-brands need to work first met brands and I do not know how to make it work correctly, there is how I did the code ..
/ / Both operating
private void Auto_marcas (); [...]
private void Auto_submarcas (); [...]
private void Form1_Load (object sender, EventArgs e)
{
CONNECTION.Open ();
Auto_marcas () / / when compiling works 5 stars loads 6000 records in 1sec and makes the autocomplete function
Auto_submarcas () / / this also works but only if compiled tbMarcas with text on it in the textbox, I know it is to be in the load () but do not know where to put it to work, this is my question!
}
/ / I've tried this way but does not result
...
private void Auto_marcas (); [...]
private void Auto_submarcas (); [...]
private void Form1_Load (object sender, EventArgs e)
{
CONNECTION.Open ();
Auto_marcas ();
}
private void tbMarcas_Leave (object sender, EventArgs e)
{
Auto_submarcas ();
}
...
How do I solve this problem?
Loading
Posted Aug 28, 2013, 7:29 PM
If it is yes, then try to place the Auto_submarcas() event in the tbMarcas_TextChanged event or tbSubmarcas_Enter() event.
Please let me know, if you're expecting something different.