Attila Hajdrik (exMSFT)'s Q&A profile
Microsoft ISV Community Center Forums VBA for Powerpoint
Hi, I have been asked to modify a powerpoint presentation so that from a series of jpg files, one appears on the screen and then after a specific time period disappears and is replaced by another; this being a continuous loop on one slide only - like a photo tour. I have the following code, but need to get it up and running. Any suggestions: Sub ImportABunch() Dim strTemp As String Dim strFileSpec As String Dim oSld As Slide Dim oPic As Shape strFileSpec = C:\PFS Pictures\beach party *.PNG 'Ex. on a PC: C:\My Pictures\Flowers\*.PNG strTemp = Dir(strFileSpec) Do While strTemp <> Set oSld = ActivePresentation.Slides. Add ppLayout ...Show All
Visual Basic Query: Sharing Information between forms in a MDI
Hi, I am trying to develop an IDE similar to that of Visual Studio. To enable docking I am using the Dock Suite by Weifen Luo. I have created two forms a) frmTreeView: it contains only treeview control b) frmProperty: it contains only PropertyGrid Control When the main form is loaded I populate the TreeView Control and the tag for the nodes are set using a class which gets sets one text value and one integer as an example. What I am trying to do is when a node is selected, I would like to display its properties into the PropertyGrid (frmProperty) using . PropertyGrid.SelectedObject = frmTree.TreeView.SelectedNode.Tag ...Show All
Visual Studio 2008 (Pre-release) GridLengthAnimation missing
There is no such thing as a GridLengthAnimation which makes it impossible to animate the Grid panel. And since Value of GridLength isn't a dependencyproperty it can't be animated either. Would be nice to have this in a later CTP so that "everything" can be animated. Thanks for a great API! There's this work around that might help you depending on your design. However, you can always write your own implementation by simply writing your own AnimationTimeline implementation that returns GridLengths. For an example of how this would be done, check out Ian Griffiths post where he writes a samp ...Show All
Visual Basic how to add a flash ocx
can somebody help me on how to add a flash ocx on a vb2005 project I already add the flash ocx on the toolbox but the a error message appears stating "the activex control is unregistered!" Tanx... vicki Heenan wrote: where do I find this tool box. is it in marcromedia or windows media player...the error just keeps coming up I have tried everything... advice appreciated Vicki ' The toolbox is the Microsoft Visual Studio toolbox. What error are you getting when ...Show All
Visual C++ how to let visual studio not to find certain dll?
hi i can compile my program, but i can not run it, because it will popup an error message saying the system couldn't find dkcert.dll. I've removed a software which provides the dkcert.dll, because i want my program not to link to the dkcert.dll, but to ep2pk11.dll which i put in the same folder as my source code. but it seems visual studio will always keep searching for the dkcert.dll instead. i've uninstall and reinstall visual studio a couple of times but the problem still arise. any help is greatly appreciated. thanks. p/s: dkcert.dll and ep2pk11.dll are dll provided by two different companies, but both utilize the cryptoki library. ...Show All
Smart Device Development using System.Net.NetworkInformation
hi, I'm new in CF. I want to port a source code to windows mobile 5.0. ( please in other forum: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=114148). Could i use following libraries in CF using System; using System.Threading; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Reflection; using System.IO; using System.Security; using System.Security.Permissions; using System.Xml; using System.Diagnostics; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Security.Principal; using System ...Show All
Game Technologies: DirectX, XNA, XACT, etc. OpenMP in XNA
How far is the OpenMP support in XNA or can we expect OpenMP in XNA at all What other parallelisation techniques are possible with XNA OpenMP is supported in Visual C++ already. http://msdn.microsoft.com/msdnmag/issues/05/10/OpenMP/ ...Show All
Windows Forms Open new form when a button is pressed
I know this is really simple, but I just cant figure out what to type in order to fix it. My problem is that I have two forms in the same project. Say form1 and form2. I'm programming in VS 2005 using C#. I have a button in form1, and when I press it, I want form2 to open. What kind og code do I have to write in the eventhandler method for the button in form1 to open form2 if the button is pressed I would really appreciate some help! Hi Form2 f = new Form2(); f.Show(); will show a new instance of Form2. HTH ...Show All
SQL Server RDA with Linked Servers
I am developing a WM5 program (C#.NET) using SQL Server Mobile, using RDA to pull and push data from/to SQL2005. The question/issue is this: Does RDA work with linked servers, more specifically, if the RDA table is an Oracle table accessed through a linked server I have a linked server defined in SQL2005, using the .NET Oracle provider (MSDAORA) linked to Oracle 10g. When I try to perform an RDA PULL operation from Windows Mobile 5 (Smartphone emulator) I get the following error: “The query cannot be tracked. There might not be a primary key, or the query might involve multiple tables. [ Query string = SELECT * FROM DATABASE_NAME..S ...Show All
.NET Development Inconsistent InvalidCastException and FormatException errors
Recently we have started getting InvalidCastException and FormatException errors on 3 clients out of > 100 that are in use. We believe it is caused by the upgrade of our application from .Net 1.1 to .Net 2.0. In one case we get the following message - System.InvalidCastException: Conversion from string "0" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. In this particular case the error happened when user A was logged in but not when user B was logged in. Both users used the same PC. Even though this looks like a bug I suspect that there is some configuration i ...Show All
Visual Studio Team System Set Syste Locale in web test
Besides, HTTP language header, the web page I am testing looks for system locale (from control panel) to decide what language of page to load. How do I simulate this in Web Test Hi Bart1, I'd suggest converting the web test to a coded web test, and programmatically set the system locale before executing the web test. Then on test completion, restore the previous value. See this walkthrough for more info on creating a coded web test. Cheers, David ...Show All
Visual C# Order Matters
Today I found what was probably not the best of coding but for sure should have been flagged by the compiler and not the exception handler - especially the type of exception. Here's my class: public class foo { // ... other definitions here public static readonly Font CellStyle_UnacknowledgedAlarm_Font = new Font (CellStyle_Font, FontStyle .Bold); public static readonly Font CellStyle_Font = new Font ( "Verdana" , 12); private foo() { /*Cannot instantiate*/ } } You'll noticed the top to bottom issue that CellStyle_Fon ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to make MENU in 3D game
Hey guys, I made a 2D game and the menu was like a one bitmap(with drawed texts- NEW GAME, EXIT..) and I was checking where user clicked...and appropriate was then called. Now I am trying to make a 3D space shooting game(in C++ with DirectX 9) and wondering how to make a menu... a) make like a 3D scene with some objects - new game and so on...and checking for PICKING - b) or draw a bitmap on the QUAD and render the quad or HOW... thank you There's no reason they can't be converted to C++, since all the DirectX calls are nearly identical (Managed DirectX is basically an efficient, t ...Show All
.NET Development XML Serialization of type [,]
Hi, Im using class XMLSerializer to serialize my class that includes a field of type Object. This field can be any type i want. In order to be able to serialize and deserialize my object i wrote class named ObjectSerializer that handles all types, here is the class: public class ObjectSerializer: IXmlSerializable { #region Constructors public ObjectSerializer() {} public ObjectSerializer(Object Data) { this.Data= Data; } #endregion Constructors #region Properties public Object Data{ get { return Data; } } Object Data; #endregion Properties #region IXmlSerializable Implementation public XmlSche ...Show All
Software Development for Windows Vista Where is the WorkflowMessageEventArgs gone?
Hi Guys, I used the WorkflowMessageEventArgs in beta 1.2, is there anybody who can tell me in what namespace it's hidden in beta 2 thanks, Bernard You need to define the interface [ ExternalDataExchange ] public interface IEmailService { event EventHandler <EmailServiceEventArgs> ReceiveMail; void SendMail( ); } create an a service implementation and add service to runtime ExternalDataExchangeService dataService = new ExternalDataExchangeService(); workflowRuntime.AddService(dataService); EmailServiceImpl emailService = new EmailServiceImpl(); dataService.AddService(ema ...Show All
