Can't find 'References' tab to add System.Windows.Forms - winforms

Can someone show me how to add the system.windows.forms reference so I can create a simple dialogue box? Every resource I'm seeing tells me to just click on the references tab on the solution explorer to add it from a dropdown list but I don't see a references tab in the tree.
enter image description here

Related

Finding empty label in Windows form

I am new to Windows Form application and trying to build a small application.
I had dragged and dropped a label on the main form.
Then I deleted its text property to empty string basically hiding the label.
Now I would like to move this label to some other location on the form but unable to do so because I cannot find it.
I checked the designer file and its there.
But I cannot find it in the form so that I can grab it and move to a different location.
Please help.
Thanks
Use Document Outline. Look at the following images.
That happens to me several times, and a few weeks ago I found a way to get the empty label like this:
On the tab "Properties" just click on the arrow to show all controls and click on the label you want, this will automatically select the label on your form..

Drupal 7 – not able to change path in "edit menu link"

I am building a navigation menu in drupal 7 and in a few of the menu links it is not possible to edit the "path" in the page "Edit menu links" (under Structure -> Menu -> Navigation). Instead there is a fixed path to for ex. "Add new basic page".
These links also have the option "reset" in stead of "delete"... under Structure -> Menus.
I realize that I must have brought this problem on myself, but I am stuck and cannot figure out how to change the path for these menu links.
So I would like to change the "path". Can someone point me in the right direction?
Just turn off the menu item and create a new one which will fit your need.
This particular menu item was probably created using views. Go into the view and modify the menu item for the related view under Page settings

How to show custom button on custom objects?

I have one custom object Named Itnery and i created one custom button Named Save and in page layout under custom button section i drag the button there but it not shown in the Itnery window when i opened it.Itnery section comes with Opportunity window.
Second thing is i want to save the data related to Itnery like email,from,to etc on button click as i created and i did it as under:
{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}
Itinerary obj= new Itinerary;
obj.Email_Content_c = {!Itinerary_c.Email_Content__c};
obj.Email_Subject_c={!Itinerary_c.Email_Subject__c};
obj.Email_To_c={!Itinerary_c.Email_To__c};
obj.Flight_Info_c={!Itinerary_c.Flight_Info_c};
obj. Itinerary_c={!Itinerary_c.Itinerary_c};
obj.Opportunity_c={!Itinerary_c.Opportunity__c};
Database.update(obj);
message ='Saved Successfully';
window.location.reload();
Behavior: execute javascript
Content Source " Onclick javascript
please let me knw if anythng wrong in the code also..as i am new to saleforce
Thanks
I think you want to add your custom "Save" button to the related list.
Do it like this:
- at the Opportunity layout page click on "Edit layout" link
- then scroll down to related list (Itnery)
- click on the tool icon
- in the popup window you will see the settings of the related list
- there are "Columns" and "Buttons" areas, click on "Buttons"
- there are standard and custom buttons: select your custom button and click on the "Add" button
- save you settings

Check button like in "solution explorer" in visual studio

there's "show all files" check button in solution explorer tab in visual studio. How can I make such a button ? /* give me a class */
My manager wants exactly the same button and it's behavior ..
Or is it not "free" button ?
Edit: I see some people didn't understand my question. Some explainations:
I need a check button exactly like in visual studio (like "show all files" button). I need a "check" bahavior when I clicked a button it shows some half-transparent blue layer on a button image. And I need a mouse hover behavior when a half-transparent blue layer added to a button image. I hope you understand my english
It is a button. Create a button, assign an image (if you want the pretty picture) and put an OnClick event handler in. In your event handler, you'll need to add the code to do what is required.
Solution Explorer provides you with an organized view of your projects and their files in treeview.You can do this
by implementing your own treeview and showing all the files and folders inside the root folder.
you can check this thread to get started with treeview
I need a check button exactly like in visual studio (like "show all files" button).
I'm assuming you need a button that looks like the button in VS, not a button that behaves like the button in VS.
It's a toolbar button. Add a Toolstrip to your form, add a button to the toolstrip, set the CheckOnClick property to true and add a custom image.

Dynamic menu items in WPF

Is there a way to create a section on a menu for a list of menu items to be populated by something like an ObservableCollection?
I'd like to replicate the Window functionality in Visual Studio, where the open document tabs are listed in a numbered list, limited to the first 10.
See "Merge ContextMenus" from here. You can find more info by searching for CompositeCollection and menu/ContextMenu.
EDIT: Just saw CompositeCollection was already mentioned in a comment, but I'm going to leave this here for reference.
How does your menu get data right now? Is it databound? Check this article for binding your menu with a collection.
Now it is up to you to add logics when to add item to the collection.
For eg: In your scenario, you have to store the open documents in a list. Then you have to filter out the first 10 documents and add it to the children property of the MenuItem class specified in the article.
You can create menu items in code and manually add them to the menu when the form loads. It isn't elegant, but it gets the job done.

Resources