Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locating textbox on multi-page tab form
Message
 
À
04/08/2008 19:04:39
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01336403
Message ID:
01336650
Vues:
10
>>>>>>I have a business form with a tab control with 6 pages. I am getting an error on the binding source for one text box. I have been through every text box on every tab and, for the life of me, I can't find the offending text box. I can find it on the list of controls in the properties box but I can't figure out a way to delete it from there and it doesn't provide any information about where it's located. Does anyone have a good idea for either finding or deleting this text box? Thanks.
>>>>>
>>>>>Is it Web form or Windows form? If it's web form, you just delete it from ASPX file.
>>>>
>>>>It is a Windows form.
>>>
>>>Did you try to search for this control in the Forms definition file?
>>I searched the Designer.cs file, which I assume is what you are talking about. I can find it in there but it doesn't tell me where to locate it on the design surface. Should I just comment out the code there and see if the problem goes away? It makes me nervous not knowing where the text box has disappeared to.
>
>Linda,
>
>In the property sheet you should be able to open the dropdown box at the top and scroll till you see it. Then in the designer; don't click on anything but click on the title bar above the design area to make it the current area. You can then just hit delete and it will go away. If you see it selected in the design area after locating it in the property window you can just click on it and delete it.
>
>Tim

Tim, I had already commented out the code in the designer for that one but I tried it with another phantom field that I couldn't find but it didn't show up. They must have gotten buried under something or located beyond the limits of the form. I don't know how that happened but there don't seem to be any ill effects from deleting the code from the designer. I did try out the technique with a field that I can find and it worked like I would have expected and as you described. Thanks to all who helped out on this.
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform