xluna's Q&A profile
Visual Basic Listbox
Hi all, I would like to know about how can I bind data from a PD class to several textboxes accordingly whenever i select on the particular value displayed in the Listbox. Assuming that all the text box controlls have their DataBindings "Text" property set to the name of your BindingSource (in this example myBS) you could do this: Private Sub ListBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Dim foundIndex As Integer = myBS.Find( "MySearchColumn" , ListBox1.SelectedValue) myBS.Position = foundIndex End Sub where "MySearchColumn" is the name of the column in the BindingSource th ...Show All
Smart Device Development WM 6.0 - Better handling for managed to unmanaged?
I was just wondering if 6.0 kept the same model for handling unmanaged to managed code or if anything better had been thought up. Anyone know Hi JR, There are no plans to change the native->managed features in any upcoming release of NetCF. Our model is fairly consistent with the desktop framework--the biggest difference is that we don't support native hosting, so all calls have to originate from managed code. I'd be very interested to hear what features you would like to see to added or improved. Thanks, Ryan Chapman .NET Compact Framework ...Show All
SQL Server How can import mdf file to mssql 2005
Dear All, I have a mdf file and want to import the file to mssql 2005, But i can't find the function when i right click the database name in SQL Server Management Studio. What should i do Regards, Ricky hi Gargi is very right, I would like to Add, the thing is you need to attached the .mdf file as well as its log file with that mdf file. (this is the process of attaching, there is no direct process of importing a mdf file) Regrds, Thanks. Gurpreet S. Gill ...Show All
Visual C# "The parameter 'sectionGroupName' is invalid"
I'm trying to create a dataset. I have my database connection set up correctly, but when I try to pull the table into the dataset designer, I get the following error message: Failed to merger object(s). The parameter 'sectionGroupName' is invalid. Parameter name: sectionGroupName. Also, when I try to open the dataset designer for an existing dataset (.xsd file) a blank box appears where the table should be. If I click on the blank box, I get the error message: Mouse click operation failed. Exception has been thrown by the target of an invocation. I've tried searching the KB for these errors but I can't find anything. Does anyone know what could be causing this and how I can fix it Thanks! -Dell I'm trying to do just ...Show All
.NET Development Extern DLL returns Struct ??
Dear All, To be clear: I never tried to access external DLL before, please kindly help, thanks! I have a RFID reader/writer which comes with a VB sample app and 1 DLL. I uploaded the DLL, VB6 Demo Program to: http://upload2.net/page/download/85QQgLnx7PVagMp/RRD-HEVM.zip.html The DLL could NOT be imported into VS2005 using "Add Reference" The (working) VB6 sample code to call the DLL: Public Declare Function DeviceInfo Lib "Prr8310lib.dll" (ByVal hCom As Long, ByVal Addr As Byte) As DevInfo The DevInfo is : Public Type DevInfo '// Sw_Rev As String * 50 ' Device Software Revision '// D_Rev As String * 50 ' Device Hardware Revision '// Hw_Type As String * 50 ' Device Hardware ty ...Show All
Smart Device Development How do I manually deploy the CF2 to my PPC?
I tried running the Microsoft installer and although it starts the installation on my PPC (running Windows Mobile 5.0), it never actually installs the Framework. Is there a way to manually install the CF 2.0 There is a file created in the root partition called MS .NET CF 2.0 LOG.TXT. Here are its contents (sorry this is long): 10/05/2005 00:40:57: PocketPC 5.01 10/05/2005 00:40:57: Processing alternative file: '\Program Files\.NET CF 2.0\cgacutil.exe.-410~-410~ARMV4'. 10/05/2005 00:40:57: Special file extension: '.-410~-410~ARMV4'. 10/05/2005 00:40:57: File is intended for OS: -410 to -410, CPU: ARMV4 10/05/2005 00:40:57: Device CPU: 'ARMV4I', 05020000 (84017152) 10/05/2005 00:40:57: Delete file '\Program Files\.NET CF 2.0\cgacutil.exe.-4 ...Show All
SQL Server Issue when exporting to excel...
Hi i am using Reporting Services 2000 in my application, and am getting an error when i attempt to export to excel. the error that i recieve in the popup window is the following, "Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. (rrRenderingError) Get Online Help Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. Object reference not set to an instance of an object. " i have discovered that this occurs when rendering the two textboxes used in the footer of my report, as when i remove them, the report renders fine. note all other export functions (pdf, csv etc etc) work fine. any help on how to fix this problem ...Show All
SQL Server Multiple records returned.
The following statement gives the error that multiple records are returned. I am attempting to pick one weight out of a group of three, the three have the same ResidentID and different dates in the table variable @WeightReportRaw. If I hard code the ResidentID, ResidentID = 6, it works fine. The variable @intMonth3 passes in a month number ans dosen't seem to be a problem. What am I missing, Thanks in advance for any help. update tblResidentWeightsTemp set FirstWeight = ( select RWeight from @WeightReportRaw as W where ResidentID = W.ResidentID and month (W.RWeightDate) = @intMonth3) It means that ( select RWeight from @WeightReportRaw as W where ResidentID = W.ResidentID and month (W.RWeightDate) = @ ...Show All
Visual Studio VSS and .NEt integration
Hi @ll, I require to implement a web service, which allows me to connect to VSS on another server and generate the file list for me. Actually I am planning to implement a web service which will allow me to connect to VSS and perform all the operations, which a VSS client can perform. Currently When I am trying to connect to the remote server, it's giving me error, unable to connect to the server. Is there any other way that I can connect to remote server, or I am making some mistake Please help me doing this. Thanks Atit Thaker atitthaker wrote: I require to implement a web service, which allows me to connect to VSS on another server and generate the file list for m ...Show All
SQL Server Adding new columns with check constraints using same batch
I'm using a stored procedure to add fields to an existing table. These fields must have check constraints and I need to use one T-SQL batch. In Sql2000 Ok. In Sql2005, if table exists, I get error "invalid column xxxxx" in Add Constraint statement before new column creation. the code is Declare @Setup bit Set @Setup = 1 if @Setup = 1 Begin --Alter Table MyTable Add MyField Numeric(1, 0) Not Null Default 3 Exec mySp_Add_Column 'MyTable', 'MyField', 'Numeric (1, 0) Not Null', '3' If IsNull(ObjectProperty(Object_Id('xCK_MyTable_MyField'), 'IsConstraint'), 0) = 0 Alter Table MyTable Add Constraint xCK_MyTable_MyField Check (MyField >= 1 And MyField <= 3) End Else Begin -- drop column ...Show All
Software Development for Windows Vista Why doesn't ActivityTrackingRecord.ContextGuid match any context guids in the rootactivity?
In my system, I need to track additional information about a workflow. I implemented a custom tracking service so when the a new activity tracking record is sent, I can inspect the activity type and determine what additional information can be tracked. My problem is finding the correct activity instance associated with the tracking record. When I try to find the instance based on the root activity, the qualified name, and context guid, I get nothing. The reason for this is the ContextGuid passed into the ActivityTrackingRecord does not match any guids returned from the Activity.ActivityContextGuid dependency property. I am using a simple sequential workflow. Any idea why this is Yes, that's correct (I ...Show All
.NET Development VB OdbcCommand.ExecuteNonQuery not returning -1 for DDL SQL stmts
I am trying to use the OdbcCommand.ExecuteNonQuery method to execute DDLs and DMLs. The documentation says that -1 should be returned for DDL SQL stmts, but it returns 0 for DDL stmsts like CREATE/DROP TABLE. Is this a bug or am I doing something wrong gReadLine = txtSQL.Text cmd = New Odbc.OdbcCommand(gReadLine, cnx) cmd.CommandType = CommandType.Text gNumRows = cmd.ExecuteNonQuery() If gNumRows >= 0 Then lbOutput.Items.Add( "Number of Rows Affected : " & gNumRows) Else lbOutput.Items.Add( "SQL Operation Succeeded" ) End If Thanks in advance. ...Show All
Visual Studio Team System TFS moving from one domain to another
Can not connect to a TFS server after moving from one domain to another Any comments and suggestions will be appreciated Leonid Niraev What is the domain trust relationship between the two domains If there is only a one way trust, make sure that your service account is in the trusted domain. If it isn't, you can use the TfsAdminUtil tool found on the AT to change the account. See this page for more details. Hope this helps- Cheers, Adam ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Beginning Game Development: Part III - DirectX II - Problem with the "Using..."
Just started the Direct X Part II (Part III) tutorial, and I seem to have an odd problem. I get one error whenever I try to build the solution, Error 1 The type or namespace name 'Device' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Doug Ross\My Documents\Visual Studio 2005\Projects\BattleTank2005\BattleTank2005\GameEngine.cs 68 17 BattleTank2005 Now, I put at the very top of the GameEngine.cs class, right below all the other "using" directives... using Microsoft.Samples.DirectX.UtilityToolkit; So now the "Using" section at the top of the GameEngine.cs looks like... using System; using System.Collections.Generic; us ...Show All
Gadgets Using System.Gadget.Settings
Hi, In my gadget I save a value in my VBScript, how do I re-load this saved value I have: System.Gadget.Settings.Write "Record" , dtmSystemUptimeSecs s = System.Gadget.Settings.Read("Record") But this doesn't seem to work If my uptime is big interger should I use the writeString & readString methods Some parts of the 'System' APIs that the sidebar exposes will not work correctly from VBScript. These failures, in some cases, are quite difficult to debug. If you absolutely must use VBScript, then I recommend using javascript for most of your code, VBScript for the minimal parts necessary, and don't use the 'System' APIs from VBScript code. ...Show All
