Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 118,589 VB.NET Programmers for FREE! Ask your question and get quick answers from experts. There are 828 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Missing Text Box when pressing F5

 
Reply to this topicStart new topic

Missing Text Box when pressing F5

RMEdi
post 4 Aug, 2008 - 06:48 AM
Post #1


New D.I.C Head

*
Joined: 23 Jun, 2008
Posts: 4

CODE


Public Class frmMainForm
    Private objPersonList As PersonList
    Private objPersonalDetails As PersonalDetails
    Private Sub btnShowList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShowList.Click
        objPersonList = New PersonList
        If objPersonalDetails IsNot Nothing Then
            pnlMain.Controls.Remove(objPersonalDetails)
            objPersonalDetails = Nothing
        End If

        pnlMain.Controls.Add(objPersonList)
        objPersonList.Dock = DockStyle.Fill
    End Sub

    Private Sub btnAddPerson_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddPerson.Click
        objPersonalDetails = New PersonalDetails
        If objPersonList IsNot Nothing Then
            pnlMain.Controls.Remove(objPersonList)
            objPersonList = Nothing
        End If
        pnlMain.Controls.Add(objPersonalDetails)
        objPersonalDetails.Dock = DockStyle.Fill
    End Sub
End Class



On the PersonalDetails form, I have several text boxes. The textbox for the address will disappear when I test the form. When I made the background of the textbox blue, I could see the blue box in a split second then disappear. It looks like it is covered by the panel background. I tried to delete the text box and recreated it, but the result is still the same. Any ideas?

Thank you very much.


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM

Go to the top of the page


AdamSpeight2008
post 4 Aug, 2008 - 07:51 AM
Post #2


DICula

Group Icon
Joined: 29 May, 2008
Posts: 614



Thanked 38 times

Dream Kudos: 2000
My Contributions


Firstly: This should be in the VB.Net Forum.
Secondly: What is PersonnalDetails.vb? A Form?
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 4 Aug, 2008 - 07:54 PM
Post #3


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 7,914



Thanked 83 times

Dream Kudos: 8100

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, GDI, Boo.Net

My Contributions


Moved to VB.NET smile.gif
User is online!Profile CardPM

Go to the top of the page

RMEdi
post 5 Aug, 2008 - 08:17 AM
Post #4


New D.I.C Head

*
Joined: 23 Jun, 2008
Posts: 4

QUOTE(PsychoCoder @ 4 Aug, 2008 - 07:54 PM) *

Moved to VB.NET smile.gif

I am very sorry everybody because I had posted to the wrong forum and the question was not clear. My problem was solved, the cause of the problem was using anchoring that flows to the next text boxes. I used anchoring for the particular text box with "Top, Bottom, Left, Right" so it overflows to the bottom text boxes. When I changed it to "Top, Left, Right" everything is okay now.

Thank you.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/11/08 07:39PM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month