iterationx's Q&A profile
Smart Device Development Already installed
Hello, Every time when I debug my solution there appears a very annoying message on my Windows CE device: Already Installed ----------------- Microsoft .NET CF 1.0 ENU-String Resource is already installed. Reinstall How can I switch that off If it's already installed I don't want to reinstall it every time... Thanks for your help! Thanks for your answer. Now I know that I'm not allone! :-) Some additional information: I also have updated my VS2003... and I think this update has overwritten something in my configuration. ...Show All
Windows Forms How to select text in a textbox on entry using the mouse?
I have set up this simple event to select the text in a control upon "entry": private void cell_Enter(object sender, System.EventArgs e) { this.SelectionStart = 0; this.SelectionLength = this.Text.Length;} However, the mouse handler seems to disregard this and leaves the entry unselected. Anybody know how I can force selection of the full Text on any manner of entry into a text box TIA, Karl The MouseDown event is triggered after the Enter event. It always places the cursor at the end of the text. What you have to do : private void textBox1_Enter( object sender, EventArgs e) { textBox1.SelectAll(); } private void textBox1_MouseDown( object sender, MouseEventArgs e) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using a Render Target with a Depth Buffer (bug?)
I'm trying to make my game render to a RenderTarget2D, but when I do, it seems that that the Depth Buffer becomes disabled. In the LoadGraphicsContent() function, the code creates a render target: oRenderTarget2D = new RenderTarget2D (graphics.GraphicsDevice, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight, 1, SurfaceFormat .Color); Then, in Draw() the code selects the render target, draws some objects (they use BasicEffect, almost right out of the help text "Programming Guide/Content Pipeline/How to: Render a Model"), then de-selects the render target, and uses the SpriteBatch functionality to draw the render target to the screen. If I manually set the RenderState.DepthBufferEnable to true, ...Show All
Windows Forms "Foreign" msi files in a Setup project
Hi there: Quick question: my application uses SMO, and I need to install that on the user's machine. I got the download from Microsoft in the form of a .msi file (the Microsoft SQL Server 2005 Management Objects Collection download from http://www.microsoft.com/downloads/details.aspx familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en ) . Is there any way for me to incorporate that msi file into my setup project I tried going through the prerequisites (I already have .Net 2.0 and Sql Server Express in there), but it is not dynamic enough to allow that. I could try and package the SMO assemblies one by one (the dlls were already added as dependencies), I'm just not sure how to force them to be installed in the correc ...Show All
Visual Basic why is this stored procedure not working?
I'm sure it'e something simple that i'm missing:) stored procedure ALTER PROCEDURE UpdateItemQty1 @ItemNo INT , @invoiceid int , @qty int AS BEGIN declare @itemnumber int ; DECLARE @InStock INT ; set @instock=( select instock from inventory where itemno=@itemno and invoiceid=@invoiceid ); I F (@Qty IS NOT NULL ) SET @InStock=( SELECT InStock FROM Inventory WHERE ItemNo=@ItemNo); UPDATE Inventory SET InStock=@InStock-@Qty WHERE ItemNo=@ItemNo ; SELECT InStock, ItemNo FROM Inventory END ; works great in the query analyzer. But, when I try to call it in vb Private Sub InvoicesBindingNavigatorSaveItem_Click( ByVal sender As System.Obje ...Show All
Visual FoxPro R to L Screen in VFP 9.0
How Can I make a Program Designed by VFP 9.0 Language Start from Right to Left Without Pressing (ALT + Right Shift) Keys Thanks ...Show All
Smart Device Development How can I turn off the device in my program? Many Thanks!
I use the followed method, but it doesn't work: ExitWindowsEx(EWX_POWEROFF, 0); If I use the following codes, it can reboot: ExitWindowsEx(EWX_REBOOT, 0); Please Help! SetSystemPowerState Should help This takes the required power state , with some options Different power states being on, off, boot, critical , idle ,suspend, reset and password protected use pm.h and coredll.lib to link Regards Srikanth Bogadapti ...Show All
Visual Studio Express Editions Data Binding Crashes Program
Every time I touch anything with data bindings the program encounters a problem. What can I do First off I found the problem I had a dataSet left over. By touching I meant binding data to something, or something of the sort. And it was the IDE. When I deleted the incomplete dataset it solved the problem. And the error was the error report msg. ...Show All
.NET Development DataSet.ReadXml and Empty Datetime fields
Hi all, i'm trying to read a XML datafile (create with a VFP.XMLAdapter) into a DataSet. At the point of reading DateTime fields the reader collapse caused by the empty DateTime field. When i fill those fields there are no problems, but i want empty data!!! How can i manage to read the data into the dataset without getting errors and with the empty datetime fields I'm using VB.net 1.1 (Compact Framework) Dim reader As XmlTextReader = New XmlTextReader( New StringReader(xmlData)) Try Me .pr_DataSet.ReadXml(reader) Catch ex As Exception Finally reader.Close() End Try Yes. Mazur is right If thats is require ...Show All
Visual Studio Team System Project file checked out on save
If you select a project in the solution explorer and then click the save button, it checks out the file even though no modifications have been made. Is this by design I can't imagine that this behavior is intentional. Has this issue been logged as a bug previously You description is not entirely true. A file has the Save button grayed out if it is not loaded into Visual Studio's memory. For instance, Program1.cs will have the Save button grayed if you select it in Solution Explorer and do not have the file opened. However, if you open Program1.cs into an editor window then the Save button is active, even if you've made no changes to the file. In the same way when a solution is opened the solution and projects are always in memory, so ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT crashes instantly under Vista - fixed by run as admin
I have to set the XACT tool to run as admin to get it to run at all on Vista RC1. Is this supposed to happen XACT shouldn't be doing anything requiring administrator... Yeah, I later spotted that in the Release Notes, shouldv'e read them more carefully :) Also, there's a lot of other weird behaviour under Vista, such as the inability to set the looping of a sound to Infinity without manually tweaking the xap file, and the program beeping (ding sound) every time you select anything in the wave or sound bank windows... but I guess that's why you guys labeled it as unsupported under Vista. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar failed to launch...
Error 1 Error code: -1 encounted when initializing FBX file loader. The file is either corrupted or it is not a valid FBX file. C:\...\Visual Studio 2005\Projects\MySpacewarWin1\MySpacewarWin1\Content\Models\p1_pencil.fbx MySpacewarWin1 corrupted :( np - . . :\NonUnicodeFolderName\ yes but it's likely because of your My Documents folder (C:\Documents and Settings\UserName\ \...), just change it's destination ...Show All
Visual Studio Tools for Office Get value without making a selection
Hello all, I've created an addin for Powerpoint 2007 using VSTO2005 SE. My addin have a function that can get value from Powerpoint. For example, it will get the value from the selection that have been made in Powerpoint and display it in a message box. TWord$ = Globals.ThisAddIn.Application.ActiveWindow.Selection.TextRange.Text MessageBox.Show(TWord$) The above example code is working only if I have made a selection (highlight any word in any slide). My problem is, can I make the function to get value from Powerpoint just by placing the cursor at any one word Is this possible Can somebody explain how to make this work Thank you. Westman Hi Westman The best place to get help on working with an application is the ...Show All
Windows Forms Sizable, "Gripable" panel or picturebox?
Anyone seen any code around Need to render video on a dragable, sizable control that has a handle. TIA Some variations of the ResizePanel. Uncomment any one of the regions, but no more than one at a time. Option 2 may be the best one for you. If you need Managed code, you could always modify Hans' example to Option 2 style (i.e. use a Label as a SizeBox). using System; using System.Drawing; namespace Dotnetrix.Examples { class ResizePanel : System.Windows.Forms.Panel { #region Option 1 //const int WM_NCLBUTTONDOWN = 0xA1; //const int HTBOTTOMRIGHT = 17; //public ResizePanel() // : base() //{ // this.SetStyle(System.Windows.Forms.ControlStyles.ResizeRedraw, true); //} //protecte ...Show All
Visual Studio Installing Web Part Template to Visual Studio
Hi, I have installed Visual Studio .NET 2005 on my computer. I want to develop sharepoint web parts via vs.net. So i have installed webpart template installer from msdn too. When i launch web part template setup, i get this error: "Visual Studio .NET must be installed before you can install the Web Part Templates for Visual Studio .NET." As i said, vs.net 2005 is installed on my system. Does web part template installer required vs.net 2003 or I need help. Thanks in advance. Hi, My problem is that i want to add Web Part library project so that i could add more than one web part into one solution.This will facilitate me in deploying just one solution on Sharepoint server and all w ...Show All
