Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2006, 03:19 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help! CommandButton Caption Driving Me Nuts!

Hey,

i have a c# program opening and creating powerpoint slides and i
created a commandbutton on the slide. the problem i'm having is
changing the caption of the button.
i've placed the code below and the only error is
objValue.Caption="Values". when i run the program, the powerpoint
crashes at that command, other than that it works fine.

PowerPoint.Shape vButton = newSlide.Shapes.AddOLEObject(10, 500, 100,
30,"Forms.CommandButton.1",null,MsoTriState.msoFal se,null,0,null,MsoTriState.msoFalse);
vButton.Name = "cmdValue";
MSForms.CommandButton vButtObj =
(MSForms.CommandButton)vButton.OLEFormat.Object;
vButtObj.Caption = "Values";

any idea on what i'm doing wrong?






Similar Threads
Thread Thread Starter Forum Replies Last Post
This is driving me nuts... Klesk C# 3 January 27th, 2006 06:51 PM
Driving me nuts! bhd8ball Classic ASP Professional 2 January 7th, 2005 12:55 AM
This is driving me nuts!!! (datagrid in .ascx) dragonoodle General .NET 2 December 13th, 2004 03:48 PM
Toolbar CommandButton Kenny Alligood Beginning VB 6 1 September 30th, 2004 06:55 AM
English Query Problem is Driving me Nuts... davidlars99 Classic ASP Professional 0 September 29th, 2004 01:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.