Hedgie's Q&A profile
SQL Server how to correctly work with two (or more) databases?
Does anybody know how to work with two (or more) databases in SQL Server 2005; or where that information can be obtained I searched online, in BOL and asked in this forum but with no success. information in this posting does not work; results in invalid object name (source database) and/or database does not exist (destination database) errors: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=292125&SiteID=1 this post about the database does not exist has received no replies: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=295742&SiteID=1 Of course, both databases exist and their names are valid. Both can be ...Show All
Visual C# Capturing Mouse Movement
Many of you have probably seen "mouse meters" that track how many pixels the mouse has moved. I'm trying to do that but I can't figure out how to execute code every time there's a mousemove (on any control, let alone the entire screen). This is what I've gotten so far but it doesn't work. Any ideas namespace mmove { public partial class Form1 : Form { int pxls = 0; public Form1() { InitializeComponent(); ...Show All
Visual Studio Express Editions multiline textbox
Hi everyone, Im quite new to visual basic and stuck on a part of a windows application. i have a multiline textbox where different numbers are to be entered on each line. I need to insert each of these numbers into a different formula. I have all the form, code and formulas done for everything else. i just have no idea of the code to extract the information in each line to a integer or array, whatever the case may be, so i can use it in the formulas. would greatly appreciate if someone can help me. Cheers Probably the easiest way to do it would be to use the following Dim MyLines As String () = TextBox1.Lines Di ...Show All
Visual Studio WebService project for multiple solutions
hello, I've got 2 solutions which are referencing 1 common webservice project. this webservice project references project, which are part of one of the 2 solutions) If I want to build the solution 1, the webservice project can't find the references to the projects in solution 2 (because I can only add references which are part of the solution). I already created a postbuild step (referencing the .dll files), which copies the dll into the /bin dir of the webservice project, but the problem is, that this dir is "readonly" because it's checked in. So I can't proceed using this way. Does anybody have a possible solution, how t ...Show All
Visual C++ (/Za) Option
Hey, what can I do to have my code as much anci C(I have set an option to compile as C) as possible I think /Za turns of MS extensions. Where can I find document describing those extensions Do I have to set some more options I code C using Visual C++ 2003 Standard and testing C++ Express edition. And 1 more simple question. When I turn off /Za "getch();" returns me an error. I have to change it to "_getch();", why Will _getch compile with gcc on Linux (I need to compile library I'm developing both on VS and gcc). Thank you for your answer, I'm gonna use getchar. ...Show All
Visual Studio Team System TF30162: Task "WITs" from Group "WorkItemTracking" failed
This is with Beta3 on a real 2003 Standard Server SP1. Setup worked without a problem. I did change the name of the three accounts but they all work fine. I cannot create a project with a user account that's in the domain admin group. However I can create a project with the <setup> account logged on on the server directly. Thinking it's a SQL permission kinda thing, I gave the domain account all the same permissions as the <service> account, but that still did not work. I tried the deletion of the cache directory, but that did not make a difference. Can someone give me any hints how to go on with this. Peter ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
Visual Basic Having a newline in text box, but not newline in the text. How?
Ok, here's the deal. This is for VB6. I have a mutiline text box and just one string to paste in it, through code. This single string is logically in 4 parts, but for the purpose of the program, the string is a single, long string, with no CR or LF. However, for the sake of user visuals, I'd like the string to be split on 4 lines in the text box, along these 4 logical sections. But say the user goes and does a select-all, or ctrl-A or in other words selects all the text, I do NOT want newlines or carriage returns in the selection, it is meant to be juse one long string. If there is CR or LF, the use of the program will fail because these cha ...Show All
Visual C# How this code work(C# 2.0)? It shouldn't!
What makes you think that, there is no ambiguity possible, the compiler can directly deduce the best function member to call, 3 is an int parameter and there is a non-generic method F1 taking an int as argument, non-generics takes precedence over generic parameters, overload resolution solved, point. make your call g1a.F1(3L); and you will get a compiler error, as now there aint no method taking a long. change it to G1 g1a = new G1 (); g1a.F1(3L); And the first method will be called. Willy This works because the design has changed. According to a newsgroup post back in early april by Rick Byers (msft):, ...Show All
.NET Development Data Validation of new value in a column with a Unique Constraint
I am trying to perform data validation in either the DataGridView or the DataTable. I would prefer to do this in the datatable using ColumnChanged and RowChanged events. The problem is a ValueMember in a ComboBox Column in the DataGridView will determine the value of the of the column assigned to the DataMappingName. If the user selects an item that (god forbid) is already the selected value of another row, the DataGridView will handle the error by raising the DataError Event. Private Sub dgvWageRateData_DataError( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewDataErrorEventArgs) _ ...Show All
Windows Forms How to format DATE textboxes using CurrentCulture?
Hi All, I have a problem which I am sure is faced by you guys as well: Formatting date and numeric textboxes to show the format you want. Now what I do is format them manually by writing a code. The code should be placed in lots of places: in the load button, in the binding context changed event, in the update button and in the validated event. My current form has 5 date textboxes and the code for this is just taking up all the space. The same problem is there for formatting currency textboxes. My current form has 4 of those. So total 9 of textboxes to format. I also have altogether 15 forms for the project and placing these form ...Show All
Visual Studio Team System Is Active Directory required for Dual-Server installations?
...or can you use Workgroup-based installations in this configuration AD is required for a dual-server configuration. While it is possible to construct workgroup service accounts that would allow the AT to access the DT using matching names/passwords, we do not recommend or test that deployment option. I think it is probably also true that the TFS administrative utility (tfsadminutil) options to manage service accounts would be broken in that setting. That would leave management of the distributed accounts and permissions (app pool, NTFS, DB security roles, ...) as a manual exercise for the admin. ...Show All
Visual C++ why does modifying a dll requires to rebuild the client application
suppose anybody links a DLL to its client application, and then builds the client application. then he modifies the dll source code a little bit. Then if he tries to run the client exe again, he gets a linker error..why is it so the dll is explicitly linked. Vishal Srivastav, This is an excellent question. In fact, it's such a great question, that many programmers before you (and me too) have asked this question. From what I have read, this situation is one of the prime motivators behind the strict versioning policy that the .NET Framework requires of its Common Language Runtime and the assemblies produced by all .NET compilers. This ...Show All
SQL Server DISTINCT COUNT - unhelpful error message
Hi, I need to return a distinct count of customers who have ordered goods. To do this I created a measure of type DISTINCT COUNT, over the CustomerID field in the orders fact table. Being a foreign key for the customers dimension table, the customerID is integer, not-null, and therefore ideal for the purpose. The measue is created in a new measure group OK, and the cube processes through OK. However when I come to view the data by dragging the new measure onto the columns in the VS browser I get the wonderful message: " The query could not be processed: o Internal error: An unexpected e ...Show All
Visual Studio Showing Interface Implementation
Lets say that I have created an interface in my project and I have 2 classes that implement this interface. Is there a way to display this in the Class Diagram similar to the way it shows classes that inherit from an abstract class I couldn't find it. I found that if I changed my interface to an abstract class the diagram would automagically draw the nice little line to all the classes that inherit it, but if I change it back to an interface all those nice little relationship lines go away. In VS 2005 there won't be a line drawn from the class to the interfaces that it implements. However, you s ...Show All
