.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

How to create a ToolBar w/buttons and images (just like MS Word)?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :JQuery


I am new to WPF and so far NOT impressed... looks to my much like HTML in its infancy!  And no tools!

Now HTML is under control and has code generators to build the code from a Drag 'n drop interface. Such as Visual Studio!  Now MS comes along with XAML and no toold for it.  VS2010 is wowfully short on the interface working!

I tried to build a ToolBar but there is no supporting documentatoin anywhere.  I have found the ToolBar, ToolBarPanel, and ToolBarTray... but no documentation that makes any sense or sample code on how to create a toolbar?

I dragged a ToolBarTray onto a blank form then TRIED to add a ToolBar to it!  Gues what it wouldn't attach!  It puts itself wither above or below the Tray.

In frustration I am here to ask does anyone have and docs, or better sample code, that shows how these ToolBar items interact and work with each other WITHOUT writing huge blocks of XAML code?

Or do I go back to building Windows Forms applications that have great ToolBar and MenuBar support along with one thing sadly missing an MDI interface.

Hey MS not every application works in a browser or the Internet!  My client base are sailors who nave NO INTERNET connection for weeks or months at end.  ALL ther applications MUST be stand alone applications NOT WEB apps.

Thanks any help

View Complete Post

More Related Resource Links

Beyond Macros: Create Word and Excel Smart Documents with C++ and XML


One of the coolest new parts of Office 2003 is a programmability feature called Smart Documents, which allows developers to augment Word and Excel documents with programmable content and behavior. Typically, examples illustrating Office programmability use Visual Basic or Visual Basic .NET. In this article, the author develops a Smart Document for Excel using C++. He describes the new ISmartDocument interface and shows how to use it to manage a simple task list such as an Excel spreadsheet.

Mike Kelly

MSDN Magazine December 2003

Create buttons for "new item" which create a new page of a specific content type

We have a Pages library (wiki) which supports a few content types (and page layout associated). We want to enable users to click a button for example of "new custom enterprise wiki page" - so a new page of content type article will be open in edit mode. Can someone help how to develop? (it has to mimic the behavior that happens when user creates new page from the Ribbon or Site actions and has to choose the content type, it also has to keep the new page in edit mode and not just create it).  

Cannot create new document with word 2007

Hi!   I'm using WSS 3.0 for development on windows 7 64bit. I created a document library based on word 2003 template. Using Internet Explorer 8, when I click "New" button on the library word 2007 starts with "template.doc". Then word displays a nice error message "microsoft office word has not been installed for the current user. please run setup to install the application" and quits.   Things I tried and NOT working: - Adding sharepoint user to local admin - Giving Everyone full control to "C:\Users\All Users\Microsoft\OFFICE\DATA\OPA12.dat"  - deleting "C:\Users\All Users\Microsoft\OFFICE\DATA\OPA12.dat"   any suggestions ?

Extract Word document & Convert those extracted pages to images using Microsoft.Office.Interop.Word

You cannot vote on your own post 
Hi Everyone.

I need to extract word document into number of pages and convert those pages into images by using Microsoft.Office.Interop.Word, can anybody tell me how i can do this?

where to start? create an image on the fly from other images


Hi all

I hope this is in the right forum thread...

How do I create (or layer) a new image from  2 existing images with ASP.net on the fly?

Does anyone have any examples or links to websites?

or has anyone done this personally? any hints and tips?

also can i put this code (to create it) in a user control? instead of an external page?


Open word document from asp.net - toolbar not visible.



We have a scenario where the data on the web page needs to be opened in MS Word document.

For this we are using

HttpContext.Current.Response.ContentType = "application/msword"

But when we select "Open" in the popup box and the msword opens up, tool bars for msword is not displayed (Font/ font size etc.). But if we choose to save and open the saved document at that time the standard tool bar is visible.

Is there any way to display word doc with standard tool bars.


How to Create Buttons in SharePoint


Hi ,This is siddiq can any one tell me how to create button in sharepoint 2010 through designer


Mohammad Siddiqali

Can we create sharepoint task list which contain buttons in fields ?

Can we create sharepoint task list which contain buttons in fields in one column?

Help to create control to deal with layered images


Hi guys!

I need to develop a component to display layered images (an stack of images) to compose a single picture. And I'd like control the display of each layer image (turn on/off) with checkboxes. Ex. Imagine a car... each layer displays one part of the car (when all layers are turned on we can see the entire car).

Any idea?



How to create Word Verification where user type the characters see in the picture


Hi There:

I am not too sure what it call; however, I had seen many web site registration system had word verification (e.g gmail registration for new user) where user had to  type the characters see in the picture.

Anyone has idea how to implment this ? Or if there is tool our there can generate this as widget ? or AddOn components onto the ASP.Net page ?

Please advise.



Gridview with Radio Buttons

As now, Radio buttons are HTML controls, I am not able to get it on server side. When user select any radio button and press submit, Control will not available at code behind, you can use "e.Item.FindControl" as it is not "runat='server'". I want ID "Primary Key" value for selected radio button. To achive this I took the help of Javascript. I wrote javascript function that sets the values of "Primary Key" in hidden field when user clicks on any radio button. Now when user clicks on Submit button, user can get selected value froim hidden field.

How to create 3 tier application using LINQ

As you know that in 3 tier architecture there are three layers

User interface layer. (Is our Form in Windows application and .aspx page in Web application)
Data Access layer. (Which provides interface between Business logic layer and Database)
Business Logic layer.(Which stores your application logic)

Create ToolTip for GridView Header

The following allows you to add a tooltip to the header links of your GridView, a feature that is lacking.

Create And Run Excel Macro At Runtime in C#

You've been tasked with writing a Windows Form application using the .NET Framework that interacts with Microsoft Excel. If you are new to working with Excel in .NET and are having trouble learning how to format certain cells or cell ranges, then this little tip will come in handy. Rather than scour the internet hoping to find the correct set of constants or method syntax for formatting your spreadsheet, use the built in tools in Excel to write the familiar VBA code for you. Then, you can paste the VBA code generated by Excel into the sample C# code below and run it dynamically at runtime.

Create and Use a Typed DataSet by Using Visual C# .NET

This article shows you how to create and use a typed DataSet in a small Web application. Typed DataSets, which inherit from the DataSet class, create first-class members of a DataSet's DataTables and DataColumns, yielding the many benefits that come with the use of strong typing.

Connestion string create any database server

This links important to how to create connection string to any data base sever.

Dynamically Create Controls in ASP.NET by Using Visual C# .NET

This article demonstrates how to dynamically create a control for an .aspx page. The sample project does the following:
Creates two TextBox controls.
Verifies that the contents (TextBox.text) and the attributes of the TextBox are saved across posts to the server.
Illustrates handling events that are posted by a dynamically-created control
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend