cybercrypt13

I've done a quick video to show what is happening. I don't understand why I'm having so many problems with Visual Studio but maybe someone could tell me something I might be doing wrong. I have 2005 updated with the latest updates as far as I know. Their about screen doesn't come out and tell you what version you have but instead gives you 14 decimal version numbers so I won't swear the install did what it was suppose to.

http://www.softeksoftware.com/videos/csharp/problem1/problem1.html

Any help would be appreciated...

glenn




Re: Windows Forms General Any ideas what is causing this?

TaylorMichaelL

Might I recommend that you explain the problem and the steps you took rather than just posting a video. I, for one, will never open any file or go to any website just to see someone demonstrate a problem. There are two many ways to get hacked. Adding a video to demonstrate the problem is nice but if you can't put it into words then it is unlikely that a video will help much. IMHO.

Michael Taylor - 4/2/07





Re: Windows Forms General Any ideas what is causing this?

Friendly Dog

I see this once a while. I guess the system is running low on resources. Usually re-opening the form will help. It's an irritation, I agree.




Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

Ok, never heard of anyone being hacked by a flash video file but thats fine. The problem is that I have a tab control and when I click on one tab or another (its been different tabs) all of the controls are gone. This has happened with devexpress tabs as well as with the default tab control that comes with .NET. The fields are still there, still displayed in the document manager as being part of the specific tab control. If you click on them in the document manager it highlights the square on the main tab.

Moving the tab, the controls are not behind it on the main form. They are still associated with the tab control itself, but you can't click them. The only way to even see that they're still there is to use the document viewer to click them but even then if you try to access them directly from the form and click the already highlighted object, it disappears and selects the tab.

The good news is to correct the issue, you can exit the form unit and reopen and it will correct itself but its a very annoying bug to have to deal with. First time it happened I thought I had lost everything.

glenn






Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

I have a 3ghz system with 2gb of memory and am only running visual studio and outlook. If its a resource issue then its more serious that I initially thought... :-)

glenn






Re: Windows Forms General Any ideas what is causing this?

OmegaMan

You have a panel that get's moved to the foreground during desigb time, try removing it during your development stages or send it to the background. Also sometimes items depending on their design times needs may not appear or require a compilation of code before they can be seen in design time.




Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

I'm very confused. I am on a tab working, move to another tab and you are saying that I've told it to hide all my controls and make my interface not function What was I thinking

If you can tell me what I did to tell it to do such a thing I would greatly appreciate it. If Microsoft is willing to push a product such as this on me to develop applications for end users then they should expect to hear people complain. The fact is, this is a bug in an already buggy environment. Not complaing is very difficult to do...

glenn






Re: Windows Forms General Any ideas what is causing this?

OmegaMan

cybercrypt13 wrote:

I'm very confused. I am on a tab working, move to another tab and you are saying that I've told it to hide all my controls and make my interface not function What was I thinking

If you can tell me what I did to tell it to do such a thing I would greatly appreciate it. If Microsoft is willing to push a product such as this on me to develop applications for end users then they should expect to hear people complain. The fact is, this is a bug in an already buggy environment. Not complaing is very difficult to do...

glenn



  1. Remove the panel, the green one.





Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

I am new to all this Visual Studio stuff so are you saying that I can't use panels Shouldn't use panels Controls don't sit on panels properly Wouldn't this be yet another bug

Panels seem to be the only things that will dock under each other like having two panels both docked to top. Other controls bust through each other and don't make any sense what they're doing. So I figured having a panel on the form for the controls to rest in would be best.

Any more info would be appreciated...

glenn






Re: Windows Forms General Any ideas what is causing this?

OmegaMan

cybercrypt13 wrote:

Panels seem to be the only things that will dock under each other like having two panels both docked to top. Other controls bust through each other and don't make any sense what they're doing. So I figured having a panel on the form for the controls to rest in would be best.



I am not sure what language or discipline you are coming at this from, but one has to learn the nuances of any system or language and fighting it is the wrong tack.

When you place a panel over something, its going to hide the items...right

The problem is you have lost all grouping between items. You want to lay down the panels first, then add the controls. Otherwise everthing is free flowing and busts out, or gets hidden by the panels as you are seeing.

I would make a new form. Lay down the panels, splitters, group boxes, all the the container types first. Then add your controls. If the container is properly grouping the items, undocking and moving the container will pull the sub grouped controls during design time.




Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

