Jim P.'s Q&A profile
Windows Forms minimize child form
How can i minimize all the existing child forms in MDI application Set each child form's window state to minimized, already hinted in this thread ... Here's the VB code: For Each form As Form In MdiChildren form.WindowState = FormWindowState.Minimized Next Andrej ...Show All
Visual Studio Express Editions HOW TO: Unable to Cast COM Objects
I have an application created using ADODB components, but when I run it in Debug mode in VBX2005, I got an error like this "Unable to cast COM objects"! what was this all about, I am new to this programming language VBexpress. I hope anybody here can help me about this :( From the debug menu start debugging by "Stepping Into" or pressing "F11" continue stepping until you get to the line that throws the error and then post at least that line of code if not the entire method. ...Show All
.NET Development How to delete content of a Stream?
Hello there, How to empty a Stream object or clear it's contents before writing to it Any help would be greatly appreciated. TIA, Kris SetLength(0) might not work on certain files that have some known structure, like a zip file, or an image. It does work for a file with raw data in it. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to detect version of D3DX installed?
With the newer versions of DirectX there are several different D3DX dlls that exist. Just checking for DirectX version 9.0c is not sufficent as that version contains several revisions of the D3DX dlls. If a game ships with the April release the earlier versions of DirectX 9.0c will not work. How can the exact installed version be determined A game that uses the April 2006 version of the D3DX DLL should include the DirectX End-User Runtime from the April 2006 SDK and uncondionally install it during the game's install procedure. If including the entire runtime is too much of a burden (eg. for ansmall web download game) then are ways to reduce to the runtime install to just the necessary D3DX DLL to sav ...Show All
SQL Server AS2005? PeriodsToDate - How to release hand break?
Hi Yukon Gurus! I have a simple query with periods to date --Sample 1 WITH member [Date].[Calendar].[Column 1] as AGGREGATE ({ PeriodsToDate ([Date].[Calendar].[Calendar Year], [Date].[Calendar].[Month].&[2004]& )}, [Measures]. CurrentMember ) SET [RowSet0] AS {[Customer].[Customer].[All Customers]. children } SET [RowSet1] AS topcount ([RowSet0],100,([Date].[Calendar].[Column 1],[Measures].[Internet Sales Amount])) SELECT {[Date].[Calendar].[Column 1]} ON COLUMNS , CROSSJOIN ({[Customer].[Customer].[All Customers],[RowSet1]},{[Measures].[Internet Sales Amount]}) ON ROWS FROM [Adventure Works] It takes almost 40 seconds on my 3,0 Ghz bo ...Show All
Visual Basic The Basics about SQL Server: JUST the Basics
For now I don't anticipate needing large database storage from SQL Server (Express 2005), and based on my programming aspirations I doubt I will ever need a large database. All I need SQL Server for is to store a few settings. As of now I want to store just a few text items in SQL Server. (I've already done .txt files but that seems to take extra work and is less unorganized, and I need several txt files). What command would I use to write one piece of text and retrieve that same piece of text Is there anything else thats important that I should know before going about this I'm guessing something like this: My.Computer.FileSystem.Writealltext(database.mdf, "textbox1.text", False) But I would need to refer to a specific row and ...Show All
Gadgets Basic Gadget Codes?
I've been looking all around the net for an understandable guide to making gadgets. So far, I've found nothing. Does anyone know a good guide, or could post the basic codes I need and files I need to create do u download a tutorial sidebar gadget there exist a base gadget (vemEmptyShell Gadget). http://microsoftgadgets.com/Build/SidebarTutorial.zip thats is very useful to me to learning base of sidebar gadget. good luck. ...Show All
Smart Device Development Connection Failed. The remote procedure call failed
hi m new to microsoft technology right now m working on .net Compact framework application using C# for Ppocket PC. m facing sreious problem 'cannt connect to pocket pc emulator' whille running alpplication showing error that To "Pocket PC 2003 SE emulator" Connection Failed. The remote procedure call failed' plz suggest what to do.... Thanks In Advance please Help ...Show All
Windows Forms How to get the next item?
If the user have selected an item, how I can work with the NEXT item (LISTVIEW) ...Show All
Visual FoxPro Wait Window "" timeout 0.01 and Sleep(10) in VFP-9
At times my VFP processing requires *rest(s)* it seems. (report processing/printing, various functions, .BeforeRowColChange events, etc.) I've *discovered*: Wait Window "" timeout 0.01 && ... helps at times while the preferred: Windows API Sleep() routines && ...I've had NO success with API Sleep() declarations Any general or specific feedback concerning *rest(s)* in VFP-9 is appreciated. Andy, I've tried your code (verbatum) and with multiple other lines of refresh as well. All this to no 'correct' solution. Unfortunately, I'm deficient with the VFP-debugger and have been compiling a My.Exe (vs. a My.App) (with a conjoined MySplash.exe) ... and/or may be a little obsessive-compulsive here. Thus I altere ...Show All
SQL Server High availability for Database Mirroring
Hello, I would like implementing a database mirroring architecture with SQL server 2005 but i have questions. If i don't use a cluster architecture, i would like knowing if there's any solution to move the alias SQL server from the primary to the secondary by script. Anyone got a pb like me or any solution ... Thanks for your help... Hi We are currently developing an application that is having SQLServer 2005 as its backend. We want to make this application available at all times. How can i achieve this infact what are the exact parameters that i can use in my connection string to mention the mirrored instances in it. Thanks and regards Salil ...Show All
Game Technologies: DirectX, XNA, XACT, etc. About XNA: Sky, Landscapes and Models
The basics that we expect from a rendering suite, game engine or whatevers, is to be provided with tools about Skies.. or Landscapes loagin.. or to load models in diferente formats, like 3ds, .x, .obj.. so.. whats about this and XNA . All the material that i saw until the moment was about 2d drawing... y just got that in only 2 days because i had a little experiencies with anothers engines.. like OGRe or Irrlicht.. i decided that XNA is the way to go for my next title because we can target on Xbox 360..... and.. well.. the million dollars questio(s) are... How can i load landscapes with heigtmaps for example.. How can i load an obj object what about that strange format WXM , or SWM What about a accurate collision detection ...Show All
Visual Studio Urgent Help Needed: Customize and Extend Report Viewer
Is it possible to extend reportviewer control to have functionality like say "Dyanmic Help" where as soon as you mouseover the parameter text, it displays what the parameter means HOw would you do it otherwise(alternative way) Thanks, How can i show or hide for example the print icon or customize the select format drop down to show only export to excel for example ...Show All
Software Development for Windows Vista Creating a DependencyProperty with an initial value?
Is there a better than the following sample: public static DependencyProperty BGColorProperty = DependencyProperty .Register( "BGColor" , typeof ( Color ), typeof ( PDSBaseContainerActivity ), new PropertyMetadata ( null )); [ Description ( "Background color." )] [ Category ( "" )] [ Browsable ( true )] [ DesignerSerializationVisibility ( DesignerSerializationVisibility .Visible)] public object BGColor { get { Color cBG = ( Color ) base .GetValue( PDSBaseContainerActivity .BGColorProperty); if (cBG == Color .Empty) { cBG = Color .FromArgb(255, 176, 186, 198); base .SetValue( PDSBaseContainerActivity .BGColorProperty, cBG); } return cB ...Show All
SQL Server Date out of range?!
Greetings! I have a data source that gets generated based on a variable with the following SQL : "select * from result where deletion_ind = 1 and when_deleted >= '" + (dt_str, 50, 1252) @[User::Last_Run_Date] + "'" But when I run my package I get an error message saying: The conversion of CHAR to DATETIME resulted in a DATETIME value out of range The Last_Run_Date variable is set to '2006-06-25 14:35:05.450' When I run the code in a QA session it works, but in the package it complains! What am I doing wrong Thanks for your help in advance. Hi Jamie, I am not quite sure how to use profiler for this problem. I have a data source coming from SQL Server 6.5. The data source i ...Show All
