Software Development Network Logo
  • Windows Vista
  • SharePoint Products
  • Visual FoxPro
  • Visual Studio
  • Visual C++
  • Game Technologies
  • Audio and Video
  • .NET Development
  • VS Team System
  • Smart Devicet
  • Visual Basic
  • Microsoft ISV
  • IE Development
  • SQL Server
  • Visual C#

Software Development Network >> matthew pearson's Q&A profile

matthew pearson

Member List

ai_rasmussen
Blader
Jaime Stuardo
wafer
Snow Teo
etcheverrjc
David d48701
Amos Soma
Anil Narayanan
Maxim Masiutin
twospoons
ejschoen1
Gary Thorne Jr
Ecrofirt
doener
johnny_no1_boy
voevoda
thomaskremmel
Nishith Shah
Taoyo
Only Title

matthew pearson's Q&A profile

  • Visual Studio Express Editions Is it possible to shell an application seamlessly?

    I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before I'm not aware of anything natively (to .NET), however, the SetParent API may be usable, if you get the handle to the window that you open. Will it work Don't know, but it may be a start. You could use the FindWindow API to get a handle that you could use for SetParent. None of this is trivial, and is going beyond the basics, as it were. ...Show All

  • SQL Server Noob having troble with group by etc.

    Well i guess it is a bit more than just group by but here we go... General description :( background info on the problem; may or may not be needed) I am trying to get a list of active card holders for a particular month.  A card holder is considered active if their status was active any time during that month. I have a card holder status in my  CardHolder table but that will only give me their current status.    I also have a CardHolderHistory table that saves any changes to a card holder including their status.  Using the CardHolderHistory table i can find out who was active for any month in question by using the following algorithm: A card holder is active if they meet one or both of the ...Show All

  • Visual C# What is the equivalent of the ProjectInstaller.cs class?

    I am working on a windows service and I am not sure what the equivalent of the ProjectInstaller.cs class is for the 2.0 framework. Is there any example code out there for creating a windows service using the 2.0 framework. Thanks you posted this question in the C# Express forums also. Please confirm, are you using C# express OR the full Visual Studio 2005 How did you get ProjectInstaller in the previous version of .NET Was this a setup and deployment project ...Show All

  • Visual Studio 2008 (Pre-release) [WCF-RC1] Adding claims in UserNamePasswordValidator

    OK, another dumb *** question (folks, I am _trying_ to research these things first before bothering you, and I'm starting to feel like a child who can't do his homework!) My STS is based on the Federation example in the RC1 release, and it uses a custom UserNamePasswordValidator to validate the client credentials. In the Validate method, I look up the user in the DB, validate the password etc and return true. Then, within the GetIssuedClaims override that "Issue" calls, I need to create the claims that will be added to the SamlToken. However, the values of the claims that I want to add are stored in the DB in the row that I just looked up in the Validate method, and I really don't see why I would need to look them up again. How c ...Show All

  • .NET Development Open a Notepad application in another system

    Hi Guys, I am trying to make an application in which i need to connect to a remote machine and open a notepad application in his machine.This application should be able to connect to the remote machine as well as trigger any application in his local system. Everyhelp in this regards will be appreciated. Thanks Jasu I think you could probably use WMI for this ConnectionOptions theConnection = new ConnectionOptions(); ManagementScope theScope = new ManagementScope ( "\\\\computer\\root\\cimv2" , theConnection); ManagementClass theClass = new ManagementClass (theScope, new ManagementPath ( "Win32_Process" ), new ObjectGetOptions ()); theClass.InvokeMethod( "Creat ...Show All

  • Windows Forms How to modify the ToolBoxItem.CreateComponentsCore defaultValues parameter

    ToolBoxitem has a CreateComponents core method and one of the parameters is a set of Default Values that the ToolBox uses to setup the control it will create. How can I modify what is passed into there BEFORE this method is called My design surface is based off of Form. I would like to override the method where the drop happens and the create components core is called. I've looked at the call stack for this and there are about 15 things that happen before it gets to this method, so I'm not sure where to jump in (or if I even can) Thanks for the help. Yes the location and size are correct. It is only the custom properties that I set that are set back to default. I am setting the properties directl ...Show All

  • Visual Studio 2008 (Pre-release) The socket connection was aborted.

    Hi. I've created simple wcf service and client. They use netTcpBinding. When connecting to service, client catches exception with message: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '01:09:59.9687494'. Timeout in above message is client sendTimeout after I increased it to 01:10:00. Service processing takes only 2seconds but as soon as service finish processing client catches that exception. I've tried to increase service receiveTimeout but that did not help either. I've even stepped in service code after OperationContract was called from client code and the ...Show All

  • Visual Studio Team System TeamBuild Fails when building Solution with EntLib 2.0 projects.

    My ultimate goal is to have a continuous integration build but I'm not there yet. My current solution has the Enterprise Library 2.0 projects added to the solution. I then have project level references to the entlib projects for the various custom app blocks I've written. When I run the TeamBuild, I get 4 errors relating to the length of the file or path. All of the errors appear to be located in the enterprise library proejcts. When I run msbuild against the TFSBuild.proj file everything works fine. Below is the contents of the ErrorsAndWarningsLog.txt. Is there any workaround for this error Does it make sense that the build is successful using MSBuild but not throught he TeamBuild Solution: EAF.sln, Project: Data.Configuration.Desi ...Show All

  • SQL Server SQL 2005 MANAGEMENT STUDIO DOES NOT LOAD!

    Hello, When I click on the SQL 2005 Server Management Studio the graphics for the studio flash once and the studio DOES NOT launch. SQL works fine and I can administer from another SQL 2005 server.. however, I sure would like to know how to fix it. Any help is appreciated. Thanks Ash It is SQL 2005 Standard SP1(not express) on Windows 2003 Server Standard SP1 . I uninstalled and reinstalled the tools and now get this error: TITLE: Connect to Server ------------------------------ Cannot connect to ACCOUNTING1. ------------------------------ ADDITIONAL INFORMATION: The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. (System.Data) ------------------------------ The type in ...Show All

  • Visual Studio Team System Checking in VS.Net 2003 solution

    I am using .Net 2003 with the TFS source control provider. I don't know if they behaviour I am noticing is specific to 2003 and the source control provider or if it happens in 2005 as well. When I have multiple changes in several projects within my solution and I then want to check-in all the changes I do so by checking in at the solution level. What happens is that I get prompted to check in changes for each individual project. The net result is that I have several changesets created (one for each project). Obviously this is not ideal. Is this a problem with the provider or does this happen in 2005 Any ideas what I can do to get around it Will checking in with Team Explorer work (I prefer to check-in via Visual studio because I am never q ...Show All

  • .NET Development sending dataset on sockets

    Hi, I am using framework 1.1 and VS 2003 I have a dataset that I want to pass over socket. How can I do this any sample Also, on the recieving end, how can I convert it back from binary to dataset. Thanks, Datasets are binarily serializable. If you are using a socket you can simply serialize the DataSet using the BinaryFormatter class. Once it is serialized to a binary stream, you can send the stream accross the wire via your socket, and then deserialize on the other side back to a DataSet. ...Show All

  • .NET Development XmlDocument.GetElementsByTagName

    when using XmlDocument.GetElementsByTagName(LocalName) the LocalName are case sensitive, can make it non-case sensitive or any similar way but can bypass the case sensitive comparison thank you. XML is case sensitive so XML APIs are too. .NET allows you also to use XPath with SelectNodes and there you can use expressions alike xmlDocumentInstance.SelectNodes(@"//*['element-name' = translate(local-name(), 'ABCDEFGHIJKLMNOPQRSTUVVWXZY', 'abcdefghijklmnopqrstuvwxyz')]") But that is somehow akward to as you have to list all characters that are possible. Generally with XML being case sensitive your code processing element or attributes should use the proper case, otherwise you are running i ...Show All

  • SQL Server Cannot connect to server

    Hi, I am using sql server 2005 sp1 developer edtion. I have looked at the install logs and all ok, but when connecting to my server (LAPTOP) i get the following error below. I have not changed any of the xml config file, if anyone can help me i would be very grateful. Thanks in advance kered TITLE: Connect to Server ------------------------------ Cannot connect to LAPTOP. ------------------------------ ADDITIONAL INFORMATION: The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. (System.Data) ------------------------------ The type initializer for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception. (System.Data) ------------------------------ The type initiali ...Show All

  • Visual Studio Express Editions problem about login again after user click 'X' which on the top right of Window

    Hey guys, please feel free to help me I 'm doing the login form that can connect with .mdf database file , everything is fine. I have 2 forms - frmlogin & frmmain. I can login in frmlogin , and go to frmMain. but after i hv login, and click the X which on the top right of the window form in order to close frmMain, then i can't login again with correct ID & Passwd. it just show up ' Login Fail' here is my code Sub validateTextBox() If CStr(tbStaffID.Text) <> "" Then If tbPassword.Text <> "" Then connectSQL() Else MessageBox.Show("Pleas enter the password", "Error") End If Else MessageBox.Show("Pleas enter the Staff I ...Show All

  • Visual Basic Execute Code on Application Exit

    I need to find out how to add a confirmation dialog box if the application is going to exit, ie i call application.exit() or the last form is being closed. I need my app to confirm the exit with the user and also perform some maintenance type tasks before it exists as well. is that all i only have to put that in all 50 forms, well thats a whole lot easier than finding out what line or few lines of code it will take to abort the shutdown in the code i already have. Not too mention your method is too redundant, which beyond making the application larger makes it harder to update the shutdown process for future versions. ...Show All

©2008 Software Development Network