woodland30033's Q&A profile
Visual Studio Reacting to Tools->Options changes in custom project
Here is my scenario, I have a custom project and have also implemented some custom Tools->Options pages. Some of those options in the pages I created can deal with how the project is to be displayed. What I am having a hard time finding a way to do, is react when the Tools->Options page is closed. I've tried looking for a command that may come into the projectNode from one of the Exec() statements with no avail. I also tried going through the DTE.Solution.Projects list on save of my options to see if any of my projects are in the solution. The issue here is that all of my projects come back as ComObjects that I can't cast into my project type to call a method on my project to refresh its view. I'm assuming there is a way ...Show All
Windows Forms Problems deploying .NET WinApp including COM Components and those localized ressources
Hi, I'm in the middle of a huge project which includes converted vb6 projects (are vb.net by now) and newly developed container applications which includes these converted projects. In fact: i got a vb.net solution by now but some of the projects in this solution are converted from vb6. I'm using .Net 2.0 and Visual Studio 2005. Now, some of these converted projects still use "old" COM WinForm components, namely the DataGrid Control, DataCombo Control and 2 other 3rd party controls which depend only on mfc41.dll and mfc41ud.dll. They all use ado instead of ado.net, so they depend on the adodb PIA. Now, the problem is that some of these dependecies of the com components seem to be kind of localized resources. I've to s ...Show All
Visual C# Is it safe to remove a delegate inside its delegated method?
This sounds a bit strange but it's a real world problem. Say I have an event Disposing and a method F() handles that event. obj.Disposing += new EventHandler(F); ... void F() { ... obj.Disposing -= new EventHandler(F); } Here's the problem, F() is going to remove itself from the invocation list of the Disposing event right at the time it's invoked. I don't find a statement for this in the spec. So could anybody tell whether this is designed to be safe or not guaranteed Thanks in advance. Emrah Yi it wrote: But I didn't know that user uses Managed Directx, so first post should be more explanatory... I talked in general and in general there is an event which is Component.Disposed and a p ...Show All
Visual Studio Express Editions Random Number Generation
Hi, Apologies for the simplicity of this question, but I am very new to VB. I am using it to program Psychology experiments, but am having difficulty. I want to be able to randomise the time between 2 trials, to either 100ms or 1000ms. I only know how to randomise between a set of numbers, not specific numbers that are not concurrent. For example, for multiples of 500ms I used to use the code: c.setattrib "Durat", Random(1,4)*500 But how do I just randomise between 100 & 1000ms ONLY. THANKS! I am using the code in conjunction with E-Prime, an experiment programming software. The number cant be an arbitary one as it needs to be generated during the experiment itself (ie whilst ...Show All
Visual Studio Changing the visual style (gradient)
Is it possible to remove the gradient from the class boxes Thanks Hello, Visual Studio Class Designer does not provide this option. However, I am told that the CD Power Toys Add-in can add this functionality to the tool. This is useful when printing diagrams, for example. You can download the CD Power Toys Add-in here: http://www.gotdotnet.com/workspaces/workspace.aspx id=fe72608b-2b28-4cc1-9866-ea6f805f45f3 Let me know if you need any further assistance. Regards, John Stallo ...Show All
Visual Studio Express Editions How can a class run a function within the class it was initiated from?
I am reasonably new to C#, but have a reasonable understanding of programming in general though I only began to understand the use of OOP a few months back. Basically I have two classed, Schedule and TrayIcon; the TrayIcon class is initiated from within the Schedule class. Obviously it is easy to set the properties and run the methods of TrayIcon from within Schedule. However I need to run a method defined in Schedule from within Tray Icon. At the moment, when I initialize TrayIcon I write "trayIcon TrayIcon = new TrayIcon(this);" and in the TrayIcon constructor I grab the Schedule object. This allows me to run all public methods of Schedule. Although this method works, I feel there must be a better way of doing it; is there ...Show All
Visual Basic msgbox, multiple answers
I have a quick question I use Msgboxes for simple yes no aswers is there a way to offer more than two options Like 4 Here is what I do now. I would like yes, no, help, add to temp file...... answer = MessageBox.Show( "DO YOU WANT TO SAVE The Data To The DATABASE " , "ADD CALL DATA" , _ MessageBoxButtons.YesNo, MessageBoxIcon.Question) If answer = Windows.Forms.DialogResult.No Then Me .listTowns.Hide() Exit Sub Else ADDTODATABASE() End If thank you Hi, You could use radiobuttons and for YES or NO put two radiobuttons in a groupbox so that only one can be selected at a time. Regards, S_DS ...Show All
Windows Forms Control values do not refresh
I have 2 projects: Project 1: A strongly typed dataset with a table etc. I have some code in the ColumnChanged event that looks like this: Select Case e.Column.ColumnName Case Me.columnDISCOUNT.ColumnName Dim r As REQUEST_LINERow = CType(e.Row, REQUEST_LINERow) r.UNIT_COST = r.LINE_PRICE * r.DISCOUNT End Select Project 2: A windows form that has the above dataset placed on it, a BindingSource (bound to the dataset) and several textboxes (bound to the BindingSource). When the user changes the discount text box (by tying a new value). I would expect the Unit Cost text box to update with the newly calculated value as a result of the ColumnChanged event. However the new value does not appear. The new value howev ...Show All
SQL Server Client Requirements if ReportViewer is used for Web Forms
Dear Anyone. Does the client machine require any additional software updates if it tries to access a page that contains a reportviewer control Aside from .Net 2.0 Thanks, Joseph Is there an msi package available with the print control - our users are not allowed to download activex controls via the browser ...Show All
Visual C# C#, VB6 or Borland C++
Hello all, I am part of a team of a new company, and we are fighting on what language to use. What are the advantages of C# over all the others. I need hard arguments to make them use C#. Thanks If you're having to fight to use C# over VB6 or Borland C++ then I'd recommend leaving the company and working for a company where you don't have to waste so much time. You can say that one of the big advantages of C# and .NET is that it's very easy to accommodate modern versions of the other two languages you mentioned (VB.NET and C++/CLI) once you're working in the .NET framework. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C+ ...Show All
SQL Server red asterisk for prompts
hello, In sql reporting 2005, how do I put a "red" coloured asterisk for a prompt to show it is a required field Thanks.... The simple answer is that you can't. If you report-enable a custom application and use the Report Viewer controls, you can hide the standard parameter prompts and replace them with your own. ...Show All
Visual Studio crystal report startup idea
Hello, i would like to know where to start. I have never used the crystal report. Im using the visual studio 2005 that comes with the crystal report. I see the walkthrough documentation of crystal reports (approx. 450 pages) and cannot find a solution that is appropriate for me. I would like to know where to search and where to start in this documentation that solves my problem. Here is my initial situation: I have dataSources in my Visual Studio with dataSets (generated with the Designer) I will perform a operation that update the dataSet and write on the database. how could get the special unique ID from the dataSet that is filled with (e.g. customers) or get the id from a text-attribute of the list-view-item. dataSet option is better ...Show All
Visual Studio Remote Debug VS2005 Debug Symbols Not loaded
I am receiving the following message while attempting to remote debug an application: "The breakpoint will not currently be hit. No symbols have been loaded for this document." I have successfully installed the remote debugging components on the server. I am able to attach to the remote process fine. My program is just waiting for a request in order to start executing, but it will not be able to do such since the debug symbols are not loaded on the remote server. On my dev machine, I've located the debug symbols for my application in the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\.... folder, but this still does not fix the problem. Suggestions, please. Am I pulling the right debug symbol ...Show All
SQL Server What does for xml path depend on?
Hi. I asked the question before if For xml path was available in express editions of SQL Server, and I got the answer that it was. So i queried my database on that and it worked. But now that I query another database still using the SQL Server, it doesn't work anymore. I'm sure my syntax isnt wrong. So what other things does for xml path depend on to work Here's the result: Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 1) Does that mean it cant accomodate path If it can't, what can I do to make it accomodate path Is there an install for that ...Show All
Visual Studio I Install problem SP1
After accepting the licensdialog the installation is stuck during "Please wait while Window configures Microsoft Visual Studio 2005 Professional Edition - ENU" It doesn't matter how long I wait. The installation does not pass this dialog. What happens during this phase and what can I do to be able t install sp1 I would appreciate to hear from Microsoft about this. I have W2000. /Peter ...Show All
