By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

question about VB.Net

P: n/a
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.

Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
LLJ wrote:
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
Nov 21 '05 #2

P: n/a
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

"LLJ" wrote:
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.

Nov 21 '05 #3

P: n/a
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

"LLJ" <ll******@yahoo.com> schreef in bericht
news:11**********************@g43g2000cwa.googlegr oups.com...
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.

Nov 21 '05 #4

P: n/a
LLJ
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.

Nov 21 '05 #5

P: n/a
Did you see that code that I showed to look for?

Cor
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.