I have had this issue in Visual Studio ever since i started using it years ago, i cannot figure out what is going on, i add a MainMenu strip and fill it up with options, i then add a ContextMenu (if i need one in the particular application) when i do this, when i debug / build the MainMenu strip is gone, but the ContextMenu always shows.
I don't have any code as such but i have images to show how it looks in the designer:
Image 1 (When i click on the MainMenu control it shows in the designer)
Image 2 (When i click off the MainMenu control it disappears the same on debug / build)
I have looked over all the code i don't know what else to look at, any help would be appreciated.
Related
I'm fairly new to C#, I'm following along with an online tutorial, and I was working on building some forms when I noticed that the Visual Studio 2019 C# Form Designer was acting strangely. First every once in a while I would place an element on the form and then I wouldn't be able to select any other element, it would be stuck on that one element and clicking at all would cause the selected element to resize, rather than move like I would expect. That was annoying, but I was able to close the design window, and reopen it and it worked okay again, until it happened again usually after placing 2 or 3 elements with no issue.
But then a new problem started happening, where the place that I click on the design is offset to the left and down. So In order to select an element I have to move to the right and up, in order to be able to select the element I want to edit. The red rectangle in the picture below shows the spot where I would have to click in order to select the "Create Tournament" label. This is much worse than the first problem, and closing and reopening the design window doesn't help, nor does restarting Visual Studio or even resetting my computer. This is also happening across all of my forms. I was wondering if anyone knew what was going on or how I could fix this. Any help would be greatly appreciated, thank you.
I can't seem to fix this issue (which i hope is small) i have somehow when adding a ContextMenu did something to have the MainMenu bar not show up when i debug, if i click on the "MainMenu" in the designer (1st image) the menu bar shows up in the designer fine:
But if i click off it, then click on another control like:
The MainMenu disappears from the designer, when i build / debug the MainMenu is gone, is there a way to fix this easily enough (i assumed it would be as simple as checking a setting but googling did not return anything that i saw that was helpful)
Any help would be appreciated.
It looks like your MainMenu has ended up hidden behind your other controls. Try right clicking on the main menu and selecting Bring To Front. If you can't right click on it, right click on the control that's filling the rest of the form and select Send to back.
When you click on a menu control in the component tray it will always show it at the top of the screen (even if you click on a ContextMenu).
One other thing worth doing is to open the Document Outline window from the View->Other Windows menu in Visual Studio. This gives you a hierarchichal view of all the controls on the current form. You should be able to see your main menu here (unless you've somehow removed it from your form!)
Am creating WPF windows form application.
There are bout 7-8 usercontrols. Each user control has back and next button. When I click Next button, second form will appear and on Back previous form will appear. (You can image this with any installer)
Am able to show/hide forms. I want to add animation. As soon as I click Next button, control 1 must slide to left and control2 must come in from right (Imagine VS2012 setup)
I am using storyboard and able to slide controls but issue is control2 comes only after control1 disappear.
Please help me or provide code to achieve something like Visual Studio 2012 setup screens animation.
Am using this link (Page Transition Control) for reference.
I have an small appliction window , pops up when a tray icon clicks. Inside that i have provided context menu (windows form context menu), the problem is, whenever i rightclicks on form, the context menu is appearing but on disappearing of context menu, border of context menu still exists. As i minimises/closes and reopen every thing works fine again.
Any one has any idea why it is behaving like so?
Ravi Naik.
Set DoubleBuffering to true on the form. This should sort the problem out.
Unless you are drawing the stuff yourself using a Graphics object? Are you?
If you are then look up Double Buffering, you can find out about this at a few places, such as Bob Powell and Code Project.
If it doesn't and you want a quick hack to get around it, on the context menu collapse event you could call form.Refresh() but avoid this at all costs.
I've just recently started using VS2008 for a new tools project, and have been spending a lot of time in Eclipse/Java. The one thing I am missing is the thing I could have sworn was in VS2005 the last time I worked with it - the class outline.
I'm speaking of the basic outline in Eclipse, where you can see the class members, methods, etc and click on them to navigate to them.
The only thing that sounds like it might be it (but is not) is the Class View.
Any help?
This is probably the closest addin that you'll find that has it:
Source Code Outliner Power Toy
(The window on the left is what it adds to Visual Studio)
alt text http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SourceCodeOutliner&DownloadId=3493
"You can dock the Source Code Outliner anywhere, like to the left side of the Visual Studio window next to the Code Editor window."
"Click a method or variable name in Source Outliner and the code associated with what you clicked displays near the top of the Code Editor window."
JetBrains Reshaper.
This is what I had to do:
Open the Object Browser (View->Object Browser). It will open as a tab.
Right click the tab and select the "dockable" option. Then it will open as a window floating around.
I have 2 monitors, so in one of them I have visual studio, and in the other I put the Object Browser window. If you click something in the Object Browser, it will take you to where it is defined in the visual studio editor.
Not the same as the Eclipse outline (I miss it too), but this is the closest to it I'have found without adding pluggins.
Try this menu option:
View > Class View
The default keyboard shortcut is
Control + Shift + C