Mongsreturn's Q&A profile
Windows Forms IndexOutOfBoundsException when data is updated
I'm having issues with my datagridviews. I have my application listening to events and updating its data tables based on them. I'm not providing any user interactivity and I have no use for any selection, but I have no idea how to turn that off. The reason is - as these things are being updated, I'm having the views die off, because (at least this seems to be how it's going down) the datagridview is trying to select a row that was just deleted as it was updated. It's giving error boxes at runtime saying row X doesn't exist when it's being selected. Is there some way I can prevent them from ever trying to make that selection If not, how can I at least go about preventing that from killing off my datagridviews ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DX SDK october 2006?
Is / will there be a october release of DX9 we are used to have an update every 2 months, but i dont see the october release yet on msdn :( Thanks, how did u know its allready on the downloads The directx page itself has not been updated yet, do u search the downloads every day to see if its there or something ...Show All
Microsoft ISV Community Center Forums DAO can't connect to Access2007
Hi all, I'm using DAO to connect to an Access2007 database file. But it reports such an error "unrecognized database format". Does anyone know if MS supports using DAO connect to Access2007 Is there a new release of MDAC along with its Office2007 Thanks in advance, - Haojun I am having the same Problem.. Can anyone Help Also - This looks like a seasoned forum of Users who are still using DAO. have any one you guys used the DAO in Client-Server Mode across the Networks Can I have multiple users ( from different Systems ) connecting to an MDB on the Server Any help will be appreciated. Venkat M desikan.venkat@gmail.com ...Show All
Software Development for Windows Vista Wave Audio API not working in Windows Vista
Dear all, My program hangs when I tried to run it on Windows Vista Ultimate Beta 2. After some debugging, I realised that the functions that I used from the Wave Audio API in Windows SDK do not seem to return, thus causing the program to hang. One example is the function "waveInGetNumDevs()". Could anyone please kindly advise ...Show All
Visual Studio 2008 (Pre-release) Remote Factory Class
Hi For a better understanding about what my problem is, assume that i have the following: Assembly1 { IMyInterfaceA { string MyMethod(); } The article you mentioned helped me a lot - thx for that. It took a while to get it to work... Now I have the remote factory class - everything works fine. I can use the factory to return reference to other services to the client. But it is still possible for the client to access all services directly. Is there a way that calling clients only can access the factory service directly and only the factory service can return references (via the EndpointAddress10) to other services to the client Client must use the factory - ist this possible Regards Bastian ...Show All
SQL Server Problem connecting to remote datasource
I'm having trouble connecting to my datasource while processing (but no trouble connecting to it when developing). My datasource is using a database on a different server to the AS server. I'm getting an error along the lines of The remote datasource '' cannot be found in the metadata I've tried all the different impersonation options with no joy. I've got the SSAS service running under a user thats set up as an administrator on both the AS server and the database server. Can anyone shed any light on what I might have done wrong. Thanks in advance, Jon Managed to solve this myself in the end. For those interested it was something to do with the dsv and the datasource object I ...Show All
Software Development for Windows Vista Error while executing the SQLDatabaseActivity
Hi Deve;opers I downloaded the sqldatabaseactivity from this site,while executing this activity it is giving an error message like "An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code Additional information: Parameterized Query '(@CustomerId nvarchar(4000))SELECT * from Customers WHERE Custo' expects parameter @CustomerId, which was not supplied." I don't know what to do" If anyone knows how to solve this error plz reply. Thanks in advance... Regards Prabhakar Answered in this post. ...Show All
Visual Basic Missing Assembly Microsoft.SqlServer.ConnectionInfo while using ClickOnce deployment
hi, I am using VB.net and I have a problem while publishing my application using the ClickOnce deployment on a shared folder on the seever. On my PC, the application works fine where the VS2005 is installed. But when I tried to install and run the application on an end user machine , it gives me the following warning: "Unable to install or run the application. The application requires that assembly Microsoft.SqlServer.ConnectionInfo Version 9.0.242.0 be installed in the Glocal Assembly Cache (GAC) first." how can I solve this problem Thanks in advance Regards, I found the solution to this problem. well what you have to do is go to the project properties --> Publish tab ...Show All
Visual Studio Tools for Office How to rectreive a display name from the Recipient object.
Hi, I am trying to retreive the the display name of an email address using the Microsoft.Office.Interop.Outlook.Recipient class For example the display name in the email address David Ghikas [david.ghikas@cybergrants.com] w ould be: David Ghikas. I have looked at the Recipient.Name property but it returns the emails address ( david.ghikas@cybergrants.com ). Any ideas Thanks in advance, Dave Hi Dave, given this isn't a VSTO specific question and more of a question on the Outlook OM, you'll have a better chance getting it answered in the following Outlook newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.vba&lang=en&cr=U ...Show All
Visual C++ Finding the windows directory?
I have tried googling, and searching these forums for what I thought would be a simple answer, but I can't find it. I am looking for a way to find the location of the windows directory on any given computer. How would I go about doing that I am sure it's a win32 call but beyond that I am stuck. Thanks, Matt mattdawg wrote: I have tried googling, and searching these forums for what I thought would be a simple answer, but I can't find it. I am looking for a way to find the location of the windows directory on any given computer. How would I go about doing that I am sure it's a win32 call but beyond that I am stuck. Thanks, Matt It is a shell API called SHGetSpecialFolderPath(). ...Show All
Visual Studio Express Editions Windows Filtering Platform
Hello As per microsoft specifications Windows Filtering Platform is supported on Windows XP. I installed visual c++ 2005 express edition and Microsoft Platform SDK R2 (Full version). But i can not see the WFP sample application installed in samples directory for sdk. Also fwpmu.h fild do not exist in sdk includes folder and i am unable to use WFP functions. So for some reason Windows Filtering Platform SDK did not get installed. And i wish i can find out that reason. Can anyone help please Sorry if i did anything wrong. Regards Jack Hello Thanks very much for help. I am downloading DDK . Another 230 MB to download :( Thanks again for help. Regards Jack ...Show All
Visual C# generics in constructors
Hello, I have a question about generics in constructors. Assume I have two constructors, e.g.: public Constructor1(string param1, string param2) { ... } public Constructor2(T param1, string param2) { ... } This will compile without problems (by contrast, I'd get a compile error if I had "public Constructor2(string param1, string param2)" because there would be two constructors with "string, string"). However, if at runtime I call Constructor2 with the generic parameter as a string, I get runtime problems (because Constructor1 and Constructor2 cannot be distinguished). Does anyone know how to deal with this in a clean way I know that I could, for example, change Constructor2 to something like "Constructor2(T param1 ...Show All
Software Development for Windows Vista InstallLocation not being written to the registry when my msi is run (test 19)
Hi, One of the requirements of test case 19 is that the InstallLocation in the registry is not null. My install location is not being written to the registry. Please can anyone let me know what to do to solve this I am using Visual Studio 2005 to generate the msi file. Thanks. I am looking at the registry key specified by test 19: 1. Browse the following registry key: a. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\ b. Look for the {ProductCode} from above c. Open that registry key The other registry entries specified in the test are there, the only one that's empty is the InstallLocation: a. DisplayName b ...Show All
Visual Basic Picking out the year
Can anyone tell me how to pick out the 4 digit year from a date I'm using VB.Net 2003 thanks tattoo date.ToString("yyyy") http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconcustomdatetimeformatstrings.asp ...Show All
Visual Studio Express Editions type bool
Hi, Could someone please tell me why the compiler won't accept the type bool I'm not using the SDK. Is there a header file I need to include (Visual Studio C++ Express). Thanks. WENZU5 wrote: Could someone please tell me why the compiler won't accept the type bool I'm not using the SDK. Is there a header file I need to include (Visual Studio C++ Express). To add a couple of thoughts to what nobugz and Martin have already provided: 1. bool is not a standard type in C , only in C++, and that might be your problem, as nobugz mentions. 2. If you ever build native Win32 WinApps , using the Platform SDK, then you may need to be using BOOL (capital ...Show All