By the way: I just watched this happen and I tried to tell it to send the panel to the back and that is not the issue either. I was on the tab, looking at all the components, all was fine. I then told it to compile the project (not run, only compile) and it did, but then it refreshed the screen and removed all the controls from the form. Tried sending to back on the panel and no use. Then closed and then reopened the form and all is good again.

Then, after reopening the form, I pressed F5 to run the app, all worked fine, exited the application to return to the editor again and when the form opens back up in the IDE all the controls are gone again.

Its a very neat feature to have...

glenn






Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

Omegaman, I think we're off to the wrong foot so I'll attempt to correct.

I've been programming in Delphi for 10+ years so nothing is new to me except C# and Visual Studio. I've been in VS for about 1 month now and am very familiar with how things work. I know how to create forms and panels and layouts and so forth. I am even writing my own components and controls. The form we're talking about is not a mystery either, its a basic form with a tab control, a panel within it, and then fields within the panel. Everything works fine and if you watched the video you would see that the fields are actually still contained inside the panel even after they go away.

The fact that I can close the form and reopen it and it corrects itself should tell you that its not anything I've done specifically that is causing the problem. The form only has 2 tabs, 2 panels and probably 30 other components on it. Its nothing if not the simplest of windows programs.

As mentioned in my earlier posts, the form displays just fine, but then wigs out and stops showing my fields. Did a second ago, now doesn't. So it can't be me...

Also, please understand that I'm frustrated because I"m trying to convert our application from Delphi (very stable) to Visual Studio, (appearing very unstable) . This is something I have to do, so I have to figure out what works and what doesn't, and quite frankly, right now I'm finding a lot more that doesn't than that does. After working 15 hour days trying to learn all this and get on with the task of writing code, I'm beyond disappointed. Nonetheless, I am on to the end. I just have to get things figured out.


Thanks,

glenn






Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

Just noticed something else. I have 2 tabs. The first tab is generally the one that looses all its controls so here is what I did and what I saw.

1) I am positioned on the first tab when I hit F5

2) When the application opens, I notice that in the background, VS has moved me to the second tab of the form. Sometimes it stays there, sometimes it changes to the second, then back to the first, but in all cases, the forms first tab looses all its controls. The only way I have found that I can stop this is to exit the form completely before I attempt to run the application.

This would appear to be a bug, wouldn't it

glenn






Re: Windows Forms General Any ideas what is causing this?

OmegaMan

cybercrypt13 wrote:

Omegaman, I think we're off to the wrong foot so I'll attempt to correct.



Fair enough. I have been there too, learning and up against a deadline, so no harm no foul. Its just that most people posting to this are non MS employees, such as myself and misdirected frustration appears as flame messages. So remove the emotion and you have a really good chance for the question to be answered. Trust me I have my opinions on the machinery which mirror yours at times. <g>




Re: Windows Forms General Any ideas what is causing this?

cybercrypt13

Sorry, this got posted above mine and I didn't see it. here are your answers:

  1. Version and Service pack If its 2003, I will not look into it.

2005 SP.050727-7600

  1. If you are not on SP1...can you load it and does the same happen

Can't answer for sure which service pack I'm on since it doesn't specifically say. If you can verify that I'm not on the correct and latest service pack I will look into it.


  1. Is it standard panels you are using or a third party Describe to me the architecture so I can try to reproduce it.

Standard panels and have also reproduced using devexpress tabcontrols so assume its not related specifically to the tab control itself. The panels themselves are new to the form so don't think they have anything to do with it.

  1. How many sub controls do you have on the panels

Taking a look at the tab that looses its controls: 25 total controls on that tab, all of which disappear. I can reproduce this on this form but have not tried others as I don't have too many done yet. Have been trying to learn on this one.

  1. Are you grouping controls into custom controls and pulling them in to be placed on the panel

Not real sure of the answer to this question as I don't know anything about grouping controls. For the most part these are just standard label controls on this tab but 1/2 of them are linked to an Ideablade binding manager along with a binding source. Using SQL Server database.

Again, the form works perfectly with no ill effects other than these controls disappearing. No errors or warning at any point in the process. I'll attempt to do you another video now that I understand more of what is going on so that you can see more of the details.

Thanks,

glenn