Unable to select control in Designer of VS 2008 - winforms

I'm unable to select controls in window form in VS 2008, whenever i try to select any control, the window will be selected instead. It's as though they're read-only.
Does anyone know how to solve the problem?
*I'm using DiveElement sanddock in the form, will it be the cause of the abnormality?
Thanks.

Can you use the list of controls in the properties window to select the control?

I had the same issue. Although I couldn't figure out why, I was able to reset the form by right clicking and "Exclude from Project" followed by Project -> Add existing item and adding back the form. Then it worked like it should. Just wanted to share.

Related

How to configure Combobox from Gui Builder?

I can not make combobox from gui builder.
I drag and drop a combobox into place from Components Pallete/Core Combonets.
I am setting two values as is shown in the screen shot bellow:
I am saving the From in the gui builder and then I hit the run on netbeans. On simulator the combobix is shown empty as you can see on the next screenshot:
am I dong something wrong?
This seems to be a bug in the GUI builder. We generally recommend avoiding combo boxes so people don't test this much. Please file an issue here. As a workaround just use setModel within the constructor and define the elements that go in.

Why is my WPF Events Tab gone?

I cannot see it any more in Visual Studio 2010. How can I do to get it back?
I have no addins as I just installed VS Studio.
Nevertheless this occurs on an existing solution with many projects inside. When I create a new WPF project from scratch the tab reappears.
It sounds like a piece of UI is missing from your Visual Studio display. Try the following to get it to show back up in it's original location
Tools -> Import / Export Settings
Select "Reset all settings" and hit Next
Save your current settings if you desire and hit Next
Pick the profile of your choice and hit "Finish"
Possible ways to fix:
Try remove all add-ins and
extensions.
Tools -> Import And Export Setting
-> Reset all settings
Repair Visual Studio installation.
It's not possible to give exact solution with such description of problem.
Your User Options file is broken.
To fix it, do the following:
Close Visual Studio
Go to the folder in which your .sln file reside
Delete the User Options file
Open the solution again
The Events tab is back!
Are you talking about the Properties Window? If the Properties Window is displayed, click on the yellow lightning bolt button towards the top. That will show you the events for the currently selected WPF element. If the Properties Window isn't open, press F4.
This is not a bug, but rather where the focus is set in your visual studio instance design view. From the design view click the window and then do properties (F4). This will enable the events to show and be set from the properties tag. Just make sure the focus is set on the proper item from which you want to set the events (dropdownlist, window, ect.). Hope this helps.
I clicked on the "Design" tab in the bottom and the "Lightning bolt" (Event tabs) reappeared, then it was still available after going into "Source" view mode.
Hope this helps someone.

How do I get to the Design Tab in Visual Studio 2010 for Windows Form programming?

I am new to Visual Studio 2010 and I am trying to develop a Windows Form. I do not see a Design tab where I can toggle between the form design and the .cs code. How can I do this?
Thanks
The designer and code will actually be 2 separate tabs. To view the designer, right click the form in the Solution Explorer and choose View Designer. To view code, right click the form in the Solution Explorer and choose View Code.
If you have the code file open, you can right click anywhere in code window and choose View Designer.
tools -> Options -> HTML Designer then click the Enable HTML designer and restart.
I ran into this also. My problem was that without realizing it, I had deleted the declaration of the class and then saved.
Symptoms of this issue include: Wrong icon in Solution Explorer + no "View Designer" option
Moreover, if you double click the form, you result in an empty sheet.
To fix this, simply declare your class once again by double clicking on your form (in my case frmDialogs.vb), and adding the class declaration. Because my class is called frmDialogs, my code looks like this:
Public Class frmDialogs
End Class
Save. Then you will notice the icon return to that of a form, and you will have the ability to enter design mode once again: Normal form Icon and View Designer
Once again we can access the Form in Design.
I hope you find this information helpful! I tried to post with more screenshots but Stackoverflow did not let me since this is my first answer. If helpful please vote for my post as I need 10 reputation points to include more screenshots for future answers. Thanks!

Visual Studio design time event handling

I am trying to create a WPF wizard control in visual studio. I am successful except I would like to navigate the pages in design time by clicking the next and previous buttons. The pages are being written in xaml. I can navigate the pages by going to the properties window and changing the selected index, but I would like something more user-friendly. I remember doing something similar in a winforms project having something to do with overriding maybe wndproc and listening to mouse click events from the designer.
So I've been googling and I can't seem to google the right words to bring this up.
Can anyone please help!
You need to create a custom Adorner as described here. There are two walkthroughs there that should help.
Ultimately, you would need to overlay a transparent button on top of your actual buttons. Then in the click handlers you'd update your selected item/index.

Visual Studio GUI is see-through?

I'm having some trouble with Visual Studio 2008 on my Windows XP SP2 laptop.
What happens is that when I start a program with a few textboxes and stuff like that, the boxes are see-through. I can litteraly see through them and see what's on the underlaying screen. Like if I only have this Form showing and behind that my wallpaper, I can see my wallpaper through the Textbox, ComboBox, even through the small cracks between various elements.
i've searched the web but haven't encountered info on this yet. Does anybody know what might be causing this and how to solve it? I'm in the process of trying to see how the text in my TextBoxes is parsed, but I can't since I can't even enter anything. I click on the textbox and I'm focused on the desktop...
Hmmm... I'm not sure about this, but check the "Transparency" property of your main form. That's all I can think that it might be as of now...
Update: I meant the "Opacity" property, sorry.
Update 2: No, never mind, sorry. Right-click the "TransparencyKey" property, and press Reset to set it back to default.
Check TransparencyKey, Opacity and maybe TransparencyMask?

Resources