JIM.H.'s Q&A profile
Visual C# getting rid of autogenerated datasources
I used the Add Data Sources wizard and added some controls to my form. This resulted in datasets & bindingsources being added. I would now like to remove that data source. How can I achieve this I have deleted the autogenerated datasets, bindingsource & tableadaptor. But the datasource still remains in my Data Sources Tab as well as the .xsd file, etc. I don't see any Remove Data Source option... Thanks for any help. Hi, when you add new data source, it gets added to your project. Open Solution Explorer and expand your project's Properties node. There's a DataSources folder; you'll find your data source references there. If you don't need them any more, it's safe to delete them. Andrej ...Show All
Visual C# Consoles in Form Applications
Hi , I have created a Form Application with a "Button" control on it. By clicking the button , I want to open a "Console" and write something in it. How Hi, I mean by console, a window with black background like the one when we create a "Console Application" project. But i got my answer. Someone told me to use "kernel32" dll functions. If you know better way, keep me informed. I'll be grateful. Thanks anyway. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cannot get a list of Lobby aware applications (C#)
Good evening all, I just cannot seem to get a list of Lobby aware applications registered on my system. I know there are two games that are listed on dxdiag's Network tab, and shown as Lobbyable applications. But when I execute: Microsoft.DirectX.DirectPlay.Lobby.Client.GetLocalPrograms() and try to attach to a listbox, nothing happens. The array is empty. Any idea why I have DX9 installed. Is it backward compatibily issue or something I'm missing Regards, Shuhrat where you allocating memory for sessionInfo and connectionInfo I am not familiar with this code, here is how I creating address (for IP only, who care about IPX, Modem, Serial ...) procedure TfrmStarting.CreateAddres ...Show All
SQL Server MDX Calculations Script updates
I have mdx calculated members defined in my cube calculation script. Is there any tool (other than BI Studio) that would allow a power user (typically a financial controller) to modify formulas for selected calculated members Another option could be to use custom rollup formulas stored in the relational data source and offer a nice front-end for modifying those formulas, but this would require a full process of the cube, where as modifying the calculation script would only require a default process. Any other idea Thanks! I am not aware of anything like this that is available and there are a couple of barriers to actually building something like it. at present you would need to have admin rights t ...Show All
Visual Studio Documentation on XML format
Hi, Is there any documentation available on the xml format used by the class designer Thanks swin AFAIK there is no official document that contains the xml schema of the class designer serialization. But you can check this post: http://blogs.msdn.com/classdesigner/archive/2005/07/29/444501.aspx Pablo ...Show All
SQL Server Looking for sqlrun_tools.msi
Today my computer started doing something strange when trying to compile a setup&deployment project. This project doesn't contain anything related to sql server whatsoever. When i compile, it pops up a windows installer dialog that starts doing something. Eventually it asks me for my Sql Server 2005 Tools disc, specifically looking for sqlrun_tools.msi. I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one. I have no idea why its asking me for this at this time, nor do i know to do to get it to stop. Thanks in advance for any help. I am having the same problem. Whenever I try and b ...Show All
Windows Forms DataGridView adds two new rows on 'escape'
DataGridView control is adding two new rows when I press escape key. Following is the scenario: I have a hidden column in DGV. 1. I enter some characters in first column and press tab. 2. Now when I am in second column I press escape without editing contents --> This adds two new rows (so after escape there are total three rows in my DGV) I have handled following events _CellEndEdit, _DataError, _DataError, _CellContentClick Can anyone help me Thanks, Amol. Mark, Thanks for your samples at http://www.windowsforms.net/TrackViews.aspx ID=220&Type=Samples& ...Show All
Visual C++ Insert Hyperlink dialogue
When you use Microsoft FrontPage you can insert a hyperlink and it displays a cool hyperlink dialogue. I have used Spy+ and it tells me the dialogue comes from this class: bosa_sdm_Mso96 I would like to use this dialogue in my MFC MDI VC++ 6.0 project. Can I Andrew For VC 6.0 issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
SQL Server Can't Edit Table
Hello, I'm an undergrad who is using SQL Server 2005 for the first time. I have a table Components where there are three columns, ID, Name and Value, where ID and name are the composite key. I have entered some data into it from the user interface and it is entered just fine. But when I try to edit data in Value column it can't be done. This error message comes... "No Row was updated The Data in Row 7 was not committed Error source: Microsoft.VisualStudio.DataTools Error Message: The Row value(s) updated or deleted either do not make the row unique or they alter multiple rows(3 rows). Correct the errors and retry or press Esc to cancel change(s)." The way I get it, does it say that it is being bound to VS.NET environment ...Show All
Visual Studio Team System My .config file is not being copied to test folder
I have developed a series of unit tests and everything has been working fine. Now I have added a new test to verify retrieving information from my xml configuration file. I have included this file in my development project and have set the property: "Copy to Output Directory" to "Copy always". When I build my project, the configuration file is copied to the bin\Debug folder as expected. In my test project, I've done the same thing. I added the configuration file to the test project and set the property to "Copy always" as well. When I build the project, the file appears in the bin/Debug folder under my test project folder. However, when I run my test, the config file is not found. After investigating, I found ...Show All
Visual C++ PostMessage fires my message twice
Hi, I have a very strange problem, In my project (Cpp) I use PostMessage , the problem is that it fires my message twice - even though I wish to post it ones. More clearly, Whenever I try to post a message from my addin to my automation project I receive two messages, and thus, I trigger my responding function twice. It costs me computation time and it also causes computation errors. Does any one have a clue Best regards. Typically you would run into this problem if more than one Messages have same Message ID. Might be your MessageID is conflicting with some existing. You would need to put a breakpoint to check the call stack and traverse back to find out the source of the origin of the m ...Show All
Visual C# Math: Round up number. eg 1234 / 50 = 6
I have a dataGrid and i wish to produce page buttons for next and back. Therfore i need to know how many pages i will need to for my data Eg, i have 1234 rows of data and each page will contain 50 rows. So 1234 / 50 = 24.68. So I need 25 pages How do i round up a number so 1234 / 50 = 25 . Thanks. Paul Everyone here is missing the fact that 1234/50 will be executed as an integer divide, automatically truncating to the lower integer. Now, what we really want is the next higher integer, which is always just the lower plus one. So given int Rows = 1234; in RowsInPg = 50; then int Pages = (Rows / RowsInPg) +1; will given you the number you want --- with the one exception. If t ...Show All
Visual C++ I want to send a keyboard message (enter key whose name is VK_RETURN) to that window, can you write this statement for me,
I can get the handle of another window of another application,I want to send a keyboard message (enter key whose name is VK_RETURN) to that window, can you write this statement for me, you can ignore the handle I appriciate your help. What about Google and search for "SendInput VK_RETURN" Is this so complicated KEYBDINPUT ki; ki.wVk = VK_RETURN; ki.wScan = MapVirtualKeyEx(VK_RETURN, 0, GetKeyboardLayout(0)); ki.dwFlags = KEYEVENTF_EXTENDEDKEY; // or KEYEVENTF_KEYUP, one of those must work ki.time = 0; ki.dwExtraInfo = 0; INPUT ipEvent; ipEvent.type = INPUT_KEYBOARD; ipEvent.ki = ki; UINT nNumEvents = SendInput(1, &ipEvent, sizeof(INPUT)); ...Show All
Visual Studio Team System Please make Team project Rename feature high priority for V2
Hi there, We have need to rename team project, so to find out how I can do that I searched for same topic in the forum and found that lot of people are interested in that feature like me. I hope VSTS team can make this feature higher priority and decide to do it in Version 2. Thanks, Anu Yes, it's a shame that TFS does not support renaming or deleting team projects. This is a basic functionality of system like this and I can't understand how could they release the product that's missing these vital functionalities. I hope they learned their lesson for v2. ...Show All
Visual C++ out-of-memory linker error
Hi, I'm compiling a console application containing fortran files and one C-file. The compilers are Intel Fortran 9.1 and MS Visual Studio 2005 prof. The code used to compile well with Visual Studio .NET (version 2003). Now, with 2005, the source files compile (a ton of warnings from the C-file though), but the linker gives the following error: Fatal compilation error: Out of memory asking for 2097160. Link: error: problem during multi-file optimization compilation (code 1) Any help would be wellcome! Thanks. A full buildlog: ------ Build started: Project: Single, Configuration: Release|Win32 ------ Deleting intermediate files and output files for project 'Single', configuration 'Release|Win32'. Compiling with Intel F ...Show All
