MathiasWestin's Q&A profile
Visual Studio Tools for Office Made a mistake...unable to uninstall!
When I was trying to find a right SolutionCodeGroupName, I forgot to change it into the right UninstallCutomActionData... So, I've been able to install it (I found the error, there was a space missing)...but I cannot uninstall it, even using the Add/Remove program of the Control Panel... What can I do I tried however to develop it again, using another name...it gets installed, but it gets an error on runtime so the AddIn isn't loaded! But, when ...Show All
Microsoft ISV Community Center Forums InputBox() in MS Word form textbox.
I would like to insert a InputBox() prompt with the text being entered into protected Word form Textbox. I understand the InputBox() code and that the macro will be going into the ''Run Macro On Entry' dropdown box. Can someone point me in the right direction on how to do this. I am new to VBA. The support engineer has written a document with a “Show” button appended in the document, you can click it to show th ...Show All
Visual C++ Debug Assertion on ActiveX control (Internet Explorer)
I am facing trouble while using ActiveX control (MFC) with internet explorer. The control runs fine when loaded for the first time but when page is refreshed I receive a debug assertion. It is asserting in WinCore.cpp line 707 function: CreateEx Any help would be appreciated.. Parag This looks like a bug in MFC. We are investigating it right now. http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.asp ...Show All
Visual C# accessing variable of one window form to another
Hi, 1. I have defind one variable with some value to one window form and I want to access this variable to variable in another window form. 2. I have defined one dataset (bound with some database) into one function defined into one form. I want this dataset should be accessible with bound data from any point of the application (may be another form). Please assist me. Thank you First of all, th ...Show All
Windows Forms Please, Help!
Hi, Coders Please, help me with my system shutdown program! I think I am doing everything just fine, but... Here is my code: public event SessionEndingEventHandler ShutDown; ................................... public Form1() { this.ShutDown += new SessionEndingEventHandler(ShuttingDown); } void ShuttingDown(object&nbs ...Show All
Smart Device Development WM 5 on emulator
How do I run WM 5 on the emulator do I need to get the WM 5 image if so then where can I get it and what is the installation process Thanks. Carl, I have the same problem on one of my machines, the other machine(s) work fine. Did you get a resolution ...Show All
Visual Studio 2008 (Pre-release) Error 405 -- Cant run WCF samples
Hi, This is my first try at running WCF samples. I installed everything, ran 'setupvroot.bat'. When I try to run a sample, I get a "Error -- Connection Denied 405" on the client when calling the first remote call. I guess this is a security issue -- but cant find the cause. I am running XP SP2 in Workgroup mode. Any hint Thanks. Are you able to repro this problem with simple selfhos ...Show All
.NET Development Best practices
Hi, I was wondering I am writing this Windows Service Class. My class has a Timer and when ever the Elapsed Event is raised I want to go to a Database and see if there are any new records for me to process. Now what I started to think about is which is more "Correct" way of doing things. I have an OleDbConnection called myConnection. Is is "correct" to have one global object "myConnection" and just make sure t ...Show All
Windows Forms DataBound ComboBox Items BackColor Question
Hi I originally posted this question in the wrong forum so am reposting here. I have a Windows.Forms.ComboBox which is databound to a generic collection, see code below: cboCertificate.ValueMember = "ID" ; cboCertificate.DisplayMember = "Description" ; ExamPreps.Win.UI.BLL. GenericCollection <ExamPreps.Win.UI.BLL. Certificate > obj = new ExamPreps.Win.UI.BLL. GenericCollection <ExamPreps.Win.UI ...Show All
SQL Server Need SQL for distinguishing SQL 2005 from 2000 and 7.0
I want to use 'ALTER LOGIN' if the SQL Server is running 2005, but have to use sp_password if it's SQL 2000 or 7.0 Currently I use the following SQL to determine the version: int nVersion = 7; // this will throw an exception on 7.0 rs = con.execute("SELECT SERVERPROPERTY('productversion')"); if (rs != null && !rs.getEOF()) { strVersion = rs.getField(0).getString(); if (strVersion == null) strVersion = &q ...Show All
Visual Studio 2008 (Pre-release) How can I load an EMF file into WPF?
Is there a way to load via code (C#) an EMF or WMF file and render it within WPF Does WPF natively support this type Seems it should since the WMF and EMF file types are vector based. Does anyone have an answer to this query I would think Microsoft would support Metafiles since I beklieve they developed the WMF format. Anyone at Microsoft Help! ...Show All
Visual Studio Team System Can't connect to a team foundation server
Hi, I've removed the old TFS server and uploaded the new one in a different name. In one client I can't connect to the new TFS server, and always get the error: "The remote name could not be resolved: "Old TFS Server". Thanks Hi Michael, Run devenv /resetuserdata . Also, check these keys in the registry: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers HKEY_LOCAL_MACHINE\SOFTW ...Show All
Visual Basic VB SQL - Fieldname,etc - simple PROBLEM
VB SQL - Fieldname,etc - simple PROBLEM Having trouble with what should be a ridiculously easy small, brief routine in VB. Any insight, would be really helpful. All Im trying to do is have VB pull data from two databases, two different ways; database (1) Simple table, with entries such as (strucuture of db); P 101 102 103 104 105 ------------------------------------------------------------------- 1 1286 2847 5288 2299 3300 2 3101 3024 3503 ...Show All
Visual Studio 2008 (Pre-release) Performance difference between Path and Line? And, Bug in Path?
Hi all, I'm creating an app that draws a lot of single-pixel straight lines. Would a GeometryGroup of LineGeometry be a more efficient choice than a List of Line shapes Or, is the performance difference negliable to really matter Two considerations may affect the question. One, all lines may be subject to frequent RenderTransforms. And two, it appears that when Path.Data is set to the GeometryGroup of LineGeometry the SnapsToDevicePix ...Show All
Software Development for Windows Vista audio and video in different files
Im have codec which encode video and audio into different files (out.avi & out.wav) How im can play this files synchronized in DirectShow You should be able to render both files in the same graph and they will be played in sync with the same clock (assuming that their starting points are the same). Try it in graphedt using Render Media File for each file. G ...Show All
