senordotnet's Q&A profile
Windows Forms Setup Project Dependencies
Hi, I was wondering if someone could confirm the following behaviour. To a VS 2005 setup project, you add the project output for 2 separate projects. Both of these projects has a dependency on the same assembly. So you exclude one of the dependencies that appears in the file system window. This all works well, but when you re open, the dependency you excluded, is no longer excluded. And if you close and reopen again, all your dependenc ...Show All
Visual Studio 2008 (Pre-release) visual layer programming
I found one thread, from last month, that talks about how to work with 'visuals'. At the end of the thread, somebody suggests subclassing UIElement and then, inside this class,using VisualOperations.GetChildren(this) to access the 'children' visuals of the UIElement. It looks like VisualOperations has since joined the choir invisible* (VisualOperations replaced by VisualTreeHelper) , so does anyone know how to access the 'visuals' of a UIEleme ...Show All
Visual Basic [OTP] VBA transfering VB ActiveX control data to another file
Howdy folks, I need to be able to transfer text data from an ActiveX control (a textbox) in one file to an ActiveX control in another file. Currently, I can move the textbox data to the spreadsheet in VB as follows: Range("k5").Value = TextBox1.Value and then I tie the TextBox LinkedCell property in the secondary file to the cell in the primary file: '[primaryfile.xls]'Worksheet1'!$K$5 I would like to be able to do this in one step in VB. ...Show All
Visual Studio Getting IDesignerHost for WebSite projects in 2005
I'm trying to get the IDesignerHost of a WebForm in VS 2005 using the VS SDK. There is a KB article at http://support.microsoft.com/default.aspx scid=kb;en-us;555327 that tells how for VS 2003, but unfortunately it doesnt work under 2005. It works until the final cast objIDesignerHost = DirectCast(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(objIntPtr), IDesignerHost) Has anyone figured out what needs to be changed to ...Show All
Windows Forms Move a picturebox around with the mouse
I want to move my picturebox around with the mouse. A bit like on Google Maps etc. I think I need to handle the mousedown event of my picturebox. (not sure though) Been trying to figure it out for ages. Can anyone help with the syntax. Thanks very much in advance ICW I got it working thanks I declared the two ints and ignore the boolean coz I didn't know what is was for. thanks ...Show All
Visual C++ Prevent linking MSVCR80.dll
I recently started developing a dll for the company I work for with VS2005 Beta 2. Unfortunately, upon building the dll we found that it doesn't run except on my machine because it depended on MSVCP80.dll. Googling for answers uncovered the suggestion of statically linking, which removed the dependency on MSVCP80.dll but retained dependency on MSVCR80.dll. So my question is: * How can I force the dll to statically link *all* i ...Show All
SQL Server Sendin Parameters from a 2005 Cube to Reporting services report
Hi everyone, I need your help .. Can you help me with an example of the currect way I should fill in the Report Action in the Form Editor. (The syntax.....) 1. The Report Server 2. The Server name 3. The Server path. Thanks. Inbal Hi Inbal, Take a look at the "Sales Reason Comparisons" Report Action in the Adventure Works cube - which has these values: 1. The ...Show All
SQL Server try to setup membership with ASP.NET configuration
When I whant the use the new ASP.NET configuration tool (2005) and I want to define a provider I get the following error. You should know that on installation of VS 2005 SQL-Server Express did not install and I installed SQL-Server 2005 (shiped with VS 2005). So now it seems that VS waits for the Express edition. I changed under Tools/Options/Database Tools/Data Connections the SQL Server Instance Name to "MSSQLSERVER" but this does ...Show All
Visual Studio 2008 (Pre-release) GetStarted on 2 machines
Hi, all! Just tried GetStarted example ( IIS hosted ) on 2 machines . I changed only client.exe.config "localhost" to "computer.domain" in endpoint address, but seems that not enough because client fail with EndPointNotFoundException :" there was no endpoint listening..." . So what I need to change addditionally TIA Arkady When you go to IE and go to http://<mac ...Show All
Windows Forms DGV RowEnter event: How to determine if it's fired during initial load
As described in documentation, the "RowEnter event occurs when the DataGridView is initially loaded, as well as when the user selects a row other than the current row". Since I just want to react to user changes, I need to determine if the event was fired because of user interaction or initial loading. Does anybody know how to reach this Thanks a lot! Thanks a lot. This was the missing data t ...Show All
Visual Basic Searching via a textbox string
Hi... I'm just jumping in to VS2005, and have tried to create a simple database search that will return all the items that are similar (begins or like ) text in a 3 column database table. The form has an input textbox, and a datagrid, similar to the output of an ASPRUNNER-PRO page...only I don't want a web page, I want to do this on a form. Everything IO've seen and read pertains to bound data to text boxes, whic is the opposite of what I am try ...Show All
Visual Studio Express Editions VC++E Forms Designer Hell
Hello all, while working on a form in my project i got the following error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Either VCProject or VCCodeModel is not ready yet. Please close designer and try again. Hide at Microsoft.VisualC.CppCodeP ...Show All
Windows Forms Data binding to a listbox
Hello. I am a beginner. I am using Visual studio 2005 (B2) to create a user interface that contains a list box, data navigator and several text boxes that are bound to two relational tables (Investors and ContactDetail). Investor ID is the primary key in the Investors table and has a type of UniqueIdentifier. There is a forgiegnkey relationship between the tables on Investor Id. The list box is bound to the Inves ...Show All
SQL Server Error with for..next loop variable
I'm setting a variable called ConnectionString_vc in a for..next loop. The connectionstring property of one of my connections is then set to @[User::ConnectionString_vc] via an expression. When running the package in a SQL agent job I'm getting the following error in my logs. I've received this sporadically when running it in debug mode in BIS, but it happens consistently in Agent. The variable "User::ConnectionString_vc ...Show All
SQL Server What is the difference between Crystal report and SQL 2005 Report?
hi, As default, VS2005 is able to create crystal report project, what is the difference between crystal report and SQL Server report These are two totally different products with nothing in common other than that they both integrate into the VS shell. ...Show All
