M Thomas's Q&A profile
Visual C# Events
I know how events/delegates works. its when implementing them that seems to be the problem with me. now... I have: a Form several classes the form knows nothing, it only knows about 1 class, which it instantiates. this class instantiates other classes. The form, nor do the other classes, need to know about each other. now, I have successfully created events which when raised from the main form, one of the classes acts upon it - thats all good. what I want now, is the complete opposite. I want to make an event where, in one of these classes (not the class the main form creates) I can raise so that the main form picks it up and acts upon it. Since I am mostly confused at times when events are involv ...Show All
Visual Studio Uninstall framework 1.1 from windows 2003 server and install v.2
I am using Microsoft windows 2003 server standard Edition with service pack 1. I wanted to use framework version 2. I have unistalled framework 1.1 using control panel -> Add and Remove and then I installed framework version 2, which was installed successfully. After that I noticed that framework 1.1 was still in my computer. I can't see framework 1.1 in control panel -> add and remove list but it is in Adminstrative Tools menu, which also has Framework v.2. So is there anyone who help me to remove/uninstall framework 1.1 becuase i want to use only framework v.2 The 1.1 Framework is a system component on your operating system. You shouldn't have to remove it as it works side by side with the 2.0 framework. ...Show All
Visual C# Invalid search path in LIB environment variable
I recently upgraded from VS2003 to VS2005 by removing VS2003 and the related MSDN files and then installing the new VS2005 and MSDN. I now have a new C# project in VS2005 but am getting Compiler Warning CS1668 which I quote below. Note that the path that it says is invalid refers to VS2003. Where is this info stored and how can I change it Invalid search path 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\ATLMFC\LIB' specified in 'LIB environment variable' -- 'The system cannot find the path specified. Thanks, Allen Baker Howdy Folks, I just ran into this error myself, and while the above messages helped, they just missed the real problem. I got this error on a new machine with no ...Show All
Visual Studio No files in "Binaries"-Folder: OptionSettings in .vcproj?
Hello, following challenge: I want to build C++ Solutions (1 project/solution) with TFS and VS2005. When the tfs builds the solution it wont copy the dll- and lib-file to the binary-folder. I found out that it has something to do with the settings of the Project-File (.vcproj) since I changed some of the properties to the default-values ("<inherit from parent or project defaults>") and it works (it copies at least the dll-file, however the lib-file isnt there and the drop doesnt work). Now my question: Which properties do I have to change to which (maybe default-)values so that it works Thank's in advance, Chris Since I already deleted 2 answers I posted to my own thread cause I thought I found the so ...Show All
Windows Search Technologies limit on number of files indexed?
What is the limit on the # of files indexed My count for # of items indexed (in wds v2.6.5) never exceeds about 11% of my actual file count. (164,832 indexed of 1,500,000 actual files) Yes, I'm selecting all file/drives to index against. Yes, I've rebuilt the index more than once. I'm guessing that for folks here thinking of indexing their entire business' file sets, be they on servers or local, the index has to scale well beyond anything I've seen so far, and yet... Thanks Jeff, This is the perfect place to report this feedback. I'll be getting your information over to our development team ASAP. It might help if we could contact you directly. Would you mind sending me an email a-paulny@micro ...Show All
.NET Development How can access to LPT1 directly
hi I need to send data directly to printer port.So I want to know what is similar command for this in VB6 : open "lpt1:" for output as #1 Try something like this, I don't have the hardware anymore to test it: [DllImport("Kernel32.dll")] static extern IntPtr CreateFile( string filename, [MarshalAs(UnmanagedType.U4)]FileAccess fileaccess, [MarshalAs(UnmanagedType.U4)]FileShare fileshare, int securityattributes, [MarshalAs(UnmanagedType.U4)]FileMode creationdisposition, int flags, IntPtr template); [DllImport("kernel32.dll")] static extern bool CloseHandle(IntPtr hdl); private void TestPrinter() { ...Show All
Visual Studio Tools for Office Debugging VSTO2007 for Outlook addins...
Hello all, I have an existing addin that runs/installs fine in Outlook2003 with VSTO2005. I have migrated it over to Outlook2007 with VSTO2007 and it runs in the debugger fine. However when I create the setup project and install the addin, it will not get loaded when Outlook is launched. Is there a way to debug or get more information about why the addin is not getting loaded I tried to set the VSTO_SUPPRESSDISPLAYALERTS=0 and that does not seem to show the more information box like in Outlook2003. Thanks in advance, ~Joe One thing you can do is go into File | Word Options and under Advanced, at the bottom under General, check the box for "Show add-in user interface errors." That will ...Show All
Windows Forms How can code short cut for CTRL+Enter in VS 2003.
I am using Visual Studio 2003 and wanted to provide a menu short cut key as CTRL+ENTER key. I am not seeing this key by default at System.Windows.Forms.Shortcut. How can assign CTRL+ENTER key in menuitem Thanks in advance. Here is my sample code, this is VC++ 2003 version code. protected: bool ProcessCmdKey(Message* msg, Keys keyData) { const int WM_KEYDOWN = 0x100; const int WM_SYSKEYDOWN = 0x104; if ((msg->Msg == WM_KEYDOWN) || (msg->Msg == WM_SYSKEYDOWN)) { switch(keyData) { case Keys::Control | Keys::Enter : Execute_Query(); // Handle logic in this routine this->Parent->Text = S"Keys::Control | Keys::Enter key captured"; // just to know whether this is hit retu ...Show All
SQL Server File Headers SQL Express
I apparently have corrupted my file header on my database, and then copied it to my backup database. Is there some way 1. to have the machine recreate the file header automatically and fix it so that I can use the database or 2. a back door into the database so that I can get the text files of my database to reconstruct the database from scratch. The error mesage I receive is: Database schema could not be retrieved for this connection. Please make sure the connection settings are correct and that the datase is online. the header for fil c:\inetpub\wwwroot\nappapfinal\APP_Data\ASPNETDB.MDF is not a valide database header. The File Size property is incorrect. Thank you well the ...Show All
Software Development for Windows Vista Designer Rehosting - State machine workflow
Hi, I am hosting designer in my applicaiton, but when it loads state machine workflow, it re-arranges all states on its own. It looks ugly as some time it shows last state first and first state somewhere in middle. Its hard to find flow. I want to keep the state diagram displayed as is when it was designed in design mode. Any idea what should i do to keep the state shapes at its original location instead of re-arranging on new place Thanks, Hiten Can you provide a sample Where should i override this, as i can not find the method overridable when i extend my class from WorkflowDesignerLoader Thanks, Hiten ...Show All
SQL Server How to move the packages To a different server
In sql server 2000 if we need to move a package from one database to another we have to move the package. But is it the same in Sql server 2005 integration services. let me know sureshv wrote: In sql server 2000 if we need to move a package from one database to another we have to move the package. But is it the same in Sql server 2005 integration services. let me know I don't understand this, sorry. In SQL2000, if a DTS package existed in a database then it was in the msdb database therefore there is no concept of moving a package from one database to another. The same applies to SSIS packages. -Jamie ...Show All
Visual Basic How to format a HTML MailMessage ????
Hi, I have an application which sends an email after certain process, How can I format the html part like using css styles for fonts families, sizes, colors, etc , I have tried to concatenate the hole tags without any success because but they need "". Any idea Thanks in advance George well to deal with the quotes that actually need to be in the message, just place double quotes around it, it acts as an "escape" to tell the compiler/VB not to close off the string completely but rather "embed" it. So... ""My name is bob"" would show exactly: "My name is bob" otherwise this: "My name is bob" will show exactly: My name is bob does this make se ...Show All
SharePoint Products and Technologies Application crashed if i set the data source of excel to "external data connections"
My application would crash if the data source of my excel workbook on server is extracted from sqlserver . So I add a breakpoint to the code... I found it throw an exception when code run on "ExcelService.OpenWorkbook" I saw the post Excel Services Architecture said "You can develop applications that call Excel Web Services to calculate, set, and extract values from workbooks, as well as refresh external data connections" Any suggestion hi, Luis Bitencourt-Emilio The message is: The workbook that you selected cannot be loaded because it contains the following features that are not supported by Excel Services: External data ranges (also called query tables) ...Show All
Community Chat Question with Vista
Sorry this might be misplaced Will Vista be able to run Xp programs such as games and files Another thing is would you suggest having 2 opperating systems and if yes should I have a seperate drive Will this affect my computer by slowing it down having 2 OS's thanks Yes, Vista should be able to run XP applications without a problem. Having 2 OSs installed concurrently shouldn't cause major performance problems, other than the fact that it might increase drive fragmentation. If you've got a "dual boot" system, it will only run one or the other OS when you boot up the machine, so even though they're both present on the hard drive, only one at a time is running. ...Show All
Visual Basic How to disallow user minimize, restore down, and close
Hi, anyone know how to close minimize, restore down and close button on form, i can't find any property..... Hello Bibi: What you want to do is not something one would normally try to do in a Multiple Document Interface. The MDI concept revolves around allowing the user to work on multiple form interfaces randomly. From what you are asking it sounds more like you are looking for a way to present different interfaces one at a time either as part of a sequence or as part of a a selection focus. Something along the order of an Outlook like interface. If so, then use a SDI Interface that swaps custom user controls in and out of the main panel as desired. Ibrahim Malluf ...Show All
