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

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

SwingLifeAway

Member List

k m
Dirk4088
Jose Fco Castano
OlliH
rreineri
threna
uAli
DaveTrux
Sudip Guha901
Geoff Dean
Adrian Baras - MSFT
MilesP
Callan
Geokri
RLauzon
urraca
Lalabonne
Maplesoft
Karel Deman
dba123
Only Title

SwingLifeAway's Q&A profile

  • Visual C# Question about making object instance visible to other objects

    I have 3 classes: MainClass SettingsClass FormClass Now, Mainclass handles most operations and does it's job well, upon being instantiated it creates an instance of SettingsClass, we'll call this instance _settings.  SettingsClass holds global settings for the application... like the user name, state of various things, that sort of stuff.  During the lifetime of MainClass, a FormClass may or may not be instantiated as well.  FormClass needs to be able to access _settings (the same instance of SettingsClass that MainClass uses).  At first, I was making the constructor for FormClass take a reference of SettingsClass, which ...Show All

  • Visual Studio Tools for Office Inspector CommandBars

    I would like to add a command bar to the window where I read the messages but not to the one that opens when I want to create a new e-mail message. I create the CommandBar in my Microsoft.Office.Interop.Outlook.InspectorsEvents_NewInspectorEventHandler Event Handler. I can limit the creation of the command bar to a MailItem by saying : if (Inspector.CurrentItem is Outlook.MailItem)             {....} But I cannot differentiate between a new e-mail message window and the window that opens to read an existing message in any folder. Any Ideas on how to do that I work with VS2005, VSTO 200 ...Show All

  • Visual Studio Team System CA1303 DoNotPassLiteralsAsLocalizedParameters - How to ignore?

    Hi folks, if we want to ignore CA1303 - but only on some specific areas, not the entire solution - is there a way using attributes or something or is it 'all or none'. thanks :) If you are using the Code Analysis within Visual Studio Team System, or using FxCop 1.35 you can actually use code suppressions via the use of the SuppressMessage attribute to ignore individual violations. For example, the following use of the SuppressMessage attributes ignores the single violation of CA1303:      [SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Mess ...Show All

  • Visual Basic VB Express Very Sluggish With 150 Form Project

    I just removed the VS Beta and installed VB Express. Now the IDE is extremly sluggish. Many IDE actions, even simple ones like adding a new line, take 10 or more seconds to appear on the screen. VB is bordering on not being usable. This is on the same desktop platform as the beta 2 was installed and it was usable - build was taking a bit longer than I wanted but OK. The project has over 150 forms. Is VB Express intentionally crippled compared to the full VS Standard version That is can VS handle a 150+ form project better than VB Express Was there some change between Beta 2 and RTM that makes big projects unusable Is there some u ...Show All

  • Visual Basic Unterminating strings returned from DPAPI decryption

    I've just copied an implementation of the DPAPI based on MSDN article http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetsec/html/SecNetHT07.asp However, when I run DataProtector.Decrypt, the byte array comes back with an extra byte with the value of 0 (the null memory value). For example, if I encrypt a connection string (96 characters): User Id=testid;Password=passwd;Data Source=dbase;Connection Timeout=30;validate connection=true; I end up with a 97th byte coming out of Decrypt which creates an unterminated string when I call Encoding.ASCII.GetString. It doesn't seem like anyone else is having this problem - ...Show All

  • Visual C# Newbie question...odd or even?

    Hi ! I have just started studying C# and I need some help... I'd like to know how to tell if an integer is odd or even I want to use it with an if / else function. Ex. int c ; if ( c is odd) { // do this } else { // do that } Hope you can help me Try this: if (c % 2 == 0) { Console.WriteLine("Even"); } else { Console.WriteLine("Odd"); } Basically what this is saying is, divide c by 2 and give me the remainder. If the remainder is 0, then 2 can be divided into c and it is ...Show All

  • Visual Studio Tools for Office VSTO - Outlook - Unload addin

    I have written an addin for Outlook 2003 using VS.net 2005, VSTO, and C#. In " ThisApplication_Startup" I perform several tests to see if the addin should load for the current user. If the addin should not load, how do I unload the addin without shutting down outlook I keep seeing things that say you can shut down the addin's app domain, but I have not seen code that says how to get the addin's app domain. If this is how you are supposed to do it could someone give me a code snippet to accomplish this If there is a better way could someone please let me know what it is Thank you very much Kelly Johnson ...Show All

  • SQL Server FileSystem Deployment

    I am still a little confused on how the file system deployment works. When I deploy my files they end up in {ROOT}/Microsoft SQL Server\90\DTS\Packages\{PKGBUNDLE}, but the connection managers still reference the original dev path. Why does it copy to a seperate directory but still reference the old path, what's the significance Is using pkg_vars the only way to update conn mgrs to reflect the new path (outside of using a grep util to search and replace) I guess I am looking for design patterns, how are others handling the deployment process when deploying on the same server P.S. When we port this to the production server, we plan on u ...Show All

  • SQL Server RAPI, CCeDBDatabase, EDB, CEDB, and the future

    Hi,   I'm trying to migrate to VS2005 and prepare for future Windows Mobile releases.  My app uses MFC, CCeDBDatabase, and RAPI from the desktop to sync with the device version of the app.  Works great now, but I'm worried about how many different ways it will be broken in the future .   My questions - first, are we pretty certain that CEDB will NOT be supported after WM5   Next, is there, or will there be, a CCeDBDatabase class for EDB   VS2005 seems to know nothing about CCeDBDatabase.  What should I be doing with the CCeDBDatabase; do I need to re-write everything using only API calls &n ...Show All

  • SQL Server Database is read-only.

    Hi I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when I run the app from the Browser tells me that he Database It's set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open ...Show All

  • SQL Server How to access report parameters in custom code

    Hi, Below is a custom code function for my report. At bottom is the expression that calls the custom function. When I run the report I get an error message:  "There is an error on line 3 of custom code: Reference to a non-shared member requires an object reference."   If I take out the lines that try to access the report parameters then there is no error.  Can report parameter be set/read from the report's custom code Thanks!   Public Function FormatColorFirstName(varFirstName) As String     Select Case varFirstName       Case "John"    & ...Show All

  • Windows Forms Client changes to app.config after click-once publish and delivery.

    I have a VS 2005 Win Forms Application that is being developed for a client. Once system tested, I want to hand over the application to the client with some instructions for installation and setup in their environment, i.e. they need to specify connection strings, web service url's, timeout periods, etc in the app.config. There are many settings here that they could potentially change (10-15). However, when I use click-once to publish the application, how does my client change the settings within the app.config It seems to me that once published, these values are locked.. even if I change them in the app.config before installation ...Show All

  • Visual Studio Team System Unit Testing Web Service that returns DataTable type

    I am trying out the team testing facility in VS 05 against a web service and am not sure what the intended use is, and can't find a good example. I have a webservice with one method which returns a data table, and have used the "Create Unit Test" option to generate a test method which has created the proper web reference in my test project, providing generated class to interact with the service. The response from the web service method is being packaged in what appears to be a generic type for xml responses. This type is being cast from object on return from the service, but does not seem to be capable of being cast to any other type, ...Show All

  • Visual Studio Creating a solution addin

    Hi, I am trying to create a solution addin according to the information in http://msdn2.microsoft.com/en-us/library/ms165621.aspx but, the Solution.Addins.Add(...) statement doesn't compile. it requires the first parameter to be a string which represents the progID. How do I get the progID for my addin The only examples I found take the progID of another addin. Thanks You need to use either an unmanaged language (C++) or register for COM interop if you are using a managed language (C#/VB/etc). If you are using C++, the ProgID is in the .rgs file. If you are using a managed language, then y ...Show All

  • Visual C# Implementing IDisposible, question mainly about releasing managed resources.

    I wonder if someone with more knowlage then me about the following can check, and possibly clear up that i'm coding the following correct. The following code is a code fragment, and it shows how I implement my own Dispose method, as you can see from the class it's inheriting the IDisposable interface. I have two questions. A) First could someone check over this code and make sure everything appears correct, I check over I'm refering to the Dispose methods, contructor and deconstructer. B) Second i'm a little unclear what resources should be released inside 'performDisposeManaged'. I'm under the impression it's any resource thats man ...Show All

©2008 Software Development Network