ClintZync's Q&A profile
Gadgets Using System.Gadget.Settings
Hi, In my gadget I save a value in my VBScript, how do I re-load this saved value I have: System.Gadget.Settings.Write "Record" , dtmSystemUptimeSecs s = System.Gadget.Settings.Read("Record") But this doesn't seem to work If my uptime is big interger should I use the writeString & readString methods That serves me right for copying the original code! Thanks for pointing that one out Bruce. So you're code needs to be changed to: System.Gadget.Settings. w rite "Record", dtmSystemUptimeSecs RecordTime = System.Gadget.Settings. r ead("Record") ...Show All
Visual Studio How to add "Database Professional" to Team Suite?
Hi all... I see that the "Database Professional" Team Center is now available. I have Team Suite installed already (so Software Arch., S/W Dev, S/W Test and Project Manager are already installed.) How do I install the database professional component Do I download the full installation DVD and install it, or is there an easier way (I have already installed VS SP1, and it still isn't there.) Thanks! Mark Here is the download link which looks fresh (8th January 2007) and is even only 7.9MB: Visual Studio 2005 Team Edition for Database Professionals Add-on for Visual Studio 2005 Team Suite Edition ...Show All
Visual Studio How can I get the standard Post- and Pre-build Event functionality?
Hi there, I use VS.2005. I'm working on the custom MPF package. I want to use the stardard VS funtionality - Post- and Pre-builds. So, my questions are: 1. Is it possible to get it in principal 2. If answer for the first question is No - how can I implement somethink like that I mean how (or where) can I get the information about macros from the standard list Can anybody help me Any help will be much appreciated! Thanks. I guess you are talking about pre- and post build events which are right out of the box when you import the microsoft.common.targets. E.g. you can add the following propertygroup to an iron python project file (pyproj file) from the VS SDK < PropertyGroup > < PreBuildEvent > dir &l ...Show All
Visual Studio 2008 (Pre-release) System.Windows.Interop.FromHBitmap Bug
For some reason using FromHBitmap directly on an HBitmap from a BitBlt results in a funny looking (empty except for random icons like the X in the upper right corner) bitmap. But if you pass it through System.Drawing's hBitmaps functions it works. Even stranger, it works fine under Remote Desktop. Any ideas I'd rather not even use the unmanaged Wic stuff Am I missing an easy way to get a screen capture done in WPF without using System.Drawing FYI this is June CTP bits. Adam public BitmapSource CaptureScreen( bool oldway) { int hdcSrc = User32 .GetWindowDC( User32 .GetDesktopWindow()), hdcDest = GDI32 .CreateCompatibleDC(hdcSrc), hBitmap = GDI32 .CreateCompatibleBitmap(hdcSrc, GDI32 .GetDev ...Show All
Audio and Video Development TIMING :Using "inherit" for an animated property and more
I have two questions: 1. Can "inherit" or "auto" be used for an animated property, If yes then, Does "style" inheritance occurs from the loaded DOM or the live DOM 2. For style properties which have Initial="auto" and inherited="true". Does it mean that the default value is inherited from the parent element Thanks in advance Chapter 7.5.2.4.3.2 and the tables 7.5.2.4.3.2-1 - 7.5.2.4.3.2.-4 have information on values which are returned by AnimatedProperty API in such cases. Based on that table the "auto" string value can be returned only by style:breakBefore, style:breakAfter, style:display, style:displayAlign, style:suppressAtLineBreak. Most of the other properties should return "the normalized string of len ...Show All
Software Development for Windows Vista SDKViewer
My June SDK doesn't have SDKViewer in 'WPFSamples/Demos'. I found a download but it was for the September CTP. What have I missed and how can I view the way I viewed with the May SDK Thanks, The SDK Viewer demo is currently being updated to reflect the RC1 release of the .NET Framework 3.0 -- it will not be included or available with the June or July CTP release of the SDK. We're hopeful to have the updates completed in time to include with the RC1 refresh. Once the sample is updated, the included documentation will reflect the current state of the WPF APIs, rather than the obsolete content from the Sept. CTP (as was previously included). Thanks. -Keith ...Show All
Visual FoxPro Will VFP6 work with Windows Vista
My company operates a series of VFP6 runtime databases successfully in the Windows XP environment. We currenly have one PC loaded with Windows Vista. When the runtime setup is run it does not install the runtime files onto the Vista PC. Can VFP6 work in the Windows Vista environment How can this problem be overcome Many thanks in anticipation. >> We currenly have one PC loaded with Windows Vista. When the runtime setup is run it does not install the runtime files onto the Vista PC. Vista has introduced lots of new "security" so one issue may simply be that you don't have rights to install - I think you have to logged in as a System Adminsitrator and maybe eve do something ...Show All
Visual Studio 2008 (Pre-release) Skinning a ScrollViewer (How do I create a custom ControlTemplate)
I'm creating a custom control templates for all of the controls in an app I'm developing to give a custom look and feel. However, I'm stumped on the ScrollViewer. When I have a ListBox or some other control that uses a ScrollViewer and both scrollbars are visible, I can't figure out how to change the color or behavior of the gray box in the bottom right corner where neither of the scrollbars extend into. Anyone have any ideas Shawn Van Ness has an example scrollviewer template with the vertical ScrollBar on the left: http://www.windojitsu.com/blog/leftiescrollviewer.html The one pixel border is probably a bug. The WPF controls should match the native versions but they are not pixel perfect because the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is the free artwork that was promised for XNA?
In a lot of articles I've read they said the XNA would have a large database of free artwork (both 2D and 3D). Is this available somewhere Thanks, John I usually just make my own art. Even though I don't have an artistic bone in my body (one drawback of being a programmer), I have never really ever made a project that I felt would suffer from my mediocre art skills. If you have searched and actually need some decent art, I would suggest going to www.3dbuzz.com and www.gamedev.net in search of artists that can join your team, even if it is only a two man team. I've always thought that it was better to be a programmer, because a programmer has the ability to make crappy art, but artists usually have no ...Show All
Windows Live Developer Forums Calling Map Object From Another Browser Window
Is there some reason why I can't do step "(c)" The intent is to enable a given hyperlink, when clicked, to pan to a specific lat/lon. This used to work before new Map control version. (a) Create a map instance in Window #1. (b) From Window #1, open a popup window populated with hyperlinks containing lat/lon data. (c) Refer to the map object in Window #1 using, var map = opener.map; Here is the relevant script located in the popup window: < html xmlns ="http://www.w3.org/1999/xhtml" > < head > < title > Mapped Facilities </ title > < script language ="javascript" type ="text/javascript" src ="http://dev.virtualearth.net/mapcontrol ...Show All
Visual Studio Tools for Office How to access Tables
I'm developing a spread sheet application using Visual Studio 2005 tools for office.In my excel application there are tables.I need to access these tables from c#.How can I achieve this You have to decide how to best identify the tables. In Excel, one generally uses the RANGE object to identify things. In some cases, it's appropriate to select the entire table, then assign it a name (or apply a RangeName host control - this is covered in the VSTO documentation). If the data area grows and shrinks a lot, then the UsedRange property might be more appropriate. ...Show All
Windows Forms Form to Form
Hi I am trying to change label text the form1 to form2 and the form2 to form1. I don't know to do it. I use C++/CLI 2005. Any idea I have it #ifndef ControlWindows_h #define ControlWindows_h namespace ControlWindows { using namespace System; using namespace System::Windows::Forms; ref class CWindows { static Form ^WindowsX2; //static Form2 ^WindowsX22; // ERROR static bool X2Status = false; public: // FORM2 static void ShowFormX2(); static void CloseFormX2(); static void ChangeCaptionX2(); static void MngVentanaX2(Object ^Obj); }; } #endif ...Show All
.NET Development Dynamically remove textbox
I created textbox dynamically. i would like to remove them dynamically. ie i created one checked list box that will display some items. if user checked the item i would like to create a textbox and user unchecked it i like to remove the textbox. how do i do. pls help. thanks in advance. I need code sample. Thanks Arun Hi Arun, When you dynamically add a control to a form, you should always add the control to the Controls collection of the form (this will ensure proper cleanup of all references when the form closes). To remove a control from the form, you can simply remove it from the controls collection. Here's an example (it's in C#, let me know if you need a VB sample): ...Show All
SQL Server Connection Timeout when processing cube
I am getting a connection timeout error when processing a cube with measure group containing 4mil rows or so. It errors after 5 mins and after about 3mil rows have been read so it's probably not the ExternalCommandTimeout issue. The Fact table for the measure group is created using a named query. I would appreciate any insight into why the error is thrown after 5 mins. Here's part of the error: =================================== The connection was lost. Close all processing dialog boxes and try processing the object again. (Microsoft Visual Studio) =================================== The connection either timed out or was lost. (Microsoft.AnalysisServices) ------------------------------ Program Location: at Microsoft.An ...Show All
SQL Server Trigger Question
Dear Experts; I'm trying to create a trigger that replaces a login ID field (LOGIN_EMPL_ID) with the correct data to make it LDAP compliant with our A/D. We create logins in A/D using last_name & if a last name already exists, we use 1st initial + last_name. With the trigger below, regardless if there are duplicate last names or not, the first initial is always getting added to the last name when populating the LOGIN_EMPL_ID field. I'm sure the problem lies in the use of the “Select Top 1” in the statement, but I fail to see how to get away from using this so I don't get a multiple rows error in the sub-query within the IF statements. Any ideas Thanks for your help CREATE TRIGGER tr_Updt_Login_Empl_ID ON [TC ...Show All
