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

Software Development Network >> Keith Short's Q&A profile

Keith Short

Member List

John_W_F
Foss
bjohnso2
mci
Spock101
Morris71
Utini
Ramon de Klein
Heemanshu Dave
chriso
Samik Dutta
Erwin van Hunen
Sion380
Raphinator
Aran
Prunier
Holy Eggplant
Jeffy
TasneemHasAQuestion
Pete Wilcox
Only Title

Keith Short's Q&A profile

  • Visual Studio Team System DoNotInitializeUnnecessarily

    Name: Do not initialize unnecessarily Level: Warning Certainty: 90 File: Performance Rules Category: Microsoft.Performance Check Id: CA1805 Additional Information: Do not make initializations that have already been done by the runtime. This rule asks that I comment out the line: private System.ComponentModel.IContainer components = null; In global.asax.cs for a web application. Doing this produces a compiler error, '(Namespace).Global' does not contain a definition for 'components' This rule appears to be incorrect in this instance. Try changing it to private System.ComponentModel.IContainer component ...Show All

  • .NET Development AppDomain.AppendPrivatePath Depricated

    I get a CS0618 that AppDomain.AppendPrivatePath is obsolete. The suggestion is to use AppDomainSetup.PrivateBinPath instead, but no matter how I set it, PrivateBinPath remains null. I am trying to update AppDomain.CurrentDomain after the domain is started. Is AppDomainSetup the correct way to go It seems this would only apply at creation of the domain, and I need to make this modification after the AppDomain has started. Thanks i have the same problem. is there no way of changing the private bin path of the base domain. i used to do this using the AppendPrivatePath, how do i do the exact functionality of ...Show All

  • Windows Forms some WebClient questions

    Hi, there ***************************************************************** string remoteUri = "http://test.com/test/"; string fileName = "test.jpg", myStringWebResource = null; myStringWebResource = remoteUri + fileName; WebClient myWebClient = new WebClient(); myWebClient.DownloadFile(myStringWebResource,fileName); ***************************************************************** I can download file from web server. Now I have some questions, hope somebody can help&nb ...Show All

  • SQL Server Profiling SSIS Package

    I am trying to start performance tuning a package that is taking awhile to run.  I want to know if there is a way to figure out how long each task and/or data flow takes to execute so that I can start figuring out how to tune the slower ones. Thanks, Chris   ChrisKinsman wrote: I am trying to start performance tuning a package that is taking awhile to run.  I want to know if there is a way to figure out how long each task and/or data flow takes to execute so that I can start figuring out how to tune the slower ones. Thanks, Chris There exists a variable on each container (including TaskHost container) called Syst ...Show All

  • Smart Device Development How can I do this in .NET CF1? Is this possible?

    Anyone got a c# class that has autocomplete added Thanks! The instrinsic controls in CF do not expose the OnPaint event. As Ilya mentioned, you can try to sublcass the control, but let me tell you, it is not easy, because you will need to draw everything yourself. IMO it would be easier just to use the OwnerDrawn list from SDF. ...Show All

  • Windows Forms DataBinding - Hardcoding ValueMember and DisplayMember

    Something that always bugged me about data binding in Visual Studio is that you specify the DisplayMember and ValueMember of the binding to be strings that are *supposed* to be properties of the data source. You get no intellisense help when entering these values and, if you spell it wrong or the name of a property changes later, the project still compiles and runs fine until you hit that binding. Is there a way, using reflection or any other method that I am not clear on, to get the name of a property directly from an object instance For example, I have a 'Customer' class with a 'Name' property (string) that I want to bind to a text box ( ...Show All

  • Visual C# Multiline Search and Replace

    Is there an Add-in available for VS.Net 2005 that will do multiline searching and replacing In other words, what I would like to do is search for: line 1 line 2 line 3 and replace it with: line 1A line 2A line 3A etc. Is there a tool that does that Thanks, Chuck Cobb This reads mroe like a refactoring problem. Regardless, you can still get it done w/ what you already have. Peter Macej - of Helixoft blog - wrote a macro that extends the native regular expression search n' replace to provide multiline search n' replace. I haven't used this code myself, but the approach is promising and the b ...Show All

  • Windows Forms Asynchronus WebService call Progress Bar

    I have a WebMethod that I'd like to call asynchronusly and be able to display a Progress Bar.  What's being sent to the WebMethod on the WebService is a byte array. I'm fairly new to asynchronus calls and was wondering if this is possible before I dive in looking.  Thanx!  :)  Unless the database provides a callback mechanism&nbs ...Show All

  • Visual Studio Express Editions Visual C# and SQL Server

    Thinking of upgrading to Standard. Anyone know how C#.net works with remote databases over WAN links. Is it still better to create an asp.net hosted application or do executables created with .net cope quite well with bandwidth limitations like asp hosted apps do Another quick question, say I have a panel with a datagrid in it. If the panel if Enabled is set to False does everything within the panel also disabled And also if a datagrid is set to Enabled = False. When the program runs does it pre fetch the query attached to it What I'm trying to achieve is that the query only occurs when that particular panel is chosen and to unload th ...Show All

  • .NET Development Bluetooth support

    hi, i'm searching for information on bluetooth support on the pocket pc for the .NET CF 2.0 , searching the MSDN library i haven't found almost anything, is the only way to handle a bluetooth communication with a PPC using P-Invoke , or are there classes in the CF for handling this communication could anyone point me to the right information Simon Garcia http://32feet.net/ This suite of library provides a .NET networking API for devices and desktop computers running the Microsoft Bluetooth stack, Microsoft Windows supported IrDA devices and associated Object Exchange (OBEX) services for both these mediums. ...Show All

  • Windows Forms How to use datasets across multiple forms?

    I'm having a hard time understanding what the method is to create a copy of the database within my application using a single dataconnection and data adapters   In other words, all of the examples you see regarding datasets, etc. show you dragging and dropping your table onto the form which creates a connection object, data adapter object, and finally  ...Show All

  • Software Development for Windows Vista xoml or xaml?

    As I understand it Beta 1 uses ".xoml" for historical reasons, and Beta 2 will use ".xaml". But in Beta 2 currently all the wizards and samples etc creates .xoml. Does this matter at all Should we save our worfklows as .xaml or .xoml as far as i know workflows (with code separation) are .xoml and user interfaces are .xaml ( e X tensible A pplication M arkup L anguage) regards, .k ...Show All

  • .NET Development ...encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]

    I am getting this compiler warning in my project and it doesn't seem to make sense.  What am I doing wrong "Type library exporter warning processing 'B, myAssembly'. Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and exposing an explicit interface as the default interface to COM using the ComDefaultInterface attribute." Well, class B derives from a generic class, List<C>... but it *IS* marked as [Cla ...Show All

  • Windows Forms get template of a document

    hi, i develop an addin project. i want to find the template of a  document when document is opened. i could catch event when a  document activated with below event handler.  public void WindowActivated(EnvDTE.Window gotFocus, EnvDTE.Window  lostFocus){ gotFocus.Document.   }  in the event handler, i want to determine template kind of document. I used gotFocus.Document.Kind property ,but&nbs ...Show All

  • Visual Studio 2008 (Pre-release) Is it possible to run a WPF application that requires full trust in a browser?

    Our app is a xaml browser application, and is set to 'requires full trust' option. It can run in debugging mode, but does not run in the browser. The following error is shown: Trust not granted. The application cannot be deployed because it is not trusted and possibly unsafe. Detail: PLATFORM VERSION INFO Windows : 5.2.3790.65536 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://localhost/DataAnalysis/DataAnalysis4.xbap Application url : http://lo ...Show All

©2008 Software Development Network