Eswans2000's Q&A profile
Visual Studio 2008 (Pre-release) how to stop elements from being created?
I am writing a program in which one object only appears if it a boolean value is true. The object is in the XAML code for the project. How can I make it so the object only 'comes to life'/initializes under a certain circumstance Yes, Mike is right on there. I posted a small sample to show how to do it. It shows programmatic creation of an element and also programmatic harvesting of elements that were declared in markup as a resource. I also used this sample to illustrate the minor changes in a xaml file that are necessary depending on the programming language you use. VB & C# xaml files are generally going to be slightly different. Thanks, Rob Relyea Program Manager | WPF Team | h ...Show All
Visual Studio Express Editions New user / templa
Hi I have just installed VB express for the third time and just want to get started. when I try to open a new project I get the followng error "the filename, directory name, or volume label is incorrect. (Exception from HRESULT 0x8007007B" Any ideas gratefully received Thanks for the info, tried changing the directory still doesn't work. I'm trying to install visual studio express editions visual basic 2005 on xp ...Show All
Visual Studio Express Editions Dialog question
Hi I'm new to windows programming. I need to know how to get a user input, using a dialog or something similar (like scanf() from stdio.h) And only C code if it's possible. :) Thanks in advance. If you want to stick to console style input, you can include <iostream> and use std::cin to get input. If you would like to use dialog boxes and a UI for gathering input, you may want to look into Windows Forms (.NET) to do this. If I'm not mistaken, I believe C++ Express comes with the CLR and Windows Forms project templates. If you don't want to use .NET, you could download the Platform SDK and set up your build environment so you can build MFC applications. This will make is much easier to develop g ...Show All
Audio and Video Development Advanced Content Playback on HD-A1
Hi All, I am having trouble getting an advanced content application to play once burned on a DVD-R and inserted into the Toshiba HD-A1 HD DVD player. Video and audio play fine using this method, but once the advanced content object is reached the player stops playback and gives an error. Does anyone have any advice on this We have tried the samples posted here and we get the same results. Thanks. >For advanced content, it seems HD-XA1 asks for AACS encrypted content. I tested the > same iHD content mastered with and without AACS, my HD-XA1 only take the one > with AACS. iHD content playback is restricted to a small subset of the fonctionnalities if the content is not AACS signed (no permanent storage access fo ...Show All
Smart Device Development FileStream Write Timeout Read Exception
It appears from the help file that the FileStream class has an accessible "WriteTimeout" property. The write path for the file is the flash (SD) card on the device. I wrote some test code using standard FileStream and Binary Writer objects to check what the default timeout was and came up with the exception listed at the foot of this message in response to the code below. The code is for a Pocket PC under the .Net Compact Framework 2.0. Why are timeouts not supported on this stream Do I need to override the "CanTimeout" property to work around this Is it because the target device is a flash memory card Note that there does seem to be some kind of inherent timeout occurring (I haven't measured it exactly but its over ...Show All
Windows Forms Change editable area of datagridview
How, when user click on a text cell of a datagridview, the editable area of the cell became bigger than the cell(span 3 rows and 2 columns), which make it easier for the user to edit Thanks Hi, How about doing in the following way Hope it helps. private void dataGridView1_EditingControlShowing( object sender, DataGridViewEditingControlShowingEventArgs e) { if (e.Control is TextBox ) { Rectangle rect = this .dataGridView1.GetCellDisplayRectangle( this .dataGridView1.CurrentCell.ColumnIndex, this .dataGridView1.CurrentCell.RowIndex, false ); int curHeight = rect.Height; this .dataGridView1.CurrentRow.Height = curHeight * 2; ...Show All
Software Development for Windows Vista How to generate workflow code file
Hi all, I'm developping workflow designer.I have found System.Workflow.ComponentModel.Serialization.ActivityCodeDomSerializer class can get CodeDom object,how but am I not too clear generate workflow code file(.cs and .designer.cs and .vb and .designer.vb file).Who can give me the detailed explanation how to make or provide some sample code thanks. there is a nice article about designer rehosting at ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp ) that should have that working. take a look at MemberCreationService and EventBindingService services for more details. Sergey ...Show All
Windows Live Developer Forums free memory in windows server 2003
hi i have program that use big text files , when i run that my computer Page File Usage is being high . If i close my application , Page File Usage won't decrese how can i free memory ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct3D mobile and Macromedia Flash
Hi! Does anybody know if Flash 7 (mobile edition) takes advantage of MS Direct3d mobile to bust the performance in Flash apps We are testing an application on Win CE device and the performance of the flash app has been being really poor. We expected an improvement after installing Direct3D, but the performance was the same (poor). Any clue Thanks in advance ...Show All
SQL Server XML Newbie: sql 2005 compliance to XML standards
I was told that XML names must not start with the letters xml (or XML, or Xml, etc) But I was able to store such data in sql 2005. Any thoughts on this one TIA, Barkingdog The XML standard says users should not use names beginning with the letters x, m, l, but not does not strictly forbid it. The reasoning is that the name may be used by the standard at some point in the future, like the name xmlns is specifically used now for example. ...Show All
Visual Studio Adding files to VSS using batch files
I have an MS-DOS batch file that does the following: check-out files from VSS copy new &/or modified files from one location to the server which is the working directory for the files in VSS check-in these files back into VSS Is it possible to add the new files ti VSS without knowing their filenames or directories If so, what command line coding do I need to use Thanks Peter Peter, Depending on exactly what you're trying to do, it sounds like the best solution would be to detect whether each file copy is overwriting an existing file. If not, then you know that filename should be added to VSS. ...Show All
Software Development for Windows Vista logging using Spy++ on VISTA's Explorer causes hang
Hi there - I was trying to use *log messages* functionality using Spy++ (that comes with Visual Studio .Net, tried the version that comes with Visual studio 2005 as well) on certain child windows of IE like address bar, toolbar buttons and doing that makes IE unresponsive without fail (infact it makes the whole system unresponsive until you kill that instance and run a new explorer instance). Actually trying to use "log messages" functionality on any window that uses explorer causes this system hang. Did anybody face this issue already Is it a known issue Regards Kapil ...Show All
Visual Studio Express Editions VB 2005 Exp - Running exe file on other PC
Hi, I was triyng to run my application on other computer and when I start the exe file, the following error ocours: "To run this application, you first must install one of the following versions of the .NET Framework v 2.0.50.727" What can I do Regards, Pedro I'm running it at the same type of system as i developed it on(Windows XP SP2), the only diference is that VB 2005 express isn't istalled on this computer... And in debugging i ain't getting an error neither when i run it on the computer on which i created it. ...Show All
SQL Server Built-in data types in SQL Express: best practices?
Greetings, I think these should be rather simple questions, yet I spent a number of hours last night digging through the forums here and msdn and couldn't find any satisfactory answers. Basically, there tend to be types of information that are commonly saved in most databases, like names, addresses, phone numbers, email addresses, etc...and there are a variety of built in data types in SQL Server. What are the best built in datatypes for some of the common entries in a sql database. Also, there are a number of character based types and I am curious why one would be more useful in certain situations than another. Why is there char( ), nchar( ), varchar( ), nvarchar( ) and text datatypes Why so many Also, what is the "text" ...Show All
Windows Forms How do I make a form read only (vb.net)
Hi, I'm aiming to create a form to display non editable information. I am aware that I can set the enabled property to false, however this greys out the information and I dont want this. Is there any way I can make the form (or the controls on it) read only Thanks Well, as your aim is to create form for only display, you can use labels to show the value. If you want to make TextBox control as readonly, you need to set textbox's ReadOnly property to true. Hope this helps you. ...Show All
