473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Flaky results when loading win form tab control

Hi,

I am loading a tab control on a form.

The code loads textboxes and comboboxes and checkboxes, normal
data entry form that loads a table row of data.

I have a combo on the form above the tab control that filters the form
for me.

But I am finding that it is hit or miss whether the comboboxes
have the selected item set from the underlying table when filtering

Sometimes it works sometimes they are set at the first item in the list.

Textboxes seem fine.

If the tabpage is not visible would this cuase this???

Any ideas??

rotsey
Jun 23 '07 #1
7 1687
re: Sometimes it works sometimes they are set at the first item in the list.

Most probably it's bad logic. Can you post code demonstrating problem?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uZ**************@TK2MSFTNGP06.phx.gbl...
Hi,

I am loading a tab control on a form.

The code loads textboxes and comboboxes and checkboxes, normal
data entry form that loads a table row of data.

I have a combo on the form above the tab control that filters the form
for me.

But I am finding that it is hit or miss whether the comboboxes
have the selected item set from the underlying table when filtering

Sometimes it works sometimes they are set at the first item in the list.

Textboxes seem fine.

If the tabpage is not visible would this cuase this???

Any ideas??

rotsey


Jun 23 '07 #2
The problem seems to be that the tabs that aren't visible aren't
selecting the combo items, because when I click on a tab and then
reselect the filter the combos are fine.???

How much code would you like to see?
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
re: Sometimes it works sometimes they are set at the first item in the
list.

Most probably it's bad logic. Can you post code demonstrating problem?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uZ**************@TK2MSFTNGP06.phx.gbl...
>Hi,

I am loading a tab control on a form.

The code loads textboxes and comboboxes and checkboxes, normal
data entry form that loads a table row of data.

I have a combo on the form above the tab control that filters the form
for me.

But I am finding that it is hit or miss whether the comboboxes
have the selected item set from the underlying table when filtering

Sometimes it works sometimes they are set at the first item in the list.

Textboxes seem fine.

If the tabpage is not visible would this cuase this???

Any ideas??

rotsey



Jun 23 '07 #3
Demonstrating the problem. Bare bones.
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
The problem seems to be that the tabs that aren't visible aren't
selecting the combo items, because when I click on a tab and then
reselect the filter the combos are fine.???

How much code would you like to see?
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>re: Sometimes it works sometimes they are set at the first item in the
list.

Most probably it's bad logic. Can you post code demonstrating problem?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uZ**************@TK2MSFTNGP06.phx.gbl...
>>Hi,

I am loading a tab control on a form.

The code loads textboxes and comboboxes and checkboxes, normal
data entry form that loads a table row of data.

I have a combo on the form above the tab control that filters the form
for me.

But I am finding that it is hit or miss whether the comboboxes
have the selected item set from the underlying table when filtering

Sometimes it works sometimes they are set at the first item in the list.

Textboxes seem fine.

If the tabpage is not visible would this cuase this???

Any ideas??

rotsey




Jun 23 '07 #4
Alex

i have discovered a problem with it.
When I intiialise the combo with a datatable the datatable
has 20 rows in it. The form displays fine as in I see the items
in the combo but when it goes to set the item in the combo
the number of items in the collection is zero. Weird

If this code helps here is 2 methods. First one is
the creation of the combo and the other a method to
set the selected item.

private void CreateComboBox(ControlDef ctl, Control.ControlCollection
controls)

{

TBRComboBox cmb = new TBRComboBox();

string classname;

ILookUpObject obj;

DataSet ds;

cmb.Name = ctl.FieldName;

cmb.Top = ctl.Top;

cmb.Left = ctl.Left;

cmb.Width = ctl.Width;

if (ctl.LookUpSql != "NIL")

{

if(ctl.LookUpSql.StartsWith("Select",StringCompari son.CurrentCultureIgnoreCase))

{

classname = "TBR.NET." + ExtractText.GetClassName(ctl.LookUpSql);

obj = (ILookUpObject)Activator.CreateInstance(Type.GetTy pe(classname));
if (obj == null)

throw new ApplicationException("Cannot create object for type " +
classname);

ds = obj.GetLookupData(ExtractText.ParseSQL(ctl.LookUpS ql));

if (ctl.FieldName == "PayFrequency")

Console.WriteLine("");
switch (ctl.ColumnCount)

{

case 2:

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = ds.Tables[0];

break;

case 1:

foreach (DataRow dr in ds.Tables[0].Rows)

{

cmb.Items.Add(dr[0]);

}

break;

default:

break;

}
if (ctl.IsRowLookup == true)

{

cmb.ForeColor = TBRSettings.Instance.Settings.FilterFieldForeColor ;

cmb.BackColor = TBRSettings.Instance.Settings.FilterFieldBgColor;

cmb.SelectedIndexChanged += delegate(Object s, EventArgs e)

{

LoadData((int)cmb.SelectedValue);

};

}

}

else

{

string[] words;

List<ComboItemlist = new List<ComboItem>();

words = ctl.LookUpSql.Split(';');

cmb.Items.Clear();

if (ctl.ColumnCount == 1)

{

foreach (string word in words)

{

cmb.Items.Add(word.Replace("\"", ""));

}

}

else if(ctl.ColumnCount == 2)

{

for (int i = 0; i <words.Length; i += 2)

{

list.Add(new ComboItem(Convert.ToInt32(words[i]), words[i+1].Replace("\"",
"")));

}

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = list;

}

}

}

cmb.SelectedIndex = -1;

controls.Add(cmb);

}

