Mike K. Clark's Q&A profile
Visual Basic Validating within a User Class
I need to populate a container with an indeterminate number of label/textbox pairs for input. Since it is indeterminate at design time, I thought I'd create a user class with both a label and at text box in a pair so I could create them at run time and populate the labels appropriately from a data file. I need to validate each text box for numeric value. Then, I need to use that value to build up a subtotal on the form...sort of like this: Account Amount 1-1100 37.00 2-0000 90.00 .... Total 127.00 Can I code a validation event handler into the class at design time I know I can use the same handler for all the instances ...Show All
SQL Server 2005 clr returning xmldocument
I would like to return an xmldocument from a 2005 vb clr stored procedure. This is my definition for the stored procedure. passing in a string, return xmldoc. Can I not return an xmldoc as output The solution will build, but not run. Partial Public Class StoredProcedures <Microsoft.SqlServer.Server.SqlProcedure()> _ Public Sub SP_Transform(ByVal cc As String, <Out()> ByVal RetValue As XmlDocument) Error 1 Column, parameter, or variable #2: Cannot find data type XmlDocument. SqlServerProject1 Interesting question. I'll have to try it. My gut, however, is that you shou ...Show All
Windows Forms Server
No need to post my Server question. This answers it: "Download the pre-built TaskVision client and see what it can do, using our online database and public XML Web services, provided by Vertigo Software. " oh, sorry about that, i approve them one by one, just checking for anything that's not appropriate to the forum, I don't actually ...Show All
Visual Basic Saving gif files
Hi people, For a jpg file, you can save the file with the save method of the image object and you can specifiy a quality. code: currentImage.Save(SaveFileDialog1.FileName, _codec, GetQuality()) First parameter is the name of the file. Second is the ImageCodecInfo, here a jpg. Thrid is the quality as encoderparameters. Now I would like to save a .jpg file as a .gif file and I want to set a number of colors that it wants to use (ex. 2, 4, 16, 256). Is this possible and easy to do Maybe you can also add an encoderparameter that this sets Thanks, Kurt. The .gi ...Show All
Visual Studio How to get the latest version using msbuild
I am trying to develope the application in msbuild which will automatically get the the latest version from vss,compile the code, then use xenocode for obfuscation and finallly to build setups...Can anyone tell me how to get the latest version from vss using msbuild...... Thanks... one way is to use the SDC tasks from http://www.gotdotnet.com/codegallery/codegallery.aspx id=b4d6499f-0020-4771-a305-c156498db75e and look at the SourceSafe.* tasks, WorksForMe ...Show All
.NET Development Using Webcam in ASP.NET application.
Hi All, I want to use the Webcam in asp.net application (live demo). Anyone have the idea or related links , plz forward to me. Thx ...Show All
Windows Forms clickonce does not pull in GACed assemblies when publishing
Hi all, There is a dll in the GAC on my development machine but I do not want it to be in the GAC on the deployment machines. So I added a reference to it and set copy local to true. When I build the project, I see the dll gets copied to the bin folder correctly. However, when I go to publish, I do not see the dll in the publish directory. Why is clickonce not pulling it in. Is it because it's in the GAC I have done this same thing for another dll which worked. I'm not sure why this one doesn't work. Anyone has any idea why Thanks. ...Show All
SQL Server Proxy account not responding
Hi, I have an SSISS package running in a job step, the job is owned and has to be run by a non-sysdamin SQL login. I have created a new credential (windows autrhentication, sysadmin priviledges) , mapped it to proxies 'SSISS' and 'Operating systems (CmdExec)' and have assigned the job step to run as that credential. Yet I'm getting the following error message: Unable to start execution of step 1 (reason: Error authenticating proxy Domain\UserName, system error: Logon failure: unknown user name or bad password.). The step failed. Does anyone know why this is Thanks Maybe your job is made up of m ...Show All
SQL Server Errors in the high-level relational engine. when building cube with DSV with two different data sources
I get the following error when trying to build a cube when the measures are create d from a data source view with two data sources both SQL Server 2000 . There error is: Errors in the high-level relational engine. The following exception occurred while the managed IDbCommand interface was being used: Could not locate registry entry for OLE DB provider 'SQLNCLI.1'.. The SQL executed looks like: FROM OPENROWSET ( N'SQLNCLI.1', N'', The cube builds fine if the measure is not added from th e secondary source, once added it fails to build. You can view the secondary datasource in the Data Source view fine and in the Cube Structure tab ...Show All
Visual Basic Problem with assigment
I used the following code to assign some values but lineItems(0), lineItems(1) always contains the last set of result of Salesline2. Dim salesLine2 As New taSopLineIvcInsert_ItemsTaSopLineIvcInsert Dim LineItems(1) As taSopLineIvcInsert_ItemsTaSopLineIvcInsert With salesLine2 .SOPTYPE = dr.Item("Type") .SOPNUMBE = dr.Item("DocNumber") .CUSTNMBR = dr.Item("CustId") .DOCDATE = dr.Item("DocDate") .ITEMNMBR = dr.Item("ItemNum") .QUANTITY = dr.Item("Quantity") .UpdateIfExists = 0 End With LineItems(0) = salesLine2 With sale ...Show All
Windows Forms Dataform Wizard - Add button doesn't work!
I built a dataform using the VB.net wizard. I have two tables, with one relation, Parent to Child, linked on one common key. The dataform loads the data fine, and when I click on the Add button, it appears to add a record (the record count goes up) but unlike single table dataforms, the form does not automatically move to the new record.  ...Show All
Visual Studio Team System Newbie question on loadtest
Can I see detailed statistics for a loadtest - e.g. request and reponse times for the indiviual requests I see the summary and counters. WIll TFS help with this Thanks, You should be able to drill down into the individual requests and see the same information as you would if you ran the web tests individually. By default the test results come back in summary form, but at the top there should be link to switch to detailed results. There, you will find another dropdown for the different results you want to view in grid format. In there you should find links to the individual web test results, detailed error data, etc. Let m ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Maximum Range for Mesh.Intersect Function?
I am testing for intersections from a point into a mesh at a specified direction, but it only returns hits usually if they are less than 100. I have gotten a 101 before, but, never greater than that. Is there some sort of maximum range for the intersect function I wouldn't imagine there being one, but, if so, how does one extend it Here is my code, in case someone spots an error elsewhere: Function HitMesh( ByRef AnotherMesh As CZoopD3D.CMesh, ByVal Direction As Vector3) As Single Dim Hits() As Microsoft.DirectX.Direct3D.IntersectInformation, I As Integer Dim Bottom As Vector3, Top As Vector3, PlayerM ...Show All
SQL Server Registering assembly in SQL Server 2005
Hi, I have created a C# stored procedure that has a typed dataset (XSD). When I try register that assembly in SQL Server 2005, I am getting the following error. CREATE ASSEMBLY failed because method "add_InvoiceDTRowChanging" on type "InvoiceDTDataTable" in external_access assembly "SS.StoredProc" has a synchronized attribute. Explicit synchronization is not allowed in external_access assemblies. (Microsoft SQL Server, Error: 6213) I am using SEP CTP for both VS and SQL Server. I do not have any app.config file in my project. Can anyone help me resolve this Thanks, Prakash What I meant was tha ...Show All
Windows Forms ClickOnce overwriting user settings on update
I'm working on a VB app using ClickOnce deployment. When I deploy a new version to my update location, the clients will install the update and migrate user settings (My.Settings stuff) and data files correctly. However, if I change the update location to a different path on the server, the new update will not migrate the user settings or data files and uses the defaults included in the deployed package. Step by step: 1) user installes app from \\server\location1 2) user saves settings 3) publish update to \\server\location2 and use mage to change update location in the manifest at location1 so the user's app will look at new location 4) user ...Show All
