chiquiman's Q&A profile
.NET Development DS HELP
I currently have this error when I delete a record and then save it. My code is at the bottom of this post, im a newb to this though wish to learn. Though i've tryed to google this many a times and still come up blank with out knowing how to fix this problem. Can anyone help much thanks and please keep the answer with simple instructions. --------------------------------------------------------------------- ERROR: Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. {"Update requires a valid DeleteCommand when passed DataRow collection with deleted rows."} System.InvalidOperationException was unhandled Message="Update requires a valid DeleteCommand when passed DataRow col ...Show All
Windows Forms Problem with combobox
Hi I have a datagridview that is databound to a table via a bindingsource and a DataGridViewComboBox column that is bound to a second table (both in the same dataset). I am dynamically adding the column to the grid. Dim viewcol As New DataGridViewComboBoxColumnviewcol.DataSource = _dsEquivalents.Tables(1) viewcol.DataPropertyName = "ViewName" viewcol.ValueMember = "ViewTable" viewcol.DisplayMember = "ViewTable" viewcol.HeaderText = "View Name" viewcol.AutoComplete = False dgvEqu.Columns.Add(viewcol) BindingSource1.DataSource = m_dsEquivalents BindingSource1.DataMember = m_dsEquivalents.Tables(0).TableName The table bound to the grid contains values that are not in the table bound to the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Components Demo
I've posted a video of my Game Components demo I did at Gamefest. http://blogs.msdn.com/xna/archive/2006/08/31/734204.aspx One thing though - have you guys given any thought to a licencing model for the (more complex) components For instance, GarageGames allow 3rd party developers a way of selling add-ons. Seems to me that there are likely to be a few experienced games developers knocking around these forums, who could produce some excellent components if they could keep the source to themselves, and sell them on (paid per developer seat, or just when deployed as a sold game). After all, this is exactly what has driven the professional component market on the desktop. Andy. ...Show All
Visual Studio Team System Build.Tasks.Get excluding certain directories?
Is there a way to customize the <Get> task of TFS so that I can say exclude getting certain directories under the source folder Thanks! Sorry I forgot to put the link, take also a look to this another blog which has some info about build on specified labels and so on http://blogs.msdn.com/nagarajp/archive/2005/10/21/483590.aspx ...Show All
Visual Basic Combobox problem
Hi, I have a combobox which displays a list of surnames (from a dataset). A number of other controls then display the other fields of data for the selected surname - no problems. I can navigate around quite hapily and all fields display correctly. By trying to break the application to ensure it's bombproof, I have found a problem that I can't seem to get around. If I delete the selected text in the combobox then type a part of a valid surname (e.g. "S" for Simpson, then hit the down arrow, a new surname is selected from the dropdown list. If I then hit the arrow again, the list disappears and the selected name is displayed in the upper section of the box, but the other controls on the screen are not updated. I ther ...Show All
Visual Studio Express Editions Join function with array of Objects
Help lists the declaration of the Join Function as Function Join( ByVal SourceArray () As { Object | String }, Optional ByVal Delimiter As String = " " ) As String It does not describe what happens if SourceArray is an array of objects rather than strings, but I assumed that it would use ToString to convert each Object to a String and then join them using Delimiter. However when I try to use Join to convert an array of IpAddress Objects to a string like this: Dim dnsAddresses() as IpAddress dnsAddresses = Dns.GetHostEntry("AComputerName").AddressList Dim Adrs As String = Join(dnsAddresses, ", ") the Join function gets an "Argument 'SourceArray' cannot be converted to type 'String'& ...Show All
.NET Development A correction is needed to the instructions -- or more likely a correction is needed to me!
Hello I am having a problem accessing the ODBC tables from the Visual Studio .NET 2005 version I am trying to use the Server explorer (View a Server Explorer) option in VS 2005 to acce ss the data through one of our properiatiary database. I am able to successfully login and execute Select Queries in the Queries BOX. But when i try expanding the drop down of TABLES and VIEWS in the right pane after connecting through the system DSN, I am getting the following error. Microsoft Visual Studio Column 'TABLE_CAT' does not belong to table Tables. This method works fine with the VS .NET 2003 version. I was trying to find out if this could be a problem since couple of folks had reported this problem in ...Show All
Visual C# Convert Java To C#
Hello Can anybody help me to convert this java code to c # private static int chooseOption(int min, int max) throws Exception { Scanner sc = new Scanner(System.in); while (true) { System.out.print("Enter a number: "); int option = sc.nextInt(); if (option < min || option > max) { System.out.println("Invalid number, you must enter a value between " + String.valueOf(min) + " and " + String.valueOf(max) + "!"); } else { return option; } } } private static int ChooseOption(int min, int max) { while (true) { Console.Write("Enter a number: ") ...Show All
Visual Studio Tools for Office VSTO2005SE(Beta) addin for all users of the computer
I know shared add-in is step 4/5 function("My Add-in should be available to all users of the computer it was installed on, not just the person who installs it.") but, VSTO2005SE add-in has not that function. below step process is my found solution, except one problem( My Custom Ribbon isn't visible .) - Step1 addin registry(HKEY_CURRENT_USER\...\CLSID, office\Word\Addins...) move to HKEY_LOCAL_MACHINE - Step2 "Manifest" key was removed in Software\Microsoft\Office\Word\Addins\MyAddin.connect =================== I need more information for available to all users of the computer (VSTO2005SE addin) Dear Andrew Whitechapel Step1. Create SimpleAddi ...Show All
Windows Forms getting rid of textbox "flicker"
I have a textbox that I constantly update. And to do so i use: textConsole.Text = message; //message is the string i want to set it to textConsole.Select(textConsole.Text.Length, 0); textConsole.ScrollToCaret(); But it updates too often that it flickers when it is updated. I know about the AppendText() method but for what I am doing I havent yet found a way to use it properly (im still trying). So if anyone knows if it is possible to reduce the flicker let me know Thanks Hello, While I have not done what you are doing I have had a listbox flicker at times in an application I made if I try to make several item updates at the same time. I do not know if this will work or not for you but, I put in a 'Appl ...Show All
SQL Server Experts Pleeease advice Run WWW service in IIS 5.0 isolation mode on wk3 server
On windows 2003 server i am having a problem, when i call reports 2005 from vs 2003(asp 1.1) it presents an error saying IIS cannot run two different version under one process. (because of 1.1 and 2.0 version conflict) only happens on windows 2003 server. now would like to change the iis to allow www to run on iis 5.0 isolation mode that way it uses aspnet_wp.exe process. which will allow multiple versions under one process mode. But has any one tried this or not , i tried internally on our windows 2003 server which is in our network and it works fine. Please share your thoughts, since i would like to take the same approach with our hosting server which is on intenet. Thank you all for sharing your opinions. ...Show All
Windows Forms Set amount of data in datagrid
I am returning alot of rows in my datagrid like 500 rows or maybe more i wanted to know if some could help me out with showing me how can i just show the first 50 rows then the next 50 and so on by clicking a next button.....should i use the concurrencymanager in some way.....any links or help would be great!! thank you most likely you would need some paging system implemented. I guess you could select the first x rows: DataRow[] theDataRowsSelected = theDataSet.Tables[0].Rows[ x ]; this.theDataGridView.DataSource = theDataRowsSelected; of course, keep a count of the number of rows the user specifies to select, so you can then easily make sure that the next time you get the number of rows, that it does not exceed m ...Show All
Visual C++ Can someone verify this for me, It's driving me nutz
Basically I need the base class to have a virtual function that can call out. Here's a simplified example. #include <iostream> #include <tchar.h> class base { public : virtual void Initialize() { } }; class foo : public base { public : void Initialize( int a) { Initialize(); } }; class foobar : public foo { public : void Initialize() { std::cout << "I need to be here..." << std::endl; } }; int _tmain( int argc, _TCHAR* argv[]) { foobar f; f.Initialize (10); return 0; } Wojtek You're running into a couple of name lookup releated issued The first is tha ...Show All
SQL Server Question about reporting services
Is it possible to achieve the following: First OLAP dataset with two report parameters, first one single- select parameters and second one is multi-select parameters. Second OLAP dataset I want to apply the first single-select parameter and the second multi-select parameters from the first OLAP dataset with an additional parameter from one of the column of the first OLAP dataset. If so, how to do it e.g. the first OLAP dataset returns the id column with the selected first and second report parameters and I want to apply the same report parameters and the id column to filter out the second OLAP cube. The first and second dataset are from different OLAP cubes. ...Show All
Windows Forms [help] device manager show nothing!
I found a giude in Microsoft website. http://support.microsoft.com/ scid=kb%3Ben-us%3B893249&x=9&y=1 however, where can I download the fixing software May I get it in somewhere without contact with " Microsoft Product Support Services" Thanks. Sorry this is not a technical support forum, but forums for software development issues on the .NET platform specifically. You can contact Microsoft PSS (Product Support Services) http://support.microsoft.com/contactus/ ws=support I'm afraid I have to lock this thread now as it is Off topic and not relevent to the nature of the forum. Thanks! ...Show All