public void FindByValue(string value, string columnname)

{

int aIndex;

DataRowView drv;

ComboDebug.Instance.list.Add(this.Name + " ---- NumItems: " +
this.Items.Count);

for (aIndex = 0; aIndex < this.Items.Count; aIndex += 1)

{

try

{

drv = (DataRowView)this.Items[aIndex];

if (drv.Row[columnname].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " ----- " +
value);

this.SelectedIndex = aIndex;

return;

}

}

catch (Exception)

{

if(this.Items[aIndex].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " ----- " +
value);

this.SelectedIndex = aIndex;

return;

}

}

}

this.SelectedIndex = -1;

return;

}
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:eS**************@TK2MSFTNGP03.phx.gbl...
Demonstrating the problem. Bare bones.
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
>The problem seems to be that the tabs that aren't visible aren't
selecting the combo items, because when I click on a tab and then
reselect the filter the combos are fine.???

How much code would you like to see?
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>re: Sometimes it works sometimes they are set at the first item in the
list.

Most probably it's bad logic. Can you post code demonstrating problem?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uZ**************@TK2MSFTNGP06.phx.gbl...
Hi,

I am loading a tab control on a form.

The code loads textboxes and comboboxes and checkboxes, normal
data entry form that loads a table row of data.

I have a combo on the form above the tab control that filters the form
for me.

But I am finding that it is hit or miss whether the comboboxes
have the selected item set from the underlying table when filtering

Sometimes it works sometimes they are set at the first item in the
list.

Textboxes seem fine.

If the tabpage is not visible would this cuase this???

Any ideas??

rotsey




Jun 23 '07 #5
Do you dispose your lists between Create and Find?

Can you step through and see when collection disappears?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:OB**************@TK2MSFTNGP06.phx.gbl...
Alex

i have discovered a problem with it.
When I intiialise the combo with a datatable the datatable
has 20 rows in it. The form displays fine as in I see the items
in the combo but when it goes to set the item in the combo
the number of items in the collection is zero. Weird

If this code helps here is 2 methods. First one is
the creation of the combo and the other a method to
set the selected item.

private void CreateComboBox(ControlDef ctl, Control.ControlCollection
controls)

{

TBRComboBox cmb = new TBRComboBox();

string classname;

ILookUpObject obj;

DataSet ds;

cmb.Name = ctl.FieldName;

cmb.Top = ctl.Top;

cmb.Left = ctl.Left;

cmb.Width = ctl.Width;

if (ctl.LookUpSql != "NIL")

{

if(ctl.LookUpSql.StartsWith("Select",StringCompari son.CurrentCultureIgnoreCase))

{

classname = "TBR.NET." + ExtractText.GetClassName(ctl.LookUpSql);

obj = (ILookUpObject)Activator.CreateInstance(Type.GetTy pe(classname));
if (obj == null)

throw new ApplicationException("Cannot create object for type " +
classname);

ds = obj.GetLookupData(ExtractText.ParseSQL(ctl.LookUpS ql));

if (ctl.FieldName == "PayFrequency")

Console.WriteLine("");
switch (ctl.ColumnCount)

{

case 2:

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = ds.Tables[0];

break;

case 1:

foreach (DataRow dr in ds.Tables[0].Rows)

{

cmb.Items.Add(dr[0]);

}

break;

default:

break;

}
if (ctl.IsRowLookup == true)

{

cmb.ForeColor = TBRSettings.Instance.Settings.FilterFieldForeColor ;

cmb.BackColor = TBRSettings.Instance.Settings.FilterFieldBgColor;

cmb.SelectedIndexChanged += delegate(Object s, EventArgs e)

{

LoadData((int)cmb.SelectedValue);

};

}

}

else

{

string[] words;

List<ComboItemlist = new List<ComboItem>();

words = ctl.LookUpSql.Split(';');

cmb.Items.Clear();

if (ctl.ColumnCount == 1)

{

foreach (string word in words)

{

cmb.Items.Add(word.Replace("\"", ""));

}

}

else if(ctl.ColumnCount == 2)

{

for (int i = 0; i <words.Length; i += 2)

{

list.Add(new ComboItem(Convert.ToInt32(words[i]), words[i+1].Replace("\"",
"")));

}

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = list;

}

}

}

cmb.SelectedIndex = -1;

controls.Add(cmb);

}

