JohnStrudwick's Q&A profile
SQL Server Why I always fail to manually train a model?
Dear all, Why I always fail to manually train a model in Management Studio ZhaoHui Tang recommends me to untrain the model first. So I untrained it like this. DELETE FROM Decision_Tree.CONTENT Then I train it like this. INSERT INTO Decision_Tree (Age, Bike_buyer, Customer_Id, Gender) OPENQUERY ([AdventureWorksDW], 'SELECT Age, Bike_buyer, Customer_Id, Gender FROM Training_table'); The error message is Error (Data mining): The mining structure , Decision_Tree is already trained and does not support incremental updates. Before using the INSERT INTO statement, use DELETE FROM <object>. Why is that so I already untrained the model. The model has been made and processed outside Management Studio, i.e., in the Visual Studio. Thank you, ...Show All
Visual Basic Unable to add SqlDataAdapter to project
I am running the following: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Enterprise I have a simple web page that I want to put a SqlDataAdapter on. It is not on my Toolbox, nor will it allow me to add it to the source. I had to check the option in Choose Items, the toolbox blinks, but it doesn't show the tool. How do I get that tool into my program Bill You need to do an Imports System.Data.Sqlclient above your class definition. Then: Using Adapter As New SqlClient.SqlDataAdapter End Using Or SImply DIM Adapter As New SqlClient.SqlDataAdapter ...Show All
Windows Forms datagrid view
i have a form with one datagrid view. And i inheritted the another form from that from. But in the inheritted form i cannot edit the datagrid view, all the roperties is looks readonly. So i changed the modifier to protectd friend ,public etc.. But its not working. But for other controls like list view and all i can edit in the inheritted form by just changing the modifier property . How can i edit the datagrid view Its by design. Please check the below link. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=152918&SiteID=1 ...Show All
.NET Development Trim Pliz
Hi i want Know Haw to Trim or Delete Some Char from Item in Listbox Thread moved to the appropriate forum. well it depends how you are getting the items. Generally to trim, you use Trim() to trim whitespaces from the beginning and end of the string. ...Show All
.NET Development Using wsdl.exe with a custom binding
Hi I'm using wsdl.exe to translate wsdl documents to a c#. Now I have a little problem, my special wsdl document doesn't use the typical protocols: soap o http, it use a custom protocol. In the wsdl.exe documentation ( http://msdn2.microsoft.com/es-es/library/7h3ystb6(VS.80).aspx ) explains about a option to do it /protocol but it doesn't work for me. If I launch wsdl /protocol:customprotocol special.wsdl I got this error: services web xml protocol 'customprotocol ' unknowns in the configuration file. It is possible to use wsdl for custom protocols Thanks in advance Javier ASP.NET only supports HTTP with SOAP 1.1 or SOAP 1.2 or its own HttpGet/HttpPost protocols. What is the cus ...Show All
Visual Basic Iterating through a list of folders
Hello all, SUper Noob here. I have a very basic question regarding iteration through a list of folders that I need to search. The object of this program is to look for files older then 10 days old in a given set of folders. As much as I dont mind doing if statements for each folder object I specified, I would like to be able to grow the list and not have excessive code. Anyway, any and all suggestions would be greatly appcriciated. Thank you and take care. This is what I have now: Sub Main() Dim fso, Efile, EFolder1, Efolder2 fso = CreateObject("Scripting.FileSystemObject") EFolder1 = fso.getfolder("C:\temp2") Efolder2 = fso.getfolder("C:\temp3") For Each Efile In Efolder2 ...Show All
Visual Studio Express Editions Group delimiters are not balanced
I was looking for a quick and dirty way of making an OpenFileDialog show thumbnails. Using the keyboard Five tabs, four Downs and an Enter seemed to do the trick so I thought I would use SendKeys (from a timer to overcome the fact that the dialog is modal) - I said it was dirty but it's only for my own use. The tabs work fine but sending a down key results in the error message of the title. At which point I gave up - anyone any ideas. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Start() OFD1.ShowDialog() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Static count As Integer ...Show All
Visual Studio 2008 (Pre-release) Windows Vista Explorer-like application
Hello, How can I create Windows Explorer-like application for Windows Vista i.e., something that I can create as simply as, for instance, a carcass for MFC Explorer-style application for older Windows versions Thanks. ...Show All
Visual Basic cant find Debug -> processes window ?
Hi i am using Visual studio 2005 framework 2.0.50727 version i cant find Debug -> processes window like in visual studio 2003 version any idea sujithf Unfortunetly i cant find Debug -> Attach to process as wel in this visual studio 2005 enviornment there is no option for atach to process in my debug menu regards sujithf ...Show All
Software Development for Windows Vista Derived from HandleExternalEvent / Filtering events
I derived my own Control from HandleExternalEvent, using wca.exe. I want this control to behave the following: - The Event args (derived from ExternalDataEventArgs ) of the event which is to be handled include a Property A, which can be either 1, 2 or 3 - My derived Control has a user-settable "Filter" property which can be set to 1, 2 or 3 - Only if Property A of the received Event is set to the Filter value, the event is "handled". To my surprise I discovered that the "Execute" method of HandleExternalEvent is sealed, so I cannot implement my filter in an override of this method. Does anyone have a solution to this (other than write my own HandleExternalEvent control from ground up) Thanks for any ...Show All
Windows Live Developer Forums Javascript question (how to pass strings with white space?)
Although this is a javascript question, it's related to VE because I'm writing a webservice function which writes javascript on the server-side. I have a simple question. I want to pass a string value (in my case a tag), to a javascript function: So I have someting like the following: <pre> tagCloud.Append("<a href=# onclick=SetTag("" + tag + "") >" + tag + "</a> "); </pre> eventually this is rendered to screen where I have the typical tagcloud that allows a user to click tags and filter stuff. The problem is that when the value "tag" contains whitespace the javascript breaks. I thought by putting " I would solve this... but it's obviously not workin ...Show All
Visual Studio Express Editions data validation of numeric fields
I'm new to c#, testing it out on a program I was developing years ago in vb for dos!!. Currently stuck on the best way of parsing/validating a form with a dozen or so textboxes. Each box is to contain a floating point number. Do I have to repeat the try/catch validation routine for each textbox - or is there a general purpose string to number conversion that does not throw exceptions on bad data entry I do not seem able to arrive at a solution that does not require me to write more or less the same 5 or six lines of validation code for each box. Is that enough info. to get the idea of my problem Best wishes, and thanks, Ray I did try marking it as answered, two or three times looking ba ...Show All
Visual C++ _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES couldn't work
I used /D "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" in the configuration of the project property. It solved secure problem for functions like sprintf. However, fopen, fscanf, sscanf still report something like: c:\mvs2005\bs_module\source\utility.cpp(1639) : warning C4996: 'fscanf' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(249) : see declaration of 'fscanf' Message: 'This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' I don't want to use _CRT_SECURE_NO_DEPRECATE, because I want the warning pops up whenever there is a secure problem. I believe the three functions listed ...Show All
Windows Forms TreeView, TreeNode and ContextMenuStrip.SourceControl
Hi, I want to use a context menu for nodes in several trees. It's fine to display the menu and handle the event, but the SourceControl property is always the TreeView itself, not the node the user clicked. This would make sense to me if I had assigned the ContextMenuStrip property of the treeview, but I did not! I assign it to each tree node. I now have to use an ugly workaround, handling the treeview's MouseUp event and tagging the context menu with the node as follows: if (e.Button == MouseButtons .Right) { ctxMenu.Tag = (( TreeView )ctxMenu.SourceControl).GetNodeAt(e.X, e.Y); } As the MouseUp event (of the TreeView) fires before the Click (of the ContextMenuStrip control) this works and I can now do things like ...Show All
Visual Studio Express Editions How do I count the number of lines in a Rich Text Box, or a List Box control?
More accurately put: How do I retrieve the number of lines of text Thanks, John Thank you both - very helpful :) I guess the larger follow up question to this is: Aside from "hunting around" to find the appropriate methods, what do you suggest is the best way to lookup information like this in the future How do I find the answers with the least amount of research/time Much appreciated, John ...Show All
