GoldPantherSPQR's Q&A profile
Visual C++ Some doubt on WM_PAINT and MemoryDC
I have some doubt on DC operations in Windows. 1. When we call Invalidate() for any window, does WM_PAINT is sent to all child windows and child of child windows as well 2. I have created a Compatible memory DC for a picture control of a dialog box. I am painting something in the memoryDC and I am using BitBlt() to copy from the MemoryDC to the DC of the pic control in a regular interval. I am seeing when I am calling Invalidate() [both with 'true' and 'false' parameter] for the dialog box, the memory DC is also getting erased, the old painting is lost and a subsequent Bit ...Show All
SQL Server how to correctly work with two (or more) databases?
Does anybody know how to work with two (or more) databases in SQL Server 2005; or where that information can be obtained I searched online, in BOL and asked in this forum but with no success. information in this posting does not work; results in invalid object name (source database) and/or database does not exist (destination database) errors: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=292125&SiteID=1 this post about the database does not exist has received no replies: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=295742&SiteID=1 Of course, both databases exist and their names are valid. Both can be ...Show All
Visual Studio Express Editions Why don't "Closer Look: More About Menus" examples work?
MSDN Library > Development Tools and Languages > Visual Studio > Visual Basic > Visual Basic Guided Tour > Creating the Visual Look of Your Program: Introduction to Windows Forms > Giving Users Choices: Creating Menus at Design Time > Closer Look: More About Menus The code examples for "MenuStrip" and " ContextMenuStrip" don't work! Anybody know why It was the ContextMenuStrip example at the bottom that did not work. I now see that these are also known as PopUp menus! So, I suspect that my PopUp Blocker suppressed it! I don't think ...Show All
Visual Basic Debugging
My vb windows form application calls a local web service I created on my computer. I have added a wsdl file to my windows form application which exposes the web service. In debug mode, how do I view my web service code from my windows form application. Fred Herring Hi, I think it might be something like this if yo want to see the application or web service try this 'Show.webservice() ...Show All
Smart Device Development VS2005 Compiler Bug?
I have some source code that does DES, 3DES encryption decryption based on the algorithm. A lot of bit operations. The same code, with the same testing program, yields inconsistent results: - Compiled under EVC4 for PPC2003 and SP2003, test passed. - Compiled under VS2005 for Win32 desktop platform (UNICODE defined), test passed. - Compiled under VS2005 for any Windows Mobile platform (PPC2003, PPC5.0, SP2003, SP5.0), test failed. Any idea how to tackle this Is there any service pack for VS2005 device compilers Thanks, Lao K Finally found the culprit line but still thought this might be a bug in the compiler... Original line: ...Show All
Visual Studio 2008 (Pre-release) XAML Geometry - How can I do a reverse clip?
Clip enables me draw only the area within a specified region. I want to draw everything BUT a specified region. Basically, I want to define a transparent ellipse, such that I can see whatever is underneath. Thanks NIK - I don't understand how Opacity would provide an inverted a clip. Here is a simplified version. The XAML below produces a red circle (the area clipped to display) on a white square. NOTE: Instead, I want a transparent circle through the red square, to reveal the white square underneath < Window x:Class = " WinFxGeometry.Window1 " xmlns = " http://schemas.microsoft.com/winf ...Show All
Visual Basic Problems sending routed emails using macro's in excel
Hi, I have been trying to create a program to automatically send a routed email for a work database using excel and macro's. The program works but it requires user input. Basically, when the user presses the button to rub the macro a message box appears saying basically that a macro is trying to access outlook is this ok. The user then must click yes and also click a check box to allow access for one minute. I would like to know if there is a way I can some how edit this message box so that user input is not required I have no training in programming and Im just learning as I go along. I have read that maybe I need to do some ...Show All
Visual Studio Express Editions How do you detect an empty Cell in DataGridView?
Hi Folks, Before updating the DataSet, how do you detect an empty Cell in a DGV I have a required field but can't detect a Null in the empty Field. I've tried lines like this trying to detect an empty cell in a DGV but getting nowhere fast: If DataGridview(1, index).Value = "" If IsDBNull(DataGridview(1, index)).Value If DataGridview(1, index).Value = Nothing If DataGridview(ColName, index).Value.ToString = Nothing I can detect if the Cell has text but not if it is empty. How do you detect the empty Cell Thanks much. I'm able to detect the empty cell using "= Nothin ...Show All
Windows Forms Eliminating flicker in transparent controls
Hello all, I am working on an application that requires transparent controls. I have used Bob Powells method (http://www.bobpowell.net/transcontrols.htm) and it works just fine. However, it is not possible to use double-buffering. This is mostly not a problem, but for some controls that I use (e.g. a transparent gauge-type thing drawn with GDI+ that changes frequently) there is&n ...Show All
Windows Forms How to share one WindowsMediaPlayer by two forms?
I have two forms between which the user can switch. Each has its own music track. One of the two forms is the application's main form. Is there any way that they can share a single axWindowsMediaPlayer control I'm asking this because if I give them each their own WMP control, there is some ugly sound interference even though of course one of the two has been ordered to stop playing. It stops playing OK, but still does 'something' that interferes with the other WMP's sound. Thanks, Guido That is, unfortunately, not good enough since the form that is instantiated (in my case, form 2) does not ...Show All
Visual Studio Team System Saving a query after changing sort order results in message
If you open up an existing query and you click a column heading to re-sort based on that column, after trying to close out the query you receive a message: "Changes you have made in this view have caused the underlying query to be modified. Would you like to save the changes to the query " Yes or No is the only options. I know this is new functionality in Beta 3 Refresh (from Beta 2) but can somebody explain what changed and if this is a valid warning The biggest problem I have with this is that the only people allowed to create new or modify existing queries in the "Project Queries" are Project Administrators. However, when an avera ...Show All
Windows Forms Visual Studio 2005 Beta 2 released!
For those who don't read blogs and don't know yet: Microsoft released Beta 2 of Visual Studio 2005 this weekend: <a href="http://lab.msdn.microsoft.com/vs2005/">http://lab.msdn.microsoft.com/vs2005/</a> So far, it's only available to MSDN subscribers, but will be released to the general public later (for the European, Middle East and African area on April 25th). If you don't ...Show All
Visual FoxPro form not found
I've started using this nice and handy Type Library Viewer located in Samples and again, it works fine with FoxPro desktop and the _SCREEN environment but when I try to BUILD an .app file doing everything as has been recommended: Project=>Buld=>App I get an error: Form TYPELIB not found. My code that uses the form is as follows: SET PATH TO "C:\Program Files\Microsoft Visual FoxPro 9\Samples\Solution\WinApi\" DO FORM typeLib . scx As I said I have used it already many times in design environment. The two statements above are the newest addition to my ever growing form with many functions I need. What i ...Show All
Visual Basic Using WebBrowser Control: ComboBox & CheckBox
Hello! I'm new to this community, but you may have seen my handle at vbCity. I would like to achieve 2 things using the WebBrowser control. 1. Select a value from a ComboBox on a certain website 2. Check or Uncheck CheckBox on a certain website Dim ecHtml As HtmlElementCollection = webDoc.All.GetElementsByName("user_id") 'Set ID ecHtml(0).SetAttribute("VALUE", tbID.Text) For textBoxes, I can set values using above codes; however, for comboBox & checkBox, I have tried in many ways but results were no good. Do I have to import mshtml (I would really like to avoid using mshtml since DLL is huge) Please help ...Show All
Visual C++ break point is n/a while debuging
I have a porblem while debug a class: Althout I clean and recompile/relink a project successfully with "debug|win32" configuration, the devenv always not allow me to debug a class. The devenv said " source files does not match the original version " - but I've clean and recompile it! At the same time, this class is debug-enabled before some modification. ;-( Why Any suggestion Thanks. Solved! I've deleted this class, and re-created another class to replace it. I can set break point no ...Show All