public void FindByValue(string value, string columnname)

{

int aIndex;

DataRowView drv;

ComboDebug.Instance.list.Add(this.Name + " ---- NumItems: " +
this.Items.Count);

for (aIndex = 0; aIndex < this.Items.Count; aIndex += 1)

{

try

{

drv = (DataRowView)this.Items[aIndex];

if (drv.Row[columnname].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " ----- "
+ value);

this.SelectedIndex = aIndex;

return;

}

}

catch (Exception)

{

if(this.Items[aIndex].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " ----- "
+ value);

this.SelectedIndex = aIndex;

return;

}

}

}

this.SelectedIndex = -1;

return;

}
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:eS**************@TK2MSFTNGP03.phx.gbl...
>Demonstrating the problem. Bare bones.
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
>>The problem seems to be that the tabs that aren't visible aren't
selecting the combo items, because when I click on a tab and then
reselect the filter the combos are fine.???

How much code would you like to see?
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
re: Sometimes it works sometimes they are set at the first item in the
list.

Most probably it's bad logic. Can you post code demonstrating problem?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uZ**************@TK2MSFTNGP06.phx.gbl...
Hi,
>
I am loading a tab control on a form.
>
The code loads textboxes and comboboxes and checkboxes, normal
data entry form that loads a table row of data.
>
I have a combo on the form above the tab control that filters the form
for me.
>
But I am finding that it is hit or miss whether the comboboxes
have the selected item set from the underlying table when filtering
>
Sometimes it works sometimes they are set at the first item in the
list.
>
Textboxes seem fine.
>
If the tabpage is not visible would this cuase this???
>
Any ideas??
>
rotsey
>
>




Jun 23 '07 #6
Alex,

The list shows 0 items after I assign the datatable to the datasource
property.

rotsey

"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Do you dispose your lists between Create and Find?

Can you step through and see when collection disappears?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:OB**************@TK2MSFTNGP06.phx.gbl...
>Alex

i have discovered a problem with it.
When I intiialise the combo with a datatable the datatable
has 20 rows in it. The form displays fine as in I see the items
in the combo but when it goes to set the item in the combo
the number of items in the collection is zero. Weird

If this code helps here is 2 methods. First one is
the creation of the combo and the other a method to
set the selected item.

private void CreateComboBox(ControlDef ctl, Control.ControlCollection
controls)

{

TBRComboBox cmb = new TBRComboBox();

string classname;

ILookUpObject obj;

DataSet ds;

cmb.Name = ctl.FieldName;

cmb.Top = ctl.Top;

cmb.Left = ctl.Left;

cmb.Width = ctl.Width;

if (ctl.LookUpSql != "NIL")

{

if(ctl.LookUpSql.StartsWith("Select",StringCompar ison.CurrentCultureIgnoreCase))

{

classname = "TBR.NET." + ExtractText.GetClassName(ctl.LookUpSql);

obj = (ILookUpObject)Activator.CreateInstance(Type.GetTy pe(classname));
if (obj == null)

throw new ApplicationException("Cannot create object for type " +
classname);

ds = obj.GetLookupData(ExtractText.ParseSQL(ctl.LookUpS ql));

if (ctl.FieldName == "PayFrequency")

Console.WriteLine("");
switch (ctl.ColumnCount)

{

case 2:

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = ds.Tables[0];

break;

case 1:

foreach (DataRow dr in ds.Tables[0].Rows)

{

cmb.Items.Add(dr[0]);

}

break;

default:

break;

}
if (ctl.IsRowLookup == true)

{

cmb.ForeColor = TBRSettings.Instance.Settings.FilterFieldForeColor ;

cmb.BackColor = TBRSettings.Instance.Settings.FilterFieldBgColor;

cmb.SelectedIndexChanged += delegate(Object s, EventArgs e)

{

LoadData((int)cmb.SelectedValue);

};

}

}

else

{

string[] words;

List<ComboItemlist = new List<ComboItem>();

words = ctl.LookUpSql.Split(';');

cmb.Items.Clear();

if (ctl.ColumnCount == 1)

{

foreach (string word in words)

{

cmb.Items.Add(word.Replace("\"", ""));

}

}

else if(ctl.ColumnCount == 2)

{

for (int i = 0; i <words.Length; i += 2)

{

list.Add(new ComboItem(Convert.ToInt32(words[i]),
words[i+1].Replace("\"", "")));

}

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = list;

}

}

}

cmb.SelectedIndex = -1;

controls.Add(cmb);

}

