question about VB.Net

  • Thread starter Thread starter LLJ
  • Start date Start date
L

LLJ

I am working on an VB.Net application. I have put some controls like
DataGrid, Lable, Text into it. then i put a panel into it, and tried to
move all the other controls in the panel. don't know why and how, all
the controls disappeared. then i tried to add controld back. but when i
tried to name, for example, DataGrid as the name i used before, it
saying, the the name has been used. and from the drop down list, i do
see the old DataGrid in the list, but can't find it in the form. Does
anyone know why? and how can i get it back.

I already coded a lot, does this mean i have to start again from the
beginning?

Thank you very much.
 
LLJ said:
I am working on an VB.Net application. I have put some controls like
DataGrid, Lable, Text into it. then i put a panel into it, and tried to
move all the other controls in the panel. don't know why and how, all
the controls disappeared. then i tried to add controld back. but when i
tried to name, for example, DataGrid as the name i used before, it
saying, the the name has been used. and from the drop down list, i do
see the old DataGrid in the list, but can't find it in the form. Does
anyone know why? and how can i get it back.

I already coded a lot, does this mean i have to start again from the
beginning?

Thank you very much.

You probably dropped the controls into the panel. Try exanding the
panel bigger to see if they are just not in view.

Chris
 
lliang,

This has probably to do with the Z order as the controls are created. You
can see that in your designer created code mostly at the end.

Me.controls.add(Datagrid1)
etc.

I hope this helps,

Cor
 
It sounds like the controls are in the panel, but just out of view. See if
you can select the controls in the properties dropdown list and them manualy
set the locations to 0,0. Or diable all of the controls anchors and expand
the panel.
kevin
 
Hi, I tried everything I can. I deleted all the panel only leave the
form there, but still didn't see the controls i lost, DataGrid, labels,
and other text boxes. but from the drop down list i still see they are
there. i expended the form, and tried to change the location to 0,0 and
changed the color of the control, still can't find them.

very strange.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top