Leadfoot's Q&A profile
Visual Basic Question WinAPI and VB.NET
I'm trying to write an app that determines which items are selected in a ListView on a 3rd party app (Laserfiche), and am having very little luck so far. I've managed to get the windowhandle, and I think I've managed to enumerate the controls on the window, but I'm unable to assign values to variables. Any help at all would be greatly appreciated. Here's the code: Public Class frmMain Dim processes As Integer Dim DocID As Integer Dim LFIE As New ImageEnable Dim file As New LFDocument Private Shared WM_QUERYENDSESSION As Integer = &H11 Private Shared systemShutdown As Boolean = False Private Sub Button3_Click( ByVal sender As System.Object, ByVal e A ...Show All
SQL Server Excel with ADO problem
Hello, I connect to an Excel file with ADO and I get the sheet names and after that I read the table. if the column is all integers or strings there's no problem but if the column is composed of integers and strings then only the strings are returned,others are returned empty. What's the reason Thanks Hi, did you try this here: http://support.microsoft.com/default.aspx scid=kb;EN-US;Q194124 HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Timers in Beta2 ?
In Beta 1, the Game class had some properties that measured time. However, in Beta 2, there appears to only be a GameTime struct passed into Update. If I need a timer for other reasons, such as performance profiling, or for sub-frame measurements, what should I do I can P/Invoke the performance counters, but that's not Xbox compliant. The documentation has nada on "timer" and no static functions on GameTime et al. (It'd be nice if GameTime had a static accessor that returned a gametime, without messing up the "elapsed" part for the next call to update). I thought I remember seeing something in one of the PowerPoint presentations from either GDC or GameFest with a number that was very close to the clock speed of ...Show All
Visual Studio Tools for Office Using Custom Images in your Office Ribbon
I have posted this in the forum but haven't had any replies so i'd though i'd try here. Subject: Using Custom Images in your Office Ribbon 11/29/2006 5:13 PM PST In: microsoft.public.office.developer.com.add_ins Hello, I have developed my own tab in Word and im having difficulty in getting the icon's to load up in the ribbon. I have been following Exercise 3 on Andrew Whitechapel's "The Visual Studio Tools for Office 'v3' Community Technical Preview - Tutorial". I keep getting an exception error ehrn the BlankCD.ICO file is being converted: image = new System.Drawing.Icon(stream).ToBitmap(); the error is: Custom Runtime Error An exception error occured while calling 'GetImage ...Show All
.NET Development How to get the next page from here?
I wrote the following code to access a https website and do some work programmatically. What I want know is how can I get the next page after finishing the login process . ServicePointManager .SecurityProtocol = SecurityProtocolType .Tls; ServicePointManager .ServerCertificateValidationCallback = new System.Net.Security. RemoteCertificateValidationCallback ( this .AcceptCertificate); NetworkCredential nc = new NetworkCredential ( "x" , "y" ); CookieContainer cc = new CookieContainer (); HttpWebRequest myWebRequest = WebRequest .Create( "https://www.x.com/Security/logon.asp" ) as HttpWebRequest ; Uri cookieUri = new Uri ( "https://www.x.com/Security/logon.asp" ); myWebRequest.ContentType = "application/x-w ...Show All
Software Development for Windows Vista plzz help me regarding 6.0.6000.0.0.WindowsSDK_Vista_rtm.DVD.Rel.img
hello all i downloaded the 6.0.6000.0.0.WindowsSDK_Vista_rtm.DVD.Rel.img but i am not able to install this i used iso buster but still there is some problem. it says " This disc contains a "UDF" file system and requires an operating system that supports the ISO-13346 "UDF" file system specification." can any one tell me how to install the sdk I assume that you got the message after you tried to "read" the DVD that you created from the .img file. Anyway, I've had some of this problem. First, there is a slight difference (I don't know what) between .img and .iso files, but the .img file you have is the "newer" standard; not every ...Show All
SQL Server Reporting Services Configuration (Database Connection)
Hi, I want to configure my Reporting Service. And if I want to configure the Database Connection I the action "Create a Grants Rights Script" fails. I tried all credential types by it doesn't work. Does anybody have an idea Thanks for your help! Jo-Jo Are there steps to replicate this issue What is the error message Does the SQL Reporting Services service account have access to the database this may help. http://support.microsoft.com/kb/264697 cheers, Andrew ...Show All
SQL Server Any way to put a query timeout on the datasource behind a report model????
Folks, we're wanting to put a timeout of 2 minutes on the queries which get generated by an ad-hoc report built in Report Builder. This particular report model has been generated on top of a cube by clicking the Generate Model button after creating an Analysis Services datasource in Report Manager. The connection string for that datasource reads: Data Source=(local);Initial Catalog=MyCubeDatabase I expected there to be a connection string property I could set (such as "Timeout=120") but I can't seem to find that in the documentation anywhere... And Timeout=120 doesn't appear to do it. Do you know of one If not, do you know of another way to put a timeout limit on a Report Builder generated query or a Report Builder report i ...Show All
Visual Studio Team System Problem with the TFS - MS Project integraton.
We have a problem with the integration of TFS and MS Project 2003. I manage to set the connection and import the Work Items. Publishing/refreshing also works well but when I save the .mpp-file and close MS Project, the connection is lost. If I compare with Excel, the connection information is stored in Propertes/Custom when importing the Work Items and more connection information is stored when the file is saved. The same goes for MS Project when importing Work Items and saving it but without closing the MS Project-file. However, the connection is lost and the information in Propertes/Custom is erased as soon as the file is closed. I can se from microsoft forums that this is a well knows problem but I have not seen a soluti ...Show All
Visual Studio Where I can get Document for VS6
It took me too long to find the MSDN Oct 2001 for VS6. Where can I download It Hi Nothingz, Following on to Dave's excellent advice regarding the MSDN subscription route, the next best thing would be to reference the free online MSDN Library Archive . Here is the address: http://msdn.microsoft.com/archive/default.asp In the navigation tree in the left frame: Click MSDN Library Archive Click Visual Tools and Languages Click Visual Studio 6 This is not downloadable, but if you don't have a MSDN subscription it's free and accessible online. Hope this helps, Frank ...Show All
Smart Device Development PDA and Internet connetion
Hi, I have an application developed in c#, in my PDA and i need to know if someone knows a way to established a internet connetion throught a button in my application. This is urgent..... Does anyone have a suggestion or an ideia Thanks. Ok, thanks but the problem is: I'm using pull's (send data to pda) and push's (send data throught pda to a central database) via windows mobile 5.0 emulator. So my problem is that i don't know how this will work in a real PDA when i'm for example in a store and i want to send some data from my PDA to a central database or the vice versa. The ideia is to have a button on my application and when i press it, my application will execute that operations t ...Show All
SharePoint Products and Technologies SPItemEventReceiver do not work properly when i use the wss object model API.
Hi everyone. I got a problem unsolved almost 2 weeks. Please somebody tell me a clue. I customized the SPItemEventReceiver and associated the customized SPItemEventReceiver with a content type was inherited from the Document Library content type and deployed this content type to a server as a Feature. When I uploaded a file from Word 2007, Events associated with the ListItem fired. but on uploading using the Wss Object model , events did not fire at all. I have a same experience when I using not only a document library type and SPFileCollection.Add method but also a list type and SPListItemCollection.Add method. I have found the following from the WSS3.0 sdk document. SP ...Show All
Visual Basic how to delimit string?
I have many fields must be delimited,just like that below "abc","aaa","ccc","ddd","abc,adf","daf,qwer" I have to delimit this via comma,but must consider a field followed by double quote how should i do thanks if this is a text file that you are trying to parse then the textfileparser is what you need: Dim tFp As FileIO . TextFieldParser = My . Computer . FileSystem . OpenTextFieldParser ( "FileName" ) tFp . Delimiters = New String () { "," } tFp . HasFieldsEnclosedInQuotes = True Dim CurrentRecord () As String = tFp . ReadFields ...Show All
Visual C# contents of release mode
Hi My solution consists of three project that creats three dlls. first projects dll is used by 2nd project and 2nd projects dll is used by 3rd 1. do i required to release all these 3 dlls r only the 3rd 1. how i can release it regards Hi Thanks i tried with it but it didnt help. Application is running in debug mode on my machine but whaen i try with release mode or on another machine it dont work. regards ...Show All
Microsoft ISV Community Center Forums Assigning new series to chart
Hello! I have previously posted questions in this field but I have never gotten an answer. I really really need help with this. I have never programmed before and now I am supposed to do this VBA application for Excel. What I want to do is simple enough but I have trouble implementing it and since and really do not know anything about programming I do not know what is wrong. The problem is that I am supposed to replace the existing series for a chart with new series. I have the new series but when applying them to a new chart it does not work if I have not manually erased the old chart series. This does not seem like an obstacle but this code have to work for other applications. I try to change the series in a loop. Code: Do Wh ...Show All
