Chris Forrester's Q&A profile
Visual C# How can I create a machine account ?
I wanted to create a machine account and should be able to all the modification and play with it...i am using C#. If anyone can give me some clue....it would be really nice...thanks. thaya. Using the Windows net command, it’s easy to create local Windows User Accounts. The syntax for the net command is: net user [username] [password] /ADD The following C# function takes in three parameters -- username, password and h ...Show All
Visual Basic Creating an image with multiple layers
(please excuse any ignorance to correct terminology - i'm a VB newbie!) I have a number of bitmaps in VB, which I currently write to image files with something like Image.Save(String, ImageFormat) giving the filename to save the image to What I would like to do is save these multiple images to a single file - with each image as a separate layer. Any image format which supports layers would be fine - but I've not had any lu ...Show All
Windows Forms Is it possible to create a dynamic userControl?
Can I create a user control that contains dynamic controls What I meanis that at design time there is no static controls created except place holders for text boxes and labels. When the user control is added to a form, the form will tell the&n ...Show All
Visual Studio Team System Adapting source control to non-conformant directory hierarchy
Hello, I am investigating using Team Foundation in our organization and am looking at the source control portion of it. We have a directory structure that looks like this: c:\root\Solutions\ solution_1.sln solution_2.sln solution_n.sln c:\root\UI\ project1.csproj file_1.cs file_2.cs file_n.cs c:\root\Logic\ project2.csproj file_3.cs file_4.cs ...Show All
Windows Forms Icon of shortcut is disappear?
Hi, I have created setup with installing application shortcut in start/programs. After installing application I have the Icon in start/programs. When I send this shortcut to desktop the Icon on the desktop are disappear. How can I solve it Thank's Alexei Hi, This is link for my application installed by setup created in VS2003. In shortcut the Change Icon button is disabled. Thank's Alexei ...Show All
Visual Studio Setup & life cycle
This is going to be a bit longer ;) I see two kinds of DSLs at this point (and all kinds of shades inbetween): 1) A company builds a DSL and sells it. They come up with a new version every two years. Having the new setup project type is great for that scenario 2) DSLs that evolve rapidly with a project (or many projects). I am going to focus on 2. I see this as follows: Someone builds an app. Sees code patterns that could easily be automated wit ...Show All
Visual Studio Team System Unable to connect to BIS service
Hi When I try to connect to Team Foundation Server I receive an error message: Unable to connect to BIS service Cannot connect to domain <domain name>. Projects for <domain name> not retrieved. Can You help me Thanks Arthooix Thank you Buck for your answer. yes I am running as TFSSETUP account and i still cant find a solution to this problem. I was able to connect to the server before but not to ...Show All
Visual Studio Express Editions Mobile Device Application template
Where can I find and download the Mobile Device Application template as one of the project templates for MS Visual C# 2005 Express Edition Thanks, Kevin Doesn't seem to available. If you have access to the professional edition, you might be able to zip up the templates from there and copy it to your express edition computer, but Microsoft don't support this scenario. ...Show All
Visual C# How can overloaded operator access private fields of another class
I have the following program in C#: class My1 { private int x; } class My2 { private int y; public static int operator +( My1 a, My2 b) { return a.x + b.y; } } I want my operator to access private fields of two different classes. How can I do that In C++ there was friend operator. In C# it isn't. if u want to acess the private field from another class .. set its propre ...Show All
SQL Server sql statement: listing all values
Hi, i have two tables. Users: - userid, username Location: - userid, postalAddress, timestamp i want to create a view that lists all users (id and name) along with their latest Location address. i use the following sql statement which: select Users . name , Users .userid, Location.postalAddress from Users inner join Location on Location . userid = Users . userid where Location . timestamp IN ( S ...Show All
Windows Forms How do I use remoting effectively over an intranet?
I'm a veteran C++/COM switching to C#/.Net. I've written a WinForms application. I'd like to be able to "remotely watch" what the user is doing on their machine, to aid in debugging, etc. Ideally, I'd like to start an instance  ...Show All
Visual Studio 2008 (Pre-release) databinding bug, or am i just expecting too much? - master/detail with a combobox in the detail
Hi, I think i may have run into a bug, maybe you'll say it's not a bug but it's not how i would have expected the framework to handle this particular case anyway... ....I'm running Vista with the feb CTP I'm setting the windows datacontext equal to an instance of a class that inherits from DependencyObject (trying to embrace the new way of handling changes in the UI / class). Then i have a listbox with it's itemssource property bound to ...Show All
Visual Basic com and hidden installation
I developed an exe with a com class. As expected, before regasm the other program did not recognize the class (invalid class string). I successfully ran regasm on it; that error went away. Instead, I received an error that the file could not be found. Could that be because VB Express hides the installation UPDATE: I ran sn.exe on the installed program's exe (that's one more reason why its good to know ...Show All
Visual Studio Tools for Office Make existing workbook into a vsto solution
Is it possible to make an existing excel workbook into a vsto solution by adding the 2 properties _assemblyname and _assemblylocation with appropriate values Do I need to do anything else Yes. Quite a bit of other stuff is going on here. A runtime storage control is added to the document and a manifest is embedded in it. More details on this can be found at: http://msdn2.microsoft.com/en-US/library/7ydweh ...Show All
SQL Server Analysis services freezes on Processing a Cube
I have not succeeded in processing my cubes because anaylsis services freezes when ever i run process cube. What could be the reason for this. Thanks in anticipation for your help Hi! You should check firstly which step of the processing work you are having problems. I suggest to trace the SQL sentence executed by SSAS against the source database to see if there exists problems in resolving the query. T ...Show All
