Visual basic toolstrip vanishes bug help - visual-studio

There it is! A BUG in Visual Basic Express 2010:
I have several ToolStrip controls docked within several panels of a tabPanel.
And sometimes, some toolstrip disappear from the design page.
Still exists since I can see its name in the bottom under the design surface.
If I click that name, kazaaaaam!!!, if shows back, but if I click another control elsewhere it vanishes again.
And after compiling and running the project, user can't see it neither.
Only solution is insert a fresh new toolstrip and copy/paste the bad one's buttons!
Any clue?

There appears to be a weird bug in VS2008 and VS2010. For some reason it sets the .Visible property to False. If you go to the Properties section of your Project, select the ToolStrip and then set the .Visible property to True, it should work.

Related

Windows Forms program shows menu items as checked in designer and as a colored block when program runs

I've written a program in VS using C#, Forms and .Net Framework 4.8. In the Designer, menu items show as checked. When I run the program the items show with a colored block instead of a check. I've searched but can't seem to find any reference to a problem like this.
Menu in Designer
Menu at run-time
I figured out what the problem was. On the menuitem properties, there's a property called "ImageScaling" that defaults to 'SizeToFit'. As soon as I set that to 'None' the check mark was in a small blue box (as I wanted it to be). Thanks for your attention.

cannot access a disposed object. Object Name:'MarshalingwindowFrame'

During openning my project in Visual Studio 2010 this issue came out.
So, how can I fix it? Can't open DataSet and contiu any other work in VS. Please, tell me what can be th ereason?
For me, the error disappeared after disabling Source Code Control integration. To disable SCC, do like this:
In the IDE Go to Tools->Options->Source Control->Plug-in Selection dialog page.
Select None from the drop-down box labeled Current Source Control plug-in:.

Can't Switch From 'WaitCursor' in Form Property Menu Pulldown

Working in Visual Studio 2010 Express (C#):
Once I've switched the cursor to 'WaitCursor' in the pulldown menu, I can't change it to anything else. It seems like a bug to me. Can anyone else reproduce this? I did run a debug once or twice before trying to change the cursor again. Or am I missing something?
Had the same problem, solution was embarrassingly simple, yet infuriating. There's another property called UseWaitCursor. If this is set to true (as mine was, accidentally), you are unable to change the Cursor property to anything other than WaitCursor.
If someone can explain why there are two separate properties for setting the cursor, I'm sure we'd all love to hear it.
There is a usewait cursor property you need to set it to false in vs2010
I had this problem with the context menu on a datagridview. I was setting UseWaitCursor on the form to true and then to false after everything loaded. The context menu continued to show WaitCursor. I ended up setting the UseWaitCursor = false on the actual context menu after the load a

Cannot view code in the object

I'm not sure if this is right, but I can't view the "code behind" in VB6. Everytime I click the "view code" for an object (for example a button), the code does not display.
Can you help me with this or any workaround for this? I need to do a breakpoint on this.
I ran into the same issue. Could not view the code or the designer.
Seems that VB6 lost track of where things should be displayed, whether offscreen or not I could not tell. Kept clicking View Code and View Object, and neither worked.
Found the solution:
Attempt to open the code or designer that doesn't show up. (It will get opened, just won't show)
Select Window from the menu, then select Cascade.
You should then see the code/designer show up on the screen. No re-install or remove/add needed.
You may need to do this each time, even after saving the .vbp (project) file, upon re-opening VB6 the files once again are not showing for me, but Cascade makes them visible again. (Anyone have any ideas on how to make this more permanent?)
Enjoy!
You may remove the form which is not showing the code in the project explorer window and add it again by right clicking on the project explorer window then select Add -> Form -> (instead of selecting in "New" tab navigate on the "Existing" tab then choose the form you have just remove and try viewing its code again). It will work 100% :D
Double click your controls and the source code will be shown.
Go to this link.
vb6 tutor

Customizing toolbar items in VS2010

Has the menu & toolbar customization functionality in VS2010 been reduced?
I can't seem to be able to select an icon for an added command, nor set it to be icon-only. Previous versions of Visual Studio supported this functionality and even allowed the creation/editing of custom icons.
Is this something that has suffered as a result of the move to the WPF-authored UI or am I missing something?
Seems like this functionality was cut from Visual Studio 2010. This post has some info in the comments: Customizing Visual Studio 2010
Specifically - "Unfortunately assigning or editing icons to commands through Customize dialog is not possible in VS2010. It is one of the features got cut for lack of time. This is however something we'll consider adding back in next version."
The reply also has a longer explanation of a workaround.
As noted in the link mentioned in the answer from #Gordon Mackie JoanMiro, the REASON for the reduced functionality is that the VS Shell team migrated the entire UI (shell and command system) from Win32 to one based solely on WPF. This was a gargantuan task, I would imagine. However, a couple workarounds are now available:
You can export previously saved settings from VS 2008 and import them into VS 2010. That includes command bar customizations (as noted by #Don)
A more recent blog-post contains detailed instructions for using a new extension to VS2010 (available on Visual Studio Gallery) that allows users to change the images on the command UI. (Note that the old drag&drop customization interface is still not supported in this new extension.)
If you have custom icons, any attempt to make ANY changes to the tool bar will result in the custom icons disappearing and being replaced by text when you restart VS2010.
The only way I found to get my custom icons without text into VS2010 is to open VS2008, set up all of the tool bars the way I want, including custom icons, then export the settings (Tools| Import and Export Settings). Then open VS2010 and import those settings. Tedious, I know, but it allows me to have a down arrow icon that searches for the next instance of the word my cursor is on.
I have been trying to customize VS2010 toolbars/keyboard and what took a few minutes in previous versions takes hours now. The new system looks real pretty but is useless in practice. Apart from the fact you just can't do (like change the appearance of buttons as mentioned above) the things you can do are extremely time-consuming and annoying.
Why is it every new version of VS loses something really useful? Other examples:
VC++5 introduced a new HTML help system. Pressing F1 on a function name used to immediately show help for that function. After VC++5 getting context help became annoyingly much slower, and is still very slow (and inaccurate).
VS.Net (aka VS2002 or VC++7) had a useless bookmark system compared to VC++6. VS2010 bookmarks are better but not perfect.
VS.Net removed the search state buttons "whole word", "case sensitive" etc. These were possibly the most useful buttons ever as they quickly allowed you to see why a search may have failed.
I found a great extension: CommandingImage
It does not have an icon editor, but you can create your images as 16x16 png format (for transparency) and import it (I recommend Paint.Net)
Dave, here's how to add toolbar buttons:
1) in the IDE, find the down arrow looking thing on the far right of a toolbar and click on Add Remove Buttons, Customize
2) in the Customize window select the Menu Bar radio button then select the appropriate menu bar that you want to add a button to
3) click the "Add Command..." button
4) select the appropriate Category and Command button that you want to add, then click OK.
The command button you selected will be added to the menu bar you selected. You can move the button up or down.
I think this is what you are looking for.
Good luck!

Resources