public void FindByValue(string value, string columnname)

{

int aIndex;

DataRowView drv;

ComboDebug.Instance.list.Add(this.Name + " ---- NumItems: " +
this.Items.Count);

for (aIndex = 0; aIndex < this.Items.Count; aIndex += 1)

{

try

{

drv = (DataRowView)this.Items[aIndex];

if (drv.Row[columnname].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " -----
" + value);

this.SelectedIndex = aIndex;

return;

}

}

catch (Exception)

{

if(this.Items[aIndex].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " -----
" + value);

this.SelectedIndex = aIndex;

return;

}

}

}

this.SelectedIndex = -1;

return;

}
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:eS**************@TK2MSFTNGP03.phx.gbl...
>>Demonstrating the problem. Bare bones.
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
The problem seems to be that the tabs that aren't visible aren't
selecting the combo items, because when I click on a tab and then
reselect the filter the combos are fine.???

How much code would you like to see?
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl. ..
re: Sometimes it works sometimes they are set at the first item in the
list.
>
Most probably it's bad logic. Can you post code demonstrating problem?
>
>
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uZ**************@TK2MSFTNGP06.phx.gbl.. .
>Hi,
>>
>I am loading a tab control on a form.
>>
>The code loads textboxes and comboboxes and checkboxes, normal
>data entry form that loads a table row of data.
>>
>I have a combo on the form above the tab control that filters the
>form
>for me.
>>
>But I am finding that it is hit or miss whether the comboboxes
>have the selected item set from the underlying table when filtering
>>
>Sometimes it works sometimes they are set at the first item in the
>list.
>>
>Textboxes seem fine.
>>
>If the tabpage is not visible would this cuase this???
>>
>Any ideas??
>>
>rotsey
>>
>>
>
>




Jun 25 '07 #7
When the DataSource property for combo box is set, the items collection
cannot be modified

Is your table having any data? Are you changing item list after setting
Datasource? If yes, you will need to remove it.
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:OB**************@TK2MSFTNGP03.phx.gbl...
Alex,

The list shows 0 items after I assign the datatable to the datasource
property.

rotsey

"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Do you dispose your lists between Create and Find?

Can you step through and see when collection disappears?
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:OB**************@TK2MSFTNGP06.phx.gbl...
>>Alex

i have discovered a problem with it.
When I intiialise the combo with a datatable the datatable
has 20 rows in it. The form displays fine as in I see the items
in the combo but when it goes to set the item in the combo
the number of items in the collection is zero. Weird

If this code helps here is 2 methods. First one is
the creation of the combo and the other a method to
set the selected item.

private void CreateComboBox(ControlDef ctl, Control.ControlCollection
controls)

{

TBRComboBox cmb = new TBRComboBox();

string classname;

ILookUpObject obj;

DataSet ds;

cmb.Name = ctl.FieldName;

cmb.Top = ctl.Top;

cmb.Left = ctl.Left;

cmb.Width = ctl.Width;

if (ctl.LookUpSql != "NIL")

{

if(ctl.LookUpSql.StartsWith("Select",StringCompa rison.CurrentCultureIgnoreCase))

{

classname = "TBR.NET." + ExtractText.GetClassName(ctl.LookUpSql);

obj = (ILookUpObject)Activator.CreateInstance(Type.GetTy pe(classname));
if (obj == null)

throw new ApplicationException("Cannot create object for type " +
classname);

ds = obj.GetLookupData(ExtractText.ParseSQL(ctl.LookUpS ql));

if (ctl.FieldName == "PayFrequency")

Console.WriteLine("");
switch (ctl.ColumnCount)

{

case 2:

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = ds.Tables[0];

break;

case 1:

foreach (DataRow dr in ds.Tables[0].Rows)

{

cmb.Items.Add(dr[0]);

}

break;

default:

break;

}
if (ctl.IsRowLookup == true)

{

cmb.ForeColor = TBRSettings.Instance.Settings.FilterFieldForeColor ;

cmb.BackColor = TBRSettings.Instance.Settings.FilterFieldBgColor;

cmb.SelectedIndexChanged += delegate(Object s, EventArgs e)

{

LoadData((int)cmb.SelectedValue);

};

}

}

else

{

string[] words;

List<ComboItemlist = new List<ComboItem>();

words = ctl.LookUpSql.Split(';');

cmb.Items.Clear();

if (ctl.ColumnCount == 1)

{

foreach (string word in words)

{

cmb.Items.Add(word.Replace("\"", ""));

}

}

else if(ctl.ColumnCount == 2)

{

for (int i = 0; i <words.Length; i += 2)

{

list.Add(new ComboItem(Convert.ToInt32(words[i]),
words[i+1].Replace("\"", "")));

}

cmb.DisplayMember = "Description";

cmb.ValueMember = "ID";

cmb.DataSource = list;

}

}

}

cmb.SelectedIndex = -1;

controls.Add(cmb);

}

