KingMartin's Q&A profile
Microsoft ISV Community Center Forums Serial Port communication from Excel 2003
I am trying to write a simple VBA macro that reads Text data from a Serial port and puts it into an Excel 2003 spread sheet. The solution needs to work from a standard installation of Office 2003. I cannot use add-in modules since the envrioment has been locked by the SysAdmin. Can I make calls to windows API to communicate with the port from Excel Is there some sample VBA code that shows how to do this ...Show All
.NET Development .Net 2.0 release version breaks VS 2005b2?
I have just upgraded my .Net frameworks to 2.0 release version, and in the process, I had to uninstall the previous beta version and also some other stuff like the compact framework. Now, Visual Studio beta2 is not launching anymore. Is this a known issue With kind regards. Two things. One, ClickOnce docs tell you all about how it downloads the most recent version of the .net framework. Yea it feels like *** wh ...Show All
Windows Forms DataBinding - Hardcoding ValueMember and DisplayMember
Something that always bugged me about data binding in Visual Studio is that you specify the DisplayMember and ValueMember of the binding to be strings that are *supposed* to be properties of the data source. You get no intellisense help when entering these values and, if you spell it wrong or the name of a property changes later, the project still compiles and runs fine until you hit that binding. Is there a way, using reflection or any other m ...Show All
.NET Development Execute a list of SqlCommands
My client/server architecture is designed in a queued fashion: the client may send many messages to the server, and from there, the server will create SqlCommand objects, and execute each one in SQL server. What I'd like to do is find a more efficient way to execute lots of commands; currently, I do: // open a connection SqlConnection connection = new SqlCommand(...); // create a command SqlCommand command = new SqlCommand("DoSomething" ...Show All
Visual Studio Local Variables invisible to debugger?
Recently the VS2005 C# debugger has been exhibiting strange behaviour. Here is an example: private void Test() { double dd = 2.0 * 3.0; return; } Up until recently, I could set a breakpoint on the return statement and place the mouse over the "dd" variable to see its value. Also, I could open the "Locals" window and see "dd". All of a sudden, the local variables are "invisible" to the debugger. Nothing shows up when I hover the mouse over ...Show All
Visual Studio Express Editions Command object
In Visual Basic.Net 2003 there were oleDbCommand objects which I used to create a select statement. I then created an oleDbDataReader in code. The command object then executed the reader object which I used to fill my comboBox with items. I did this so that I could update the items in the combobox from another form and so the comboBox would put the string in my database field and not the ID. My question is: I don't see the command object and ...Show All
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { &nb ...Show All
Software Development for Windows Vista Help Desk Support Sample APp does not compile
Error 1 Could not find type 'SimpleReadWriteActivities.SendData'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. 0 0 Error 2 The variable 'sendData1' is either undeclared or was never assigned. C:\Windows Workflow Foundation\Examples\SimpleReadWriteActivi ...Show All
Windows Forms dir/file listing in a ComboBox/ListView
How do you fill a ComboBox/ListView with the Directory and File info for the computer the ap is run on I've seen it so many apps that it must be fairly easy to do. I own a copy of Salamander and use it to  ...Show All
Windows Forms Notification when component deleted?
I have a designer for my custom control. How do I get notified when the control instance is deleted from the designer Is there a designer event or method I should be looking at Phil Wright http://www.componentfactory.com Free user interface controls for VS2005 ComponentRemoved event of the IComponentChangeService will help you achieve what you want. HTH. Alan ...Show All
Smart Device Development "\Windows\wceload.exe", "/noaskdest/noui ?
Hi, I am installing cab file of my application using wceload.exe. While my application already exist it gives message "My application is already installed.Reinstall I should not get this message and the application should silently installed.I tried using Rapi class of Opennetcf.Desktop.Communication as shown below. Dim m_rapi As New RAPI m_rapi.CreateProcess("\Windows\wceload.exe", "/noaskdest/noui \Windows\MyApp_PPC.ARMV4.CAB") But ...Show All
Visual FoxPro how can i get the current active control's name in a form?
thank you Jet Hi Jet, if you don't don't need the name of the control inside a grid you can use code like this to get the name of the active control: IF TYPE("Thisform.ActiveControl") == "O" lcName = Thisform.ActiveControl.Name ENDIF It's important to check the type beforehand, because the ActiveControl property doesn't exist if there's no active control. For grids this code would return the name of the grid, not the name of the ...Show All
Visual Studio "Start Debugging" vs "Start without Debugging" speed in VS2005
I experienced extremely slow performance in VS2005, when I "Start Debugging" an application which uses System.Drawing.Bitmap (might be anything that uses interop, but that's just my wild guess). Everything is fast if I "Start withoug Debugging" and it does not matter if I compile a release or a debug version. Please check this little piece of code: namespace ConsoleApplication1 { class Program { static void Main( string [] args) { Syste ...Show All
Visual Studio Express Editions Visual 2005 C++ Express - setup.exe fails
"Setup did not complete correctly" Any thoughts I've encountered this error on three separate Windows XP SP2 fully updated systems, I've tired to install it on. None of these sytems had pre-release versions of VS 2005. Forgot this: EventType : visualstudio8setup P1 : 10860 P2 : 8.0.50727.42_rtm_x86_ixp P3 : msi P4 : inst &nb ...Show All
Windows Forms Getting Extended System Colours
Does anyone know how to get the "extended" system colours in managed code If you open the Display dialog (Appearance / Advanced), quite a few of items contain Colour 1 and Colour 2. I need to get both to make my "Custom&q ...Show All
