Daniel Clemow's Q&A profile
Visual Studio Team System First impressions....
...In case anyone is bothered!!! http://blogs.conchango.com/jamiethomson/archive/2006/06/13/4072.aspx Anyone else got stuff to say -Jamie Thanks for taking a look. I noticed when you created the project you choose "Other Projects>Database Projects" not just the Projects Node (notice on your screen shot ) just above Other Project Types. Our product project is that one. The one you used is the existing VS project type and doesn't work the same way our project does. ...Show All
.NET Development Using FtpWebRequest to check if a directory exists.
I'd like to know if there is anyway i can use the FtpWebRequest class to check if a directory exists before creating it on the server. The reason i ask is because if you try to create a directory that already exists it throws a WebException and disconnects from the server. This gives a performance hit if we are trying to create alot of directories on the server that already exists due to the disconnects/reconnects. TIA, lushdog Yes, you can set the FtpWebRequest.Method to "NLST" and use it to check if the directory exists on the server Mariya ...Show All
Windows Forms How can I edit the width of each column in DataGrid?
I want to edit the width of columns in Datagrid in runtime like Visual Basic but I don't know how to do by C#. Please help me about that. Thanks in advandce ! The answer is with the ControlStyle-Width ="30px" in the asp : BoundField property. ...Show All
.NET Development how to assign a progress of a web request made by the web browser control to the progressbar
when we browse the internet using ie we see a progress bar showing the progress of the web request. how do achieve a similar behavior using the web browser control and a progress bar in .net 2.0 Hi, There is an event on the WebBrowser control: ProgressChanged. You may use the event and the argument that is contained there to update your progress bar. Max ...Show All
Visual Basic numeric calculations problems
Hi guys, I have a problem in working out some calculations within a form. My form is called, claddagh_database, which is linked to data from an access database using Jet 4.0 I have some fields with money values in, Total value inc VAt, Deposit, Stage Payment & Balance Payment. In access I had a field called Money Due, which was calculated using the expression Sum=([Total Value Inc Vat]-[Deposit]-[Stage Payment]-[Balance Payment] This then showed how much the customer still owes. The thing is, I cant seem to do this in VB.NET..... ( or find an equivelant function ) I have looked in a few books I have, website etc etc, and just cant ...Show All
.NET Development XmlElement not getting right NamespaceURI from XmlDocument.CreateElement
Hi, I'm trying to add XML elements to an existing document, and I'm having problems getting the newly created element to have the same namespace as the document. Below is a code sample of what is wrong: StringBuilder sb = new StringBuilder (); sb.AppendLine( "< xml version=\"1.0\" encoding=\"utf-8\" >" ); sb.AppendLine( "<TestRoot xmlns=\"http://testing.myorg.com/schemas/test123\">" ); sb.AppendLine( "<TestGroup>" ); sb.AppendLine( "</TestGroup>" ); sb.AppendLine( "</TestRoot>" ); XmlDocument doc = new XmlDocument (); doc.LoadXml(sb.ToString()); XmlNodeList nl = doc.GetElementsByTagName( "TestG ...Show All
.NET Development Missing Files in Microsoft.NET\Framework\v2.0.50727
Norton System Works' WinDoctor has found the error of C:\Windows\Microsoft.NET\Framework\v2.0.50727\ missing files and I believe Windows should address the issue. When I run Norton WinDoctor on my home PC, the following problems appear, with no repair capabilities: Missing program files (10 Problems): C:\Windows\Microsoft.NET\Framework\v2.0.50727\AppLaunch.exe C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet.reiis.exe C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe C:\Windows\Microsoft.N ...Show All
Visual Studio Team System Passing values from one web test to another
I realise that values can be passed from one WebTest to another using the Context. I have written a generic ValidationRule and I want people to be able to pass me an XPath to use as part iof the Validate evaluation. The XPath statement they are intertested in may be dynamic with parts of it changing based on test variables. For example, I could have a test that lets me buy from a shopping site and the item i buy is data driven. The test could be written to place the "item bought code" in a variable called "MyVar" in the test's Context. My generic validation rule knows nothing of this context variable of "MyVar" but does take an XPath. I ...Show All
SQL Server Is there an IN( ) function?
Is there and IN or and InList function in Reporting services I'm trying to do some conditional formatting and it would be really handy to be able to write an expression such as =iif(Fields!blah.Value In(X,Y,Z),"Red","White") Hi, There is no IN function. I have been using OR functions for this ...Show All
Smart Device Development Can't find PInvoke DLL '110506Demoptt.dll'.
I am trying to debug a C++ code from C# Device Appliation. When i reached calling the C++ function from C# it gives "Can't find PInvoke DLL '110506Demoptt.dll'.". The following is the code sipnet. public static CallBackDelegate myDelegate; [ DllImport ( "110506Demoptt.dll" )] private static extern void SetCallBackPointer( CallBackDelegate myDelegate); static void Main() { myDelegate = new CallBackDelegate (CallbackFunction); SetCallBackPointer(myDelegate); \\ When i reached this place i am getting the error "Can't find \\ PInvoke DLL '1105 ...Show All
.NET Development WSE 3 Exceptions
Hi, I am using WSE 3 and I am using usernameForCertificateSecurity. I have added my custom UsernameTokenManager to provide password for the user. My question is I want to get notofication from the WSE runtime if username authentication fails. eg user has entered wrong password. So instead WSE throws exception and returns SoapException to the client I want to return some user friendly message to the client eg Invalid username/password. Is there any hook where I can intercept all exceptions thrown by WSE Thanks I can catch the exception in each of the proxy methods, and I did that. The exception which I get when I call t ...Show All
Smart Device Development Form is unable to capture KeyEvents, but can capture them within a Control.
Hi all, I have set my form up to attempt to capture KeyEvents but they are not being fired, or at least my event method is not being triggered. But when I set the KeyDown event for a given control on the Form I am able to catch the key event. Ideally, I need to catch the events on the form. I noticed that I am unable to set the KeyPreview property on the Form as I am using .NET Framework version 1.1. Is there anyway I can catch these KeyEvents on the form My Code so far... this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FormSnagV1_KeyDown); private void FormSnagV1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) ...Show All
Visual Studio 2008 (Pre-release) Error while installing WinFX RC Beta 2
Every time I'm tying to install the WinFX RC an error occurs. When I have downloaded 46MB of 48MB the installation aborts. It would be interesting if anybody else have this problem too. I also tried to install it on a 'clean' System, but the error occurs too. Is it possible that the server is overloaded -Daniel EDIT: I figured out it has something to do with the languagepack: [05/24/06,13:31:04] WinFX Language Pack - DEU: dlmgr: entering CDownloadJob::Complete() [05/24/06,13:31:04] WinFX Language Pack - DEU: dlmgr: leaving CDownloadJob::Complete() [05/24/06,13:31:04] WinFX Language Pack - DEU: dlmgr: FVerifyTrust.Trust result= [05/24/06,1 ...Show All
SQL Server semi-addittive measures
Hi everybody. From the site:http://www.microsoft.com/sql/2005/productinfo/sql2005features.mspx I saw that, whilst the Time Intelligence is available for both Standard and Enterprise Edition, the semi-addittive measures will be available only for the Enterprise Edition. How is it possible From what I understood the Time Intelligence is also used to have the possibility to have the semi-addittive measures, isnt'it Further, if I can't use the semi-addittive measures for Standard Edition, it does mean that I have to use MDX programming in order to aggregate on the dimensions through First and Last Thanks. Hi Vania, There's defi ...Show All
Smart Device Development Emulator softkeys
I recently upgraded to VS 2005 FC1 and now I have a problem. For some reason, the Windows Mobile 5 Emulator's softkeys are mapped to numeric keys. For example, pressing the left softkey while in the home view will result in a '1' being entered instead of display the start menu. Pressing the right softkey will result in a '2'. Pressing the home and back buttons work. Pressing the Green phone button will result in a '3' and the red phone button in a '4'. All the other real numeric buttons appear to be ok. This only happens with the WM5 emulators (all of them) but the 2003 emulators work fine. Has anyone seen this and have any idea how to resol ...Show All