public void FindByValue(string value, string columnname)

{

int aIndex;

DataRowView drv;

ComboDebug.Instance.list.Add(this.Name + " ---- NumItems: " +
this.Items.Count);

for (aIndex = 0; aIndex < this.Items.Count; aIndex += 1)

{

try

{

drv = (DataRowView)this.Items[aIndex];

if (drv.Row[columnname].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " -----
" + value);

this.SelectedIndex = aIndex;

return;

}

}

catch (Exception)

{

if(this.Items[aIndex].ToString() == value)

{

ComboDebug.Instance.list.Add(this.Name + " ---- " + columnname + " -----
" + value);

this.SelectedIndex = aIndex;

return;

}

}

}

this.SelectedIndex = -1;

return;

}
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:eS**************@TK2MSFTNGP03.phx.gbl...
Demonstrating the problem. Bare bones.
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
The problem seems to be that the tabs that aren't visible aren't
selecting the combo items, because when I click on a tab and then
reselect the filter the combos are fine.???
>
How much code would you like to see?
>
>
"AlexS" <sa***********@SPAMrogers.comPLEASEwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
>re: Sometimes it works sometimes they are set at the first item in
>the list.
>>
>Most probably it's bad logic. Can you post code demonstrating
>problem?
>>
>>
>"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
>news:uZ**************@TK2MSFTNGP06.phx.gbl. ..
>>Hi,
>>>
>>I am loading a tab control on a form.
>>>
>>The code loads textboxes and comboboxes and checkboxes, normal
>>data entry form that loads a table row of data.
>>>
>>I have a combo on the form above the tab control that filters the
>>form
>>for me.
>>>
>>But I am finding that it is hit or miss whether the comboboxes
>>have the selected item set from the underlying table when filtering
>>>
>>Sometimes it works sometimes they are set at the first item in the
>>list.
>>>
>>Textboxes seem fine.
>>>
>>If the tabpage is not visible would this cuase this???
>>>
>>Any ideas??
>>>
>>rotsey
>>>
>>>
>>
>>
>
>




Jun 25 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Cro | last post by:
Dear Access Developers, The 'Allow Additions' property of my form is causing unexpected results. I am developing a form that has its 'Default View' property set to 'Continuous Forms' and am...
9
by: MLH | last post by:
open form in design view then allow it to be opened into form view from code. then set its visible propery to false then open into design view from code then set its visible propery to false...
2
by: Aaron Queenan | last post by:
Is there any way to know whether the OnItemCheck is being called in response to a user action (mouse or keyboard) as opposed to the form loading? I have a class which derives from...
0
by: Kitchen Bin | last post by:
HELP PLEASE!! The C# Visual Studio IDE is failing to load an inherited form into the IDE from a base form when I add items to an array property of a user control on the base form. That sounds...
6
by: Shock | last post by:
Hello all, I made a post yesterday about the flakiness of asp.net datagrids. I was under the impression that this problem was only in regard to datagrids. Apparently our problems are with any...
1
by: José Joye | last post by:
Hello, I'm playing around with dynamically loading user controls ...and having problems I created a really simple userControl (in fact contains a plain text box) and placed it into the...
0
by: Joe | last post by:
I've a web form that inherits from a BasePage. There is a user control on the web form. Does anyone thinks it's a problem if I've my BasePage loading a user control and my web form loading a...
3
by: Per Dunberg | last post by:
Hi all, I have to develop a "skinned" application and I have a problem with the graphics. When a form is loaded and displayed there's aways a flicker where all the controls are located on the...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.