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

Software Development Network >> BRAD.Marsh's Q&A profile

BRAD.Marsh

Member List

Alexander Stoyan
Sankar N
Mitch5713
Blackice
Alastair Q
Ryan Carlson
RoggA
pompeyjohn
lokeshbohra
dbldown768
jjsan
geneway
Jon50
Michael.Young
Helen999888
Peejj
Smitty1276
Chris in DFW
DavidThi808
occam123
Only Title

BRAD.Marsh's Q&A profile

  • Visual Studio 2008 (Pre-release) Need example of custom assembly.

    I am looking for a good example of how to extend my application so that clients can can do their own custom functions by just modifying xaml. Do I create a standard class library or a WinFX Custom Control Library. What I want is for them to specify a button click event from a dll that they wrote and included the reference to that in my xaml. Rod Custom Control Library doesn't do much beyond a standard library. It just adds the correct assembly references, adds the right theme attributes to AssemblyInfo, and creates a default UserControl to start with. Otherwise, it's just another class library. Now, you want to allow a third-party to define the method that event (Button click, for example) fi ...Show All

  • Visual Studio Team System VSS Migration hanging TF60047 - how to move forward?

    I am in the middle of running VSSConverter to migrate our source (~2GB) from VSS to TFS. It has been hanging for an hour or so with error # TF60047. The error message says there could be a problem with the network connection or TFS connection. I am running in a single server setup so TFS and SQL Server are all on the same machine, and all are running, incl. all SQL Server service - I checked in Configuration Mgr. One problem earlier was that there was huge (~800K) memory usage by w3wp.exe which was being run by the TFSService account. So I shut down IIS. Now, even though memory usage is down to acceptable levels, the migration is still not moving forward. Any ideas on how I can proceed here Or if I were to start afresh, how do I do that ...Show All

  • Windows Forms Child controls are not removed from Controls Collection from within IComponentChangeService event handlers

    Can someone who knows more about this than me please help : I have a custom form with a custom designer and a custom CodeDOMSerializer. When my form changes at Design-Time, my custom code serializer writes info about the form's child controls. HOWEVER, I have a problem... I need to know when a child control such as a button is deleted from the form on the design surface. So I listen to BOTH the IComponentChangeService's 'ComponentChanged' and 'ComponentRemoved' events. The ComponentChanged event is fired when the form's ControlCollection is modified and the ComponentRemoved is fired when the button is removed. But from within both of these event handlers, when I iterate through the Child Control Collection of the actual form, the ...Show All

  • Visual C++ Fastest way to convert native array to generic List?

    I am writing managed wrappers to native functions (in order to be available to other .NET languages such as C# or VB.NET) and I am running into a performance problem. The interface to the native function looks something like: native_function(short *buffer, int &bufferLength); What it does is return an array (native) of shorts and the number of elements in the array. Now, I want the managed wrapper to have the following interface: wrapped_function(List<short> ^%buffer) { // Reserve enough space for the buffer short nBuffer[16000]; int buffLength = 0; // Call native function to fill buffer with data native_function(nBuffer, buffLength); // Convert returned value ...Show All

  • Visual Studio 2008 (Pre-release) Receive timeout

    Hi! I can create a simple WCF application. In service I write: [ ServiceContract ] public interface IPhotoGet { [ OperationContract ] Image GetPhoto( string name); } ServiceHost svcHost = new ServiceHost ( typeof ( PhotoImplement )); svcHost.AddServiceEndpoint( typeof ( IPhotoGet ), tcpBinding, @"net.tcp://localhost/photo" ); svcHost.Open(); And in client I write: IPhotoGet photoGet = ChannelFactory < IPhotoGet >.CreateChannel(tcpBinding, new EndpointAddress ( String .Format( @"net.tcp://{0}/photo" , tbAddress.Text))); Image result = photoGet.GetPhoto(tbPhotoName.Text); pbResult.Image = result; When I try to execute method GetPhoto, which m ...Show All

  • Windows Forms Suggested Additions to Modifiers

    The problem with Visual Inheritence right now is that you can have collections modified in other forms. You can also have properties set twice in the IntializeComponents of each form and they both start and stop configuration multiple times. The last part about starting and stopping intialization of the objects can be solved by making InitializeComponents virtual and having it call the base first and having it know that the function has been overriden and being able to skip the endInitialize code for each object if there is an overriden caller. This would be tricky but I don't think it would be much to add so that you could tell in every function if it was overriden and being called by the overriden function with base.IntializeComponent ...Show All

  • Windows Live Developer Forums custom icon gets cropped in 3d view?

    hi, i am just starting out with VE and am loving it (am a convert from Google Maps, a born again VE-er). anyways, i have a nice little app going with my own custom icons, and was thrilled to see the icons in appear in both the 2D and 3D maps, but noticed that in the 3D maps, the icons get cropped in the left and bottom. i tried different sized icons with the same results. anybody have the same problem many thanks in advance, i'm sure i'll be asking more questions. There was an issue reported previously where a .PNG file was saved with non-default DPI settings in the Metadata and was being scaled and clipped. If you used Photoshop to create the .PNG, it tends to default to 72 DPI (Apple history) a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA tutorial!!! PLEASE!

    Hi. Can someone write me a little tutorial that teach me how use XNA Game Studio Express (beta1) I've downloaded it but I don't know how use it. I'm good in C# programming but i've never used Visual C# 2005 Express. How can I use the Spacewar Example with Visual C# Please Help Me!!! Hello Megdi. There are some great documentaion that comes with XNA, including some simple tutorials. If you click on help in VC# Express and hit Index , then search for Getting Started with XNA it has a few tutorials that should get you started. ...Show All

  • SQL Server Would like to rename a Table name from Transcation to something else...

    Hi All, First of all, let me admit that this is a mistake which should not have happened. It just came to my notice that we have a table named TRANSACTION in our database. I would like to rename this to TransactionDetails or something else. But then we have some SP's and Trigerrs which refer this table, so I would like to reflect the change in the table name in all these objects whcih refer this table. Please help me in writing the query to find all the objects that refer my table. FYI : The application is working fine with this table name, but we would like to get rid of it since TRANSACTION is a reserved name SQL Server. Thanks In Advance, Joe. here you go... select distinct Object_name([Obj ...Show All

  • SQL Server ADOMD.net 9.0 (client) and CubeDef.LastProcessed

    What is this property (CubeDef.LastProcessed) supposed to return as it does not return the date the cube was last processed Does AMO provide this info more reliably TIA Dave Hi Dave, It's a bug - CubeDef.LastProcessed returns the last time the server was restarted as far as I know. See http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=124606 ...for more details. Take a look at the comment posted by furmangg on April 28th on this entry on my blog for some code which does what you want: http://cwebbbi.spaces.live.com/Blog/cns!7B84B0F2C239489A!675.entry It's also available in the Analysis Services Stored Procedure Project here: http://www.codeplex.com/Wiki/View.asp ...Show All

  • Visual C++ msvcirtd.lib

    Hi all, My project is compiled using VS 2005 and was working fine. I don't know what I did :-(, but now it requires msvcirtd.lib. I searched the web and it looks like the lib is needed in VS2003. In fact, I couldn't find the lib in Program Files\Microsoft Visual Studio 8\VC\lib. So, can anyone tell me what I did that make the project needs the lib and how to undo the unknown change(s) I made Thanks Thanks for the help. With Verbose, I was able to identify the older lib. BTW, I added /verbose option in the linker->Command Line. Is there another way to set this option ...Show All

  • SQL Server "context connection" and MultipleActiveResultSets ...Can have both at the same time?

    Hi, When I enable MultipleActiveResultSets in the "context connection" (SqlConnection), I get an error: System.InvalidOperationException: The only additional connection string keyword that may be used when requesting the context connection is the Type System Version keyword. Can we have MARS in the "context connection" note: I'm doing this to support multiple open datareaders in a CLR stored procedure. Thanks! Andy MARS is not supported for server-side CLR code. However, you can use cursors to simulate similar kinds of behavior in some circumstances. See the ResultSet sample for a fairly painless way to do that. The latest samples MSI is located at http://msdn ...Show All

  • SQL Server How to dynamically create Tables

    I'm currently developing an RDF application which need to handle lots of datatypes. But I want to use SQL-Servers capabilities for efficient querying and sorting. Therefore, I've wanted to create a Main Table which stores a Reference to the Table where the Data is stored. The Data itself should get stored in a Datatype-specific Table. The Typed Table might get created by something like: public void CreateTypedLiterals(Type type) { String sql = String.Format( "CREATE TABLE [Literals_{1}] (" + "ID int DISTINCT NOT NULL, Value {1})", // BUG: does not work // WARNING: introduces a potential sql-injection problem type.ToString() ); ... As you can see on the statements this solution makes many troubles. So I've wanted ...Show All

  • Windows Forms Hide image margin on menu

    I cannot see how to hide the image strip on the menus. If I wanted to go to the effort of creating an image for each menu item, it would be just awesome, but otherwise it just makes the menu look incomplete. The only reference I found to disabling it relates to the ToolStripDropDownMenu, but it appears that this class is not used by the VS designer. I find it hard to believe it can't be disabled via the designer, but I just can't find it. Perhaps there is a simple way to do it that has escaped by notice (and help/internet searches) Matt Andrew, thanks for the response, but I believe that is only valid for a context (pop-up) menu. I am creating a main menu. The designer creates a MenuStrip which i ...Show All

  • Windows Forms ListView hosted in a DataGridView cell (VB 2005)

    I'm trying to emulate a multi column combo box by hosting a ListView within a DataGridViewComboBoxCell (Visual Basic 2005). I'm modelling most of my code on the calendar example provided at http://msdn2.microsoft.com/en-us/library/7tas5c80.aspx , I seem to be making progress, the populated ListView is generated, but it is "trapped" within the boundaries of the DataGridView cell. That is, I can't get it to "drop down". I'm also pretty sure that for this to work at all, the ListView needs to implement the IDataGridViewEditingControl, but I don't know how to find this out. Does the ListView implement the IDataGridViewEditingControl Has anyone tried this before Regards, Carl ...Show All

©2008 Software Development Network