Ludo-R's Q&A profile
Visual Studio 2008 (Pre-release) How do I implement the light gray background text in a TextBox?
Windows Vista has lots of places where text boxes show a light gray info message on the background telling the user what they can enter in that box. The message disappears as soon as the user types something in the box. For example, the search box in explorer windows demonstrates this functionality. The Windows UX guidelines talk about this as well. How does one go about implementing this functionality in Avalon Is there a way to modify the TextBoxBase template perhaps This is what I ended up with... using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; namespace MSCAF { public class InfoTextBox : TextBox { public InfoTextBox () : base ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Suggestion: Add detailed error messages to XNA Exceptions.
InvalidCallException is pretty useless when it contains no detailed information. Right now, in order to see detailed problem information a user is required to have: 1. Visual Studio 2005, 2. Unmanaged Debugging enabled 3. Debug version of Direct3D. No doubt the Debug version of Direct3D would always be required, but isn't there a way to capture the Direct3D error output automatically, and put that information into the Exceptions that XNA throws That would help novice developers tremendously, and decrease the amount of questions on this board as well. Jim Perry wrote: You might want to post this to the XNA Connection Yes, I would vote for it :-) ...Show All
Visual Basic Inputbox
hello. A question please. What is the control VB.net similar to the inputbox (vb6) Thanks... ...Show All
Visual C++ Memory leak
I have a method that continuously reads 1MB of data from a hardware in a short period of time. I used a memoryStream data structure for this. In every call of this method, a memoryStream is created and used to read the data, and then it is closed and goes out of scope. These are my assumptions in this implementation: - The garbage collector will free the memory used for the memoryStream when its instance goes out of scope - The allocation for the memoryStream is done from the Large Heap objects, because of their 1MB size Therefore, I expected to see an increase in the memory for a short time until a gc collection of the 2nd generation occurs finally and the memory decreases. However, the result is different: ...Show All
Visual Studio 2008 (Pre-release) WPF for Windows XP!!!!
Dear Friends, Can anybody please inform me, where can I get the SDK for building WPF applications in Windows XP. Thanks & Regards, Lalit .NET 3.0 download using link below: http://www.microsoft.com/downloads/details.aspx FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en VS.NET 2005 extensions download for .NET 3.0 http://www.microsoft.com/downloads/details.aspx FamilyId=F54F5537-CC86-4BF5-AE44-F5A1E805680D&displaylang=en Windows SDK download using link below: http://www.microsoft.com/downloads/details.aspx FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en WPF Resource: http://wpf.netfx3.com/ ...Show All
Visual C++ Is it possible to create a managed DLL and have a program built by VS 6.0 use it?
I know it's possible to use C++/CLI to create an old style native DLL library that can be used by an application built using VS 6.0. I verified that this works by building a native DLL library in VS 2005. Then I used VS 6.0 to create a test program that uses a function from the DLL and I was able to successfully call this function. But what if we want to use some of the .NET Framework Class Library in this DLL library In other words, can I create a managed DLL and use it from a program built with VS 6.0 Can this be done if the signatures of all the functions only used native types and .NET classes are only used internally by the functions Thanks for any information. BlueBeetle wrote: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. kW X-porter is updated for 3ds Max 9
I have finally had time to build and test the kW X-porter plug-in to export .X files from 3ds Max 9. This exporter does better than the DirectX SDK exporter (like, it actually does multiple animations), and has a few more bells and whistles than the PandaSoft exporter. Also, with 3ds max 9, the stock IGame.dll file is not overwritten, as the right version is included from Autodesk. http://www.mindcontrol.org/~hplus/graphics/kwxport.html Note: most users claim kW works fine for them, and some users get crashes. I can look at the crashes and fix them if I get a copy of the .max file. The e-mail for questions is found in the installed documentation. OK Mr. Watte, anyway thanks for the attention. I did the update with the version ...Show All
Software Development for Windows Vista Hosting Workflow Runtime
We are thinking of hosting the runtime as a static member of a webservice. We’d keep the workflow instance id in the corresponding message. Could anyone see any issues doing so Though this should work, it would probably make more sense to base it off of session id's in your proxy. You can then lookup the corresponding workflow instance and deliver the message based on the session id. I think this provides a more natural, workflow-agnostic experience for the client. Thanks, Angel ...Show All
Windows Forms DataGridViewComboBoxCell
Hello All, I can define a DataGridViewComboBoxCell as visible = false Best Regards Sandro Peixoto If i define the value of cell to DbNull.Value, the ComboBox appears, but it doesn't have any values. I would like that the ComboBox not shows in the DataGridView. Best Regards Sandro ...Show All
.NET Development XSLT problems with "cdata-section-elements" and "omit-xml-declaration"
Hi All, Sorry, this is cross posted from the SQL server reporting services forum here: I'm using some xslt documents to transform the xml output of my reports in sql server 2005 reporting services, but have come across two curiosities where the xslt filter seems to behave unusually. Firstly, I need the final saved file to have an xml declaration, which I believe it should do by default. Even if I put omit-xml-declaration="no" in the xsl:output tag I don't get an xml declaration. At present we have a custom job that writes these declarations back into the xml after SRS has saved it. Secondly and more importantly, I need to have some of my output tags wrapped in CDATA sections. I've tried using the ...Show All
Visual C# Restrict the size of a string
This is more then likley going to be an easy fix, but at the moment I can not think straight. What I am tring to do is restrict the size of a string. I am in the process of migrating some data from one sql system to another and need to truncate some text in the process. I need to convert a text field to a varchar(7989), to do this I need to make sure that the data from the text filed is striped so that only the first 7989n characters are returned. I have a data reader that I am going through and am adding it to a genieric collection that I am then going to process and re insert into the new system... all I need is a way to restrict the text returned from the data reader... all the rest is fine. one way would be to create a dat ...Show All
Windows Forms Question about docking a control in a panel
I created a search form in a panel, to be placed in forms: A textbox and a button on top, and a datagridview docked to bottom. I add this panel to my form, and set dock to fill. Then the problem occurs: If the form i add this panel to is higher than the panel, the datagridview will just remain the same size, and stay at the bottom, while the textbox and the button is at top, making a big empty space in the middle. Like this: [TEXTBOX] [BUTTON] ----------------------------- | Dataridview area | ----------------------------- How can i make the datagrid automaticly adjust it's own size, to fill the empty space What i basicly want is to spike the top of the datagrid to right underneith the textbox and button, and whenever ...Show All
Smart Device Development Error when closing threaded modal dialog.
Hi, I am getting ThreadAbortException when my ShowDialog completes its work. I have created a thread and called DisplayInformation, which creates form instance and call its ShowDialog (means form displayed as Modal). In the form I have a button by clicking on it, I set the DialogResult to OK. Whenever I press that button the thread terminated abnbormally with following exception. This behavior is for CF2.0 and PocketPC 2003 SE emulator. Sometimes it work on Device. ERROR: ThreadAbortException at Microsoft.AGL.Forms.WL.SetVis() at System.Windows.Forms.Control.set_Visible() at System.Windows.Forms.Form.ShowDialog() at UtilitiesThreadedDialog.DisplayInformation() at Utilities.ShowInfo() at WorkItem.doWork() at System.Threading. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where to Find XNA Documentation, Including Tutorials and Samples!
Hey Everyone, The XNA Documentation team wants to let you know that in addition to Spacewar, some great tutorials and "how-to" type articles - including full working source code - are available for you to read and play with! You get them when you download and install XNA Game Studio Express (Beta) - here's where to find them: Start Visual C# Express, and click on "Help" in the menu bar. Select "Contents" from the menu that drops down. This will open up the help viewer. When the help viewer opens, you'll see an "XNA" category. Expand that category, then expand the "XNA Game Studio Express" category under that. You'll find: Frequently Asked Questions Getting Started (co ...Show All
SQL Server Report takes long time loading
I have a report which is fairly simple but takes a very long time.. It involves the incidents being counted by categories hence it has several Union All. Also the report numbers are generetd through 2 tables hence within every Union All tehre is a left or an Inner join. sample code: SELECT 1 Sort_Order, COUNT(*) AS Call_Count, 'Incident Resolved at Level 1' AS Count_Type FROM HOUAPPS237.CallsAndIncidents.dbo.PROBSUMMARYM1 T1 INNER JOIN HOUAPPS237.CallsAndIncidents.dbo.PROBSUMMARYM2 T2 ON T1.NUMBERPRGN = T2.NUMBERPRGN WHERE PROBLEM_STATUS = 'closed' AND T2.THIRD_ASSIGNEE IS NULL AND T2.THIRD_ASSIGNMENT IS NULL AND T1.SECONDARY_ASSIGNEE IS NULL AND HAL_FIRST_RES='t' AND DATEPART(mm, DATEADD(hour, -@offset , CAST(T1.OPEN_TI ...Show All
