TValoy's Q&A profile
Visual Basic Disabling Copy & Paste from keyboard shortcuts
Hello, I'm developping an application in Visual Basic.Net 2003 and I would like to disable Copy,Cut and Paste from keyboard's shortcut. Because it's a requirement in my application not to permit these options. Thanks in advance for your help, Joanna. Rather than trying to catch the key combinations, you're better to intercept windows messages. If you just need to stop it at the control level, subclass the control (e.g. a textbox ...Show All
.NET Development how to format xml string with an xsl stylesheet
Hi, I have a string that is in an xml format <items><num>5</num><text>sometext</text></items> I want to transform that string somewhow using my xsl document listed below and attach it to the body of an email. I was trying to use the code below but the xmldocument load does not take a string. How can i go about accomplishing this. XmlDocument docXml = new XmlDocument(); docXml.Load(sb.ToString()); X ...Show All
Smart Device Development Connect SQL Server Express from Pocket PC
Hi All, I am new in .net and also in pocket pc. I would like to know how to connect to SQL server using bluetooth if I use the LAN, then may I know how is the connection string and what is the thing I need to imports or declare. Hope can get some idea from all the experts. Thanks. You need to use SQL Client just like on desktop. Physical media (Ethernet, Wi-Fi, BT) is irrelevant as long as you're runni ...Show All
Visual Studio 2008 (Pre-release) Number format
Hi how can i store number like 00,01,02,03,.....10,11 in a combo box or list box Thanx-Nagu Yeah good catch. My code was based on his code but your one is better :) Thanks for pointing that. ...Show All
SQL Server is there documenation on format of transaction log entries
I searched the forums and SQL 2005 book online to see if Microsoft provides documentation on the format of transaction log entries. I could not find any... Will Microsoft provides this documentation It will also be nice if Microsoft will provide utilities to help us read content of transaction logs (online or backup file) This will be quite helpful for DBAs. Oracle provides a FREE utility called log miner...  ...Show All
SQL Server Execute SSIS package without SSIS console
Hello, How can i do to execute SSIS package without SSIS console This can occur when you use a hosted database with your hosted web. thanks This is a snippet of code of our vb service: "Fic" is when you have your dtsx allocated on Windows folder "Sql" is allocated on MSDB "dts" is allocated on SSIS Package Store (both Sql Server and Windows folder) Select Case ObjSSIS.sSourceType Case &q ...Show All
Visual Basic Rename / Find all references
When I try to rename an identifier (any identifier) using the refactoring option in the context menu the IDE suddenly disappears (no error /watson dialog asking me to send a report to MS, nothing, the IDE suddenly disappears). This also happens when I try to find all references of an identifier (using the context menu). The behaviour is the same for Beta 2 Std Edition and Beta 2 Express Edition. Strangely enough I can rename a class if I ...Show All
Visual C++ about " while ( cin >> string) "
I am studing a famous book called "c++ Primer" by Stanley B.Lippman. and in it, there is a program as follows: #include <string> #include <iostream> #include <vector> using namespace std; void main () { string word; vector < string > text; while ( cin >> word) { text.push_back( word ); } cout << "words read are: \n"; for ( int ix = 0; ix < text.size(); ++ix) { cout ...Show All
Visual Studio Team System TFS Setup Fails with Error 32000 / stsadm.exe
The relevant setup log data appears to be this: 04/10/06 11:00:53 DDSet_Status: Commandline: "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Bin\Stsadm.exe" -o setconfigdb -connect -databaseserver "CGDPS01" -databasename "STS_Config_TFS" 04/10/06 11:00:53 DDSet_Status: IgnoreExitCode: 0 04/10/06 11:00:53 DDSet_Status: Silent: 0 04/10/06 11:00:53 DDSet_Status: ActionStart: 0 04/10/06 11:00 ...Show All
Visual Studio Tools for Office Adding toolbar button like Excel's Undo/Redo
Hi All, We are building a VSTO application for Excel. I am trying to add a button that will act like the excel undo/redo button in its look and feel. We want to add a button with an Icon that when clicked on will show a dropdown list similiar to how the Undo/Redo buttons do. I'm not sure what kind of button to use. Is this even possible Can someone please help or guide me to a resource or forum that might be a more appropriate audience fo ...Show All
Visual Studio Express Editions Need Help Please
I was just wondering, i have 2 listboxes, one which contains names, another with contains results, when ordering the listbox containing the names in alphabetical order, how do i order the listbox containing the results according to the names Please There are several approaches to this, depending on what you want to do. If you simply want to display the sorted data, then abandon the scheme of using Listbox ...Show All
Visual C++ I am a learner,will someone recommend a good book of VC?
My question is in the title........,Please tell me....thx... Take a look at the following link with nice MFC programming books in general. http://www.amazon.com/exec/obidos/tg/detail/-/0201633582/002-7229022-1197648 v=glance Also, msdn is a great place for MFC references and samples: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vcmfc98/html/mfchm.asp Hope this helps! Thanks, Ayman Shoukry VC++ Team. ...Show All
SQL Server Securing the MS SQL Server 2005 database on client side
Hello! I developed database driven .NET application and I need to deploy it. I faced a problem, which is "how to protect my database against direct access". I use MS SQL Server 2005 Express Edition as a DBMS and appropriate database. I want to make possible to manipulate with data in my database only through my client application. 1. How do I define SA password and instance name in silent mode of MS SQL 2005 EE installation with M ...Show All
Visual Studio Team System excluding files from the command line
Is there a way using fxcopcmd to analyze all files in a directory except for a few specific files I am trying to avoid using a project to specify the targets. FxCop doesn't support masking out files, it only supports wildcards to add certain files. If you want to do anything more fancy, you have to either create a project or write a batch/jscript/perl script to build the commandline. Regards, Jeffrey ...Show All
Visual C# Random give the same value
hi, i'm building a small game like puzzle so i need to swap an array items in different order each time i run my program, every time i use random it works and make the array order diferent but the problem is every time it give the same result as if i used fixed number here its example of my code in class Program { static int [] Numbers = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; static void Main( string [] args) { ...Show All
