Wagnericardo's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. setting IsMouseVisible to true improves performance
Does anyone else notice that setting the IsMouseVisible to true improves performance Whenever i move my mouse and IsMouseVisible is set to false, my framerate decreases significantly Any thoughts I've not tried changing that property, but I've had similar issues with the mouse. When running in windowed mode, if the mouse is over the window things run normally, but when moving the mouse outside the window CPU is pegged and frame rate drops significantly. ...Show All
SQL Server Odd FMTONLY statements
Hi, I recently started using ADO for connecting to a remote SQL Server from Delphi. Prior to this I used BDE (Borland Database Engine). I noticed that all SQL communication seemed slow – only half the speed of using BDE! I ran a trace using the Profiler (from MS SQL Server) and noticed that ADO generated roughly twice the amount of traffic compared to BDE. Every SQL statement (SELECT, INSERT and UPDATE) send from my application was preceded by the exact same statement encapsulated in ‘SET FMTONLY ON/OFF’. -Example Start- SET FMTONLY ON SELECT * FROM TabelVersion SET FMTONLY OFF SELECT * FROM TabelVersion -Example End- Why are these odd statements being passed to the server ...Show All
Visual Studio 2008 (Pre-release) RichTextBox save to string
Hi, I want to save the content of the a RichTextBox to a string, in the DataFormats .Rtf. This is an example a saw, but it doesn't help me to save in a string. TextRange sourceDocument = new TextRange (richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); MemoryStream stream = new MemoryStream (); sourceDocument.Save(stream, DataFormats .Rtf); cmnjgfj C C call stream.Seek (0, SeekOrigin.Begin) after you call sourceDocument.Save(). TextRange sourceDocument = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); using (MemoryStream stream = new MemoryStream()) { sourceDocument.Save ...Show All
Visual Studio passing date range parameters from .net windows application
Hi! I need to pass the initial date and final date to a report from a Windows vb.net application, is there any tutorial about this i'm absolutelly newbie, i'd appreciate any help. I've already did the report and launched it without parameters from a form but can't find how to do it with a date range parameters THIS IS A SAMPLE CODE 'this one uses crystal report 8.5 Dim XFROM As Date Dim XTO As Date Dim APP As New CRPEAuto.Application Dim REPORT As CRPEAuto.Report Dim PARAMS As CRPEAuto.ParameterFieldDefinitions Dim XSTRINGDATE As String Dim XSTRINGDATE2 As String XFROM = 'your start date in here XTO = 'your end date in here XSTRINGD ...Show All
Visual C# Making a Web Browser with Tabs
Hi, ive been making this web browser with tabs but i just can't get it to work. Does anyone have any ideas on what i'm doing wrong. Here is my code; #region Using directives using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Windows.Forms; #endregion namespace MyOwnTabbedBrowser { public partial class Form1 : Form { int current_tab_count = 0; ArrayList tabpages = new ArrayList (); ArrayList webpages = new ArrayList (); public Form1() { InitializeComponent(); tabControl1.TabPages.Clear(); ...Show All
Windows Forms CheckBox Checked.
Hi there I have a class that derives from Checkbox and is basically a toggle button. I also have the ability to group the class instances so that they behave a bit like radio buttons and reset the checked state of any other buttons of this class on the form. Trouble is, changing Checked to false also triggers the CheckedChange delegate. Can anyone think of a way to temporily stop the CheckChanged event from firing from with the class itself. To explain a little further, the class has a method ResetChecked and this sets Checked to false, but in doing so it fires the CheckChanged delegate. I can't remove the delegate and add it after because I just can't find a way to do that Any ideas anyone Thanks Dave It ...Show All
Visual Studio Selecting a ProjectNode through code
I'm trying to programatically set the currently selected node in my project. I have the HiearchyNode that I want to select, but I can't find anything off of the HiearchyNode or the project node to set that node as the currently selected node Any help would be appreciated Yeah, that was my issue.. I didn't set the solution explorer to be the active window... once I did that I was all set thanks ...Show All
Windows Forms Prevent execution of a block of code at design time.
Does anyone know how to prevent a block of code from executing at design time. I have a number of new classes with properties that can be configured at design time but setting the property triggers other code that should only be executed at run time. Is there an attribute that can be applied to the section of code to restrict its execution to runtime only. Eg public string SomeProperty { set { myString = value; if ( not in design mode ) { ... execute this section } } } Neil Harper Thanks, at first that seemed to work but the DesignMode property only seems to be true when you are in the property editor. When you drop the object from the toolbox onto the form DesignMode i ...Show All
Visual Studio Team System More Continuous Integration problems
I need to have my team builds which run on CI to build higher level applications if a lower level framework component is changed. For example, I have a framework Component and I have an application which has a binary reference to this framework component. If the framework component is changed, I would like this to be built. I would also like the application which has a binary reference (and any others which do) to be built. Is there a way which I can do this You didn't specify how your CI build was being kicked off, whether through some custom web service notified by the TFS app tier or through some other mechanism like CruiseControl.Net. In my case, each dev team has a CI process running. The team t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What are the best resources for people trying to get started?
All right, simply put, for someone interested in learning how to program, how to design, and how to model, what books or websites would you reccomend most for someone trying to get into Game Development DirectX/OpenGL/Shockwave PC/Console/Mobile/Phone Native/Managed What are your current skills and programming language expertise Otherwise http://www.gamedev.net/reference/start_here/ ...Show All
Visual Studio macro to build MSI project - get popup when I set Version property
OK, I've written a macro to build a MSI project, incrementing the version and setting the productcode GUID. However, as soon as I set the Version property I get a popup saying "It is recommended that the ProductCode be changed if you change the version. Do you want to do this ". I run this macro from the command line as part of an automatde build but this popup stops the build. It didnt do this in VS2003, but it does in VS2005. Any solutions: ways to suppress popups, or anything else Order doesnt seem to matter (ie version before ProductCode or after) Code: Dim prop As EnvDTE.Property Dim propVersion As EnvDTE.Property ' get the project version property propVersion = GetPropertyByName(proj.Properties, ...Show All
Windows Forms Strange behaviour of the stored procedure for SelectCommand
Hi, all! I've met a strange situation. I have a stored procedure: ALTER PROCEDURE dbo.GetTemp AS begin insert into dbo.log (ProcName) values('GetTemp') select * from TempDB end This procedure is set as SelectCommand property for TableAdapter. When the Fill method for this adapter is invoked, the DataGridView gets the data from, but nothing is added to the dbo.log table. When I start this procedure manually, everything works fine. What is the reason Is SelectCommand somehow prohibit any changes in DB Thank you in advance gqlu wrote: Hi, Try to set it as UpdateCommand property. SelectCommand will not change the database. Hope this helps. Does it mean I can't change tables other than one, for which I've created Tabl ...Show All
Visual Basic Should I use a List, Arraylist or something else?
I am writing a scientific datalogging program and have created a class which stores and handles all the actual data as it arrives from the various instruments. On a timer_tick I want to take a snap shot of the data. I have tried this using Public Class DataSet Public DataTime As Date Public ElapsedTime As Double = 0.0 Public Temp_T0 As String , Temp_T0_dbl As Double etc... Public CurrentData As New DataSet Public Shared LoggedData As New List( Of DataSet) however on the timer_tick I use LoggedData.Add(CurrentData) the whole list is overwritten by the CurrentData values. The LoggedData.Count increases but all the items become the same as CurrentData ...Show All
Visual Studio Team System Import change history into TFS
For the migration to TFS we have exported all defects from our current defect tracking system and want to import this in TFS. This export also contains all change history for each defect (date changed, changed by, field change values). Is is possible to import all this information into to TFS, so we could still query for the change history of fields of these imported items Thanks. I do not completely understand what exactly you mean with "have a relaxed rules in xml". Maybe an example may clarify things. Below is a (shortened) export of a single item from our current tracking system. <SCR SCRID="35"> <Fld FLDID="7" FieldName="Title">Fee ...Show All
Visual Studio 2008 (Pre-release) How to Display a Dataset in a Table format?
Friends, Im trying to show my dataset in a Table format. Since there is no datagrid in WPF, i can not show it as i required. Please suggest me to do bind the dataset and show it in Table format. Raj. there is a sample in the sdk http://windowssdk.msdn.microsoft.com/en-us/library/ms771774.aspx ...Show All
