Peter Holmdahl's Q&A profile
Visual C# classes best practices
Hey guys, I am still new at this and was wondering what the best practices for creating and handling classes were. Is it better to build my classes inside one major C# file or do I need to create an individual file for each individual class or is it just better to have my classes embedded in the particular form I am working on Which is the best approach and best practice for classes Thanks, ~zero In my opinion it does not really m ...Show All
Visual Studio Team System Error loading Event Web Services
We are getting this at the very end of the TF Server Beta 3 install. From reading various posts, it seems that you have to name the special account TFSSETUP exactly that "TFSSETUP" even though the docs indicate that you can pick an arbitrary name. Can someone from the TF team confirm that this is indeed a bug We will most likely have different TF servers running in different divisions and I can see problems if everyone ha ...Show All
Visual Studio Team System FxCop 1.35 and VS 2005
Hi all, I've got a couple of custom rule libraries here that I need support usage with both FxCop and VS 2005. I understand that I need to compile my rules against the specific FxCop assemblies for each of the two (FxCop assemblies for FxCop GUI, and VS\FxCop to VS 2005 IDE). What's the best way to do that Having to remove and add references so to compile my libraries seems like a big hassle to me (along with having to maintain separate ve ...Show All
Visual Studio Express Editions Inputbox
I've seen this tool in Visual Basic and Visual For Pro. But is there an equavilancy of this function is C# .NET Express Straight forward question =] Thanks in advance hi, its very simple creat a form call it inputbox add a textbox and a button to it, select the button and go to properties set "dialogResult" = ok double click the button add to the event handler this.Close(), also add this line to the form code public ...Show All
Visual Studio How to use Refactor.Rename in an Addin?
Is there any way to use the Refactor.Rename functionality in an Addin or Macro I can't find anything in the DTE model, and I can't seem to find any parameters documented to use it in an DTE.ExecuteCommand("Refactor.Rename"). The command IS in Tools/Options/Environment/Keyboard commands. Using the global Find/Replace or the TextSelection find and replace just won't cut it. I'm using VS 2005. Sean ...Show All
Smart Device Development .net CF v1.0 Development in VS2005
Reading the required SDKS for developing in certain platforms, this page ( http://msdn2.microsoft.com/en-us/library/ms135100 ) states that VS2005 can compile for the compact framework 1.0 and 2.0. I know Smartphone 2003 has v1.0, I know vs2005 can develope for that, and that that application (written for the smartphone 2003) can likewise be executed on my Pocket PC 2002 device (with the CF 1.0 sp3 installed), but is there a way to ...Show All
Visual Studio Replacing a Target conditionally?
How can I replace a target conditionally If i have <Target Name="MyTarget" ....> ...some stuff... </Target> and then <Target Name="MyTarget" Condition="MyCondition"> ...different stuff... </Target> What happens is that when MyCondition is true, "different stuff" is executed, but if MyCondition is false, nothing is executed, when I expected that "some stuff" was executed. Is there any way to call the old target, like if h ...Show All
Windows Forms WinForms Application that disappears
Hi, I'm developping a MDI application, after few hours of running it disappears with no exception thrown nor any kind of message. Any idea No, it cannot be an Application.Exit() call each MDIChild form in application consumes an activeX control. This control can fire several events per second (about 200), at the event handler method of these a Form.BeginInvoke call is needed (InvokeRequired is true). I don't know what happens when th ...Show All
Visual Studio 2008 (Pre-release) WinFX Beta 2 - ScreenSpaceLines3D: where did they go?
As the subject states: WinFX Beta 2 - ScreenSpaceLines3D: where did they go I really like the speed of beta 2 but this is holding me back now... Thanks Hi, I am facing the same problem usin SSL3D. I am working on Fluid Dynamics using WPF. I have used SSL3D but now as it is not supported in Framework I m using 3D tools for WPF (3dtools.dll). But as the new SSL3D inherits ModelVisual3D instead of ...Show All
Game Technologies: DirectX, XNA, XACT, etc. blender and .X
I have created some models in Blender and was wondering how to set the coords and render them in DX. I am using C#. I am also using C# and Blender for mesh development. There is a new script out there for Blender that is suppose to fix DX export issues here: http://xoomer.virgilio.it/glabro1/python236.html . Now when you use the export to DX8 it will be formatted correctly. Another issue I ...Show All
Visual C++ Using resources in a static library
Is it OK to use a dialog resource in a static library I've never had the need to do this and now when I try to add a CDialog class from the dialog context menu (Add Class...) I get the following error. Failed to return new Code Element. Possibly syntax error. New Element Name: <afxwin.h> I figured this might have something to do with the fact that my project is a static library. I'm using VS 2005. No res ...Show All
Visual Studio ReportViewer Drillthrough Problems
Using VS 2005 B2 and C#. I'm attempting to create a UserControl that includes the ReportViewer. The UserControl is in a dll. From what I can tell, if you use a dll, the viewer can't find the embedded report resource. I've overcome this by loading the report resource manually. My problem is that I can't seem to configure a drillthrough to another report embedded in the same dll project. (I've tried the report name ("Report. ...Show All
Windows Forms Multiextended Listbox
Hi, Happy New Year. I want to choose several items of a Listbox in way multiselected or multiextended with the purpose of showing the results in a datagrid of Visual Studio, leaving of a procedure stored. 1) The&nbs ...Show All
SQL Server Need help splitting out columns for each row into new table
Let's say I do a select statement and the results are Acct # Zip Phone Addr 11223 23232 333-444-5555 6556 Duns Rd. 12345 34343 222-444-3333 1000 Aspire Blvd. I need to create a record using the Acct # and column for each column as well a ...Show All
Visual Studio Express Editions Implements Different to VB
When I create a call such as... Implements Class.Events ...in VB 2005 Express Edition VB displays all the methods and procedures (etc) on the same page it is called. This doesn't seem to happen in VC# 2005 Express Edition (well not that I can see anyway). My question then is how can I have the same methods and procedures appear in VC# Thanks, Ryan Have you tried to write it like th ...Show All
