pjtaylor's Q&A profile
Windows Forms Edit list view
Hi all my code in vb.net i used list veiw to view my records i want to reorder the columns at run time i mean move the column from one place to another with it's data at run time what i have to do many thanks ...Show All
SQL Server Installing AdventureWorks DB in SQL Server 2005
Hello Jens, Thank You for your response. My problem is i do not know how to upload the database into SQL server 2005. I can see where the data is in my hard drive but can not upload it. There are two file: one is a log file and the other one i think is the database (different extensions) So this summs it up. Could you point me in the right direction Please. Thank You. Gino ...Show All
Visual Studio Team System Custom Control Feature
I want to try out the new custom control feature. I have installed the SP1 Beta but I don't know where to start... Could anybody point me out a sample or give me an idea how to build a new work item custom control Do I have to inherit from a specific class, do i have to register my control type somehow, how do I reference it in the work item section of the process template Thanks! Mike Naren Thanks for the info - this should be very useful. At the moment we haven't deployed SP1 as we don't have a TFS instance that isn't live and our technical team who manage the servers a cautious about putting beta software on our TFS. I will get onto this though when SP1 goes live. Thanks Steve ...Show All
Visual J# Help compiling
how do I compile/debug and run an application in visual J# 2005 Express edition note that directly running or debugging (both options are on the menu and can also customize the toolbar to add them by rightclicking on it) without first building the solution should compile any changed stuff automatically, so for big projects you can avoid rebuilding everything cause it might take some time ...Show All
Visual Studio 2008 (Pre-release) Is there any type of context available at time of IAuthorizationPolicy evaluation?
I've been doing some work with adding custom context to our WCF web services. I've successfully added context to the operation and instance context, but now I'm doing some work at the IAuthorizationPolicy level and finding out that the contexts that I've hooked so far (i.e. operation context and instance context) are not available yet at this point. First, is there a context that flows all the way through all these layers of a WCF request Second, I cannot find any good documentation on what the life cycle of a request looks. If I could find that I would probably be able to figure the rest out on my own. TIA, Drew I think the disconnect we're having is that it's not just one specific area of the requ ...Show All
Visual C# Need help converting VB to C#
Hi Can someone help me by converting this VB to C#. Thanks a bunch. James Keele Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(Modulo10(TextBox1.Text)) End Sub Private Function Modulo10(ByVal strNummer As String) As Integer 'strNummer may only contain numbers between 0 und 9! Dim intTable(10) As Integer Dim intTransfer As Integer Dim intIndex As Integer intTable(0) = 0 : intTable(1) = 9 intTable(2) = 4 : intTable(3) = 6 intTable(4) = 8 : intTable(5) = 2 intTable(6) = 7 : intTable(7) = 1 intTable(8) = 3 : intTable(9) = 5 For intIndex = 1 To Len(strNummer) intTransfer = intTable((intTransf ...Show All
.NET Development <C:\DOCUME~1\32329\LOCALS~1\Temp\IXP000.TMP\bootstrap.exe>. Reason: C:\WINDOWS\system32\advpack.dll
I am getting this error whenever i try to install MSN messenger . <C:\DOCUME~1\32329\LOCALS~1\Temp\IXP000.TMP\ Bootstrap.exe>. Reason: C:\WINDOWS\system32\advpack.dll I tried installing VBrun 6.0 for the latest version of advpack. dll , but still i am not able to install the messenger as it gives me the same error. can anyone help do not trust automatic updater, go to microsoft update page and get the latest installer. I had the same problem, it work for me. ...Show All
Visual Studio Express Editions Can anyone help me count letters?
In VB 2005 express: I am writing a 'word calculator' program that: -Uses the textfile in "textfilecontents" (textbox) -Scans each character, from each line of 'textfilecontents' Here is what I've got so far: -If the character is a letter, then: -convert the unicode value of each char to it's base value. (A=1 B=2 C=3 D=4, ect.) -adds the base value of each letter to 'TALLY' (integer) -display character read to "txttallied" (textbox) -If the character is NOT a letter, then: - display the character to "txttallied" (textbox) - don't add to tally (only letters are counted) -If the character is a carriage return: then: -display TA ...Show All
SQL Server The ALTER TABLE statement conflicted with the FOREIGN KEY constraint
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "fk_Allergy". The conflict occurred in database "MSCPROJECT", table "dbo.Severity", column 'SeverityCode'. Just to clarify how to solve this in SQL Server 2005....To carry on from what theDamian said..... If you in diagram view on you Database. Right click the table that is being referenced by the foreign key and click References, then click on the reference which is testing your patience. Then all you have to do in the (GENERAL) tab is switch the "Check Existing Data On Creation Or Re-Enabling" to NO.....Then BANG!!!!! No more probs :-) Enjoy. ...Show All
Audio and Video Development Adv. Cont. Playback on HD-A1 >> NO RENDERING
Hi All, I am having trouble getting an advanced content application to play once burned on a DVD-R and inserted into the Toshiba HD-A1 HD DVD player. Video and audio play fine using this method, but once the advanced content object is reached the player stops playback and gives an error. Does anyone have any advice on this We have tried the samples posted here and we get the same results. Thanks. Here is what NOT to do: Take the ADV_OBJ dir from the Button iHD sample and copy it into an HVDVD_TS directory. Burn that to a DVD-ROM via Nero 7, and select the latest UDF version it supports (2.01). Put that disc in the HD-A1. Wait a while, and it will say "CD" on the display [ ]. The Eject button will not work. Pani ...Show All
SQL Server Row count validation between source flat file to target database table
Hi all, I am new in SSIS. Anyone know how to valify number of record that I load from csv file to SQL database table For example, the source file call product.csv and target table in database named DSS table name PRODUCT. I load data from flat file to table then I need verification if count between source and target not match send e-mail to me. Thanks. Grace After your data-flow you should put a Send Mail task. Use a conditional precedence constraint to check the values, if they are different, fire the Send mail Task. If you want to know more about conditional precedence constraints - go here: http://www.sqlis.com/default.aspx 306 I don't think its necassary though. Your data-fl ...Show All
Visual Studio Express Editions Get User Full Name
I am banging my head against the wall... I am a LONGTIME VBA Coder... and one package that I use to get the Users Full Name is: Private Type USER_INFO_2 usri2_name As Long usri2_password As Long ' Null, only settable usri2_password_age As Long usri2_priv As Long usri2_home_dir As Long usri2_comment As Long usri2_flags As Long usri2_script_path As Long usri2_auth_flags As Long usri2_full_name As Long usri2_usr_comment As Long usri2_parms As Long usri2_workstations As Long usri2_last_logon As Long usri2_last_logoff As Long usri2_acct_expires As Long usri2_max_storage As Long usri2_units_per_week As Long usri2_logon_hours As Long usri2_bad_pw_count As Long usri2_num_logons As Long usri2_logon_ ...Show All
.NET Development Windows 2000 System.AccessViolationException
I have an app that happily loads a dll, and then uses something as IntPtr = GetProcAddress ...delegate ... = System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(... and then obsessively calls the function that was just loaded. Now, in Windows XP, on lots of different computers, my app runs perfectly well. But then on Windows 2000 after a few thousand calls to the function I get an error like this: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at MyApp.MyClass.MyDelegate.Invoke(... Ideas No...but then I started getting a bunch of errors on XP when my remote class would raise an event, ...Show All
Smart Device Development Concerning Alex Feinman post at google groups
Hi, this discussion at google groups discuss how to get icon from window handle http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/dba870934fe78b6a/6aba1f16a96762a1 lnk=gst&q=get+window+handle&rnum=1#6aba1f16a96762a1 i have tried this code IntPtr hIcon = ( IntPtr )SendMessage(hWnd, 0x007f, 0, 0); Icon .FromHandle(hIcon); but unfortunatly this message returns zero to hIcon!! could anybody help me, thanks Dear timg_msft, Thanks for your reply. yes, i am sending it to the right hWnd, i got the hWnd using this class http://blog.opennetcf.org/ctacke/PermaLink,guid,add17dea-c5d9-46c4-b405-af213678fa10.aspx i used this hWnd to get its process I ...Show All
Visual C++ linking error - libcimtd.lib
After conversion of a VS6 project to a VS2005 project, the linking broke down with a fatal error as some "libcimtd.lib" was not found. libcimtd.lib is no part of VC/lib (but libci, libcmtd are). Linking... LINK : fatal error LNK1104: cannot open file 'libcimtd.lib' Creating browse information file... How do I resolve this issues This can happen if you are using the older style iostream libraries (which were in libcimtd.lib) instead of the newer style. If you have any: #include <iostream.h> or #include <fstream.h> Change them to #include <iostream> and #include <fstream> With the use of the newer style standard libraries, standard headers no longe ...Show All
