Visual Studio - Visual Basic - Protected Memory Error? - vb.net

Currently I am using Visual Basic 2008 (.NET Framework 2.0) to create a program. However, when I add or select controls such as panels, group boxes, etc. I get error messages. For example, when I try to add a panel control I get the following message,
After clicking OK button, the panel control is added but the following happens to the panel control,
Yet I can still add other controls inside it. When I save and re-open the project, it shows the normal panel control. But when I select the panel control it does as shown in the second image again.
I tried this in Visual Basic 2008, 2010, 2012 and 2013. Same thing. I have full administrator access to the computer.
What is the reason for this and how to fix it?
I re-installed Windows and then Visual Studio 2008. The error did not occur after that. But when I updated the computer via Windows Update, the error came back.

Try creating a new project, then copy and paste code from the old project. You may or may not have to recreate the forms in the designer. Also, make sure you have System, System.Core, System.Drawing, and System.Windows.Forms included as references for the project.

The error was due to a Windows Update. Because it does not show any errors on non-updated Windows 7. The error only appears after updating Windows 7
It was difficult to find which update was the reason for the issue. The solution was to install Windows 7 and Visual Studio and never update it. This way, it seems to fix the issue and it does not show the errors anymore.
Reference: https://social.msdn.microsoft.com/Forums/vstudio/en-US/76790023-4d01-43a5-b901-65ad93a5183d/visual-studio-visual-basic-protected-memory-error?forum=visualstudiogeneral&prof=required

Related

Project Properties Windows Blank in Visual Studio 2022 Community 17.1.0

I'm trying to access the project properties but the window appears blank. I've tried web solutions View>Properties Window, f4, right click on project folder>properties, Also tried resetting import/export settings, searching for specific tab
everything results in a blank window.. Any help is appreciated!
Thanks in advance.
I ran into this same problem with VS 2022 v17.4.0 Preview 1.0 in a C# Windows forms app. Closing and opening the solution/VS didn't have any effect.
After I closed all the open tabs and reopened a file, the Properties pane was populating correctly.
Does your toolbox items also appear 'greyed out'?
Try Going to your Build Menu and select
Clean Solution
(and perhaps Rebuild afterward - or not)
This happens constantly on my install. I simply minimize the entire VS window, then restore it. Poof! My properties appear. Trivial, but painful.
1 Make sure that your build program is not running (use task manager to end that process if needed) and make sure that you can rebuild your project without errors.
2 Restart Visual Studio as an Administrator.
Good Luck For You All ^_^
I have just encountered this error and it was simply solved by closing the visual studio and reopening it again. it is just gone.

Windows forms not updating vb.net

I'm having to work in a vb.net project and I have to add new textfields and labels to a form. But when I change the layout of the form in Visual Studio the form looks fine, but after compilation and moving to a testserver the form all gets jumbled together and label/textfields are all over the place, and some are missing.
Why does this happens and how can I fix it? I think it could have something to do with form languages but I'm not sure. Since on test server there is a way to change the language from the app between dutch and french.
Was able to fix the the issue by compiling the code in visual studio 2010 instead of 2017. Thought i would give it a try since the application was initially developed in VS 2010 and it worked.

Skin theme designer issue (vb.net express 2015)

I'm using custom theme (Net seal by Aeon Hack).
I opened a form, dragged NStheme from toolbar to the form. Project builds successfully.
But when I simply close form and then try to open it in designer mode, I get error:
To prevent possible data loss before loading the designer, the
following errors must be resolved:
The designer cannot process the code at line XX, please see the Task
List for details. The code within the method 'InitializeComponent' is
generated by the designer and should not be manually modified. Please
remove any changes and try opening the designer again.
What am I doing wrong?
I managed to get it working on Visual Studio 2012

Visual Studio 2013 update 3, Designer won't load

I have the following situation. I installed Visual Studio Update 3 last night. Now I have a problem that when I open my projects (Universal Apps) which i have done while i had update 2, my designer won't load and it throws an exception:
Does anyone knows how to solve this? I guess this is not a bug because probably everything was tested by Microsoft, and this is not RC update. Im about to delete this update if i don't figure out the solution. I'm guessing that it might have to do with xaml if anything changed?
I figured out from the connect bulletin that there are two folders in your Windows profile that need to have their contents cleared out in order for the Visual Studio designer to work with Visual Studio 2013 Update 3.
The two folders are:
For Blend: AppData\Local\Microsoft\VisualStudio\12.0\Blend\ShadowCache
For Visual Studio 2013: AppData\Local\Microsoft\VisualStudio\12.0\Designer\ShadowCache
Don't delete these folders, just delete the content of those folders and you will be back to working happily with the XAML designer again.
Clearing the ShadowCache did not resolve this for me. Found a clue from an MSDN article and checked the event viewer for exceptions, look for XDesProc.exe.
The problem was an out of date driver for my graphics card.
Once that was updated all started working again

I upgraded a Visual Basic 6 project to Visual Basic 2008 project and got unknown errors

I've recently upgraded my project to Visual Basic 2008 and I'm getting the following errors which I cannot identify, I hope someone can help:
AxThreed.AxSSCommand is not defined
AxActiveInput.AxSSDropDownEdit is not defined
AxPVTEXT3DLib.AxPVText3D is not defined
Any idea what this is and how to fix it?
It looks these are references to 3rd Party ActiveX controls. ActiveThreed, Protoview Date Control, etc
You may need to Add/Re-Add the relevant control to your project. Right click on the toolbox so select the items to want to use. If you don't see them in the list to may need to register/re-register them on that machine
Have a look at this page for more info: http://msdn.microsoft.com/en-us/library/ms973200.aspx
Number 3 here seems to indicate how to fix the problem... I believe some of your controls are not loading.