Software Development Network Logo
  • VS Express Editions
  • Windows Live
  • SQL Server
  • Windows Forms
  • Smart Device
  • Microsoft ISV
  • VS Team System
  • .NET Development
  • Visual Studio
  • Architecture
  • Visual Basic
  • Visual J#
  • Visual C++
  • Visual FoxPro
  • Visual C#

Software Development Network >> sibot13's Q&A profile

sibot13

Member List

smathieu
Gordon Glasgow
LockyBoy1
GOEran
PhilippeMoison
Irreversible
TB_01
acfalcon2001
Przemys?aw Rokicki
Jay S
NathanP
Nicolas S. Nielsen
Sandeep Bhutani
Ehsan Tabari
Santiago Cepas López
hye_heena
Amitabha
mancroft
Thierry Nenin
McCloud
Only Title

sibot13's Q&A profile

  • Windows Forms Remoting from Embedded Control

    Any luck with remoting calls form a .net user control embedded in IE  The same control works fine embedded in a Windows form.  We have the security policy set to allow full access. Any luck on remoting from embedded controls in IE Browser Thanks ...Show All

  • Visual C# Should be getting an exception... right?

    I have the following code in a Web Service. I already have a row in the table where Qty, Commod, and CompID equal 0. When I try to insert another row where all are 0 in SQL manager, it gives a primary key error, as excpected. When I run the method below and do the same, it does not catch an exception. It just return true, without ever inserting the new record. I want this SQL exception to be caught, and this method should then return false. Any ideas [ WebMethod ] public bool UpdateInv2( double Qty, int Commod, int CompID) { try { SQLProvider sp = SQLProvider .GetInstance(); sp.ConnectionString = @&quo ...Show All

  • Visual C++ Capturing Screen

    Hello, I've been wondering how is it possible to capture the screen in my Visual C++ 2005 Windows Forms application. With Thanks,                     Gal Beniamini. On your keyboard towards the right side there is a button called insert, straight above that is a small button called prt scr/sysrq, push that button to take a picture of the current screen, it saves the image to the clipboard meaning that if you open an advanced word application such as WordPad or Microsoft Office Word then when you paste it pastes the image onto t ...Show All

  • Visual Studio Team System FxCopCmd and global suppressions.

    I've found some strange behaviour running FxCop from the command line (FxCopCmd.exe) for a project with global suppressions: The global suppressions get ignored after cleaning and rebuilding the solution. Steps to reproduce: (This is with the VS 2005 release candidate.) 1. Launch VS 2005. 2. Create a new C# project (Windows application) named "FxCopCmdTest". Save it to C:\ (for simplicity). 3. Run code analysis on the project. 4. In the Error List there should be 5 warnings. Of these, CA2209, CA2210, and CA1014 do not apply to a source file. Right-click and suppress any of them -- a GlobalSuppressions.cs file should be created. 5. Run cod ...Show All

  • Visual Studio Team System Can/Will beta 2 SCC/WI data be preserved in the GA release

    OK, we're interested in starting to use beta 2 for our next big project, however I need to know if the data we create using beta 2 can be preserved (or at least migrated) in the GA release Does the "go live" license apply to TFS too Dave We haven't been dogfooding it for 2+ year - It's been about 8 months :)  A converter from SourceSafe has been planned from the beginning as you suggest and is available in the Beta. The issue of migrating from build to build has been on the radar for a long time - it's just that it's a tricky problem to solve while the schema is still so much in flux (and it was at the time we snapped the sou ...Show All

  • Visual Studio Team System How do I derive from TestContext class and implement from base members

    So, I see a lot of people are looking at this. But no one is responding to it.  It would be great if someone would be able to at least check the answer to verify it.  ---------- Im lazy, and somewhat new to OO. I am attempting to derive trom the TestContext class.  But am not able to use the base class methods when overriding the base class methods... namespace TestPlay{ public class newTestContext : Microsoft.VisualStudio.TestTools.UnitTesting. TestContext {    public override void AddResultFile( string fileName){    throw new Exception ( "The method or operation is not impl ...Show All

  • Visual Studio Team System Identifying 'using' (C#)

    I'm trying to write a rule to check a certain object type is always used as part of a 'using' code block. I get the impression that the only way to do this is by doing some source walking - I find no 'VisitUsing' method. Looking at my source in ILDASM, it appears that using blocks are compiled to try --> finally blocks, with object initialisation before the try. I assume, therefore, that there is no explicit way to identify this in FxCop Sorry Michael, when I said source walking I meant looking at the IL... I was just checking there wasn't an easy way to get at this code pattern from the FxCop analysis. N ...Show All

  • Visual Studio Team System Calling a web test from another web test

    I have generated couple of web tests using Visual Studio 2005. I want to call a web test from another web test where some parameters can be sent to the calling web test. Can anyone let me know how can this be accomplished. Sure this is a late reply, but this not for you rajeev. Whom ever searching in forum this will be help full This is code which use to call webtest1 from webtest2 namespace TestProject2 { using System; using System.Collections.Generic; using System.Text; using Microsoft.VisualStudio.TestTools.WebTesting; public class WebTest1Coded : WebTest { private WebTest2Coded m_ ...Show All

  • SQL Server Using SQL Server Express in Commercial App

    I'm working on a server based ASP.NET app. I'd also like to deploy it as a single user version. Rather than rewrite it to .Net windows (at least initially), I'm thinking about having the user install Cassini and SQL Server Express on their machines, and run the app as a "local" web app. Clearly, there are a lot of issues to consider. One is whether to even think about using SQL Server Express for this. So, two questions on that, initially: Q1) Are there any licensing issues I would direct the user to download directly from MS. Q2) What would it take to get SQL Server Express and the application to start talk ...Show All

  • SQL Server Subtotals broken in Report Builder?

    Sub-totals are not working as I would like/expect in an end-user tool when dealing with data from a relational schema with cascading 1-Many relationships.  Instead of performing aggregation at the level of the source table, it is blindly performing aggregation on the result set, causing incorrect results. An simplified hypothetical example will make this clear. Imagine the following relationships: Table "Patients"  related 1-many on patid with Table "TreatmentsProvided"  related 1-many on treatid with Table "FinancialTrans" for the following tables: Patients patid           n ...Show All

  • Visual Studio Express Editions IO exeption when trying to write to or read from a file

    Hello When my program tries to read or write to a file I get the IO exception error, it says the file is in use by another program. This is the code I use (test code). The file gets created and then I get the error. Dim file As System.IO.FileStream file = System.IO.File.Create( "c:\test.txt" ) My .Computer.FileSystem.WriteAllText( "c:\test.txt" , "test text" , True ) Dim filereader As String filereader = My .Computer.FileSystem.ReadAllText( "c:\test.txt" ) Label1.Text = (filereader) Anyone know how to fix this Bye and thanks in advance. ...Show All

  • Visual Studio Express Editions Having trouble watching training videos

    Hi, I'm trying to watch the training videos on Microsoft's site ( http://msdn.microsoft.com/vstudio/express/vwd/learning/default.aspx ), yet the video will pause while the audio continues. Anyway to get these videos to run smoothly without the video pausing for a minute every once in a while I can still here the audio though. Thanks! Leo I downloaded them and I still get the same problem.  For example, on the first video at exactly 15min : 11sec the video pauses and doesn't resume until about 18min : 21sec.  I personally dislike .wmv, I wish microsoft would have giving the option of a ...Show All

  • Visual Studio Team System Static Analyzer reports buffer overrun in comdef.h: C6386

    The static analyzer doesn't like a section of code in the standard include file comdef.h(258): m_pszMsg = (LPTSTR)LocalAlloc(0, 32 * sizeof (TCHAR)); if (m_pszMsg != NULL) { WORD wCode = WCode(); if (wCode != 0) { _COM_PRINTF_S_1(m_pszMsg, 32, TEXT( "Unknown error 0x%0lX" ), m_hresult); To me this seems a hick-up of the static anaylzer. I have see some other post that described that this is caused by the fact that /analyze was defined for the project or just activated by the project menu. But that post was about a pre-release, and I am using the released version of VC2005. Have anybody else seen th ...Show All

  • Windows Forms How to access methods of MDI Child form by MDI Parent toolbar?

    How can I access the methods (save, new, delete methods) of a MDI child form when clicking on a toolbar positioned in the MDI parent form So on the MDI parent I have this toolbar. When clicking on a button on this toolbar it must call a method from the current MDI child form. There are several types of MDI child forms, but each contains (the same) methods... Does anybody has an example of how to do this Thanks, Alwin I'm answering for my own question :) I found :) use : ala = dynamic_cast <Iform*> (ActiveMdiChild); ala->napisz(); for example :P ...Show All

  • Visual Studio Team System error adding wsdl to a webservice

    Hello, I have a strongly typed dataset that is being returned in a webservice. I wanted to start using the architect of ts and create documentation. When I open up a DS and add a webservice application and then right click and select "create webservice endpoint from wsdl" I get an error stating "The name is not a valid type name" If I add a reference to the webservice for a project in the ide I can see the webservice function so I do not belive there is an issue with the service itself. Has anyone had a problem trying to add stronly typed datasets to a webservice application for architect Thanks in advance. John ...Show All

©2008 Software Development Network