Stane Bozic's Q&A profile
Visual Studio How Can Create Intaller Project for C# EE 2005?
Hi! I've three projects in a solution, two of them are DLLs and one EXE. I want to be able to create a single installtion package for all these. Is it possible to do this with C# EE 2005 . If yes then please tell me the steps to follow or any related link. Thanks in advance. Sohail. Express versions of Visual Studio are not really intended for you to be building components to distribute, therefore it does not include tools such as creating setup projects. If you wish to create a setup project for your code, you will need to either purchase a full version of Visual Studio, use the MSI SDK to manually build a setup project, or u ...Show All
Windows Forms Dynamicly add controls to a form from a thread
I have a thread that runs in a loop and needs to cause some user controls to display in a winform periodically. The user controls are created inside the thread and passed to the winform to be added to the Controls collection and shown. Well that was the plan. Its not working at all and Im sure it has to do with the thread. I thought that setting Form. CheckForIllegalCrossThreadCalls = true would help, but it does not. I've tried checking for Me.InvokeNeeded (on the form) and that always returns false. I've tried using events to get it done also, and nothing has succeeded. It seems to only work when the instance of the user control is ...Show All
Visual Studio 2008 (Pre-release) extension properties
When the first Linq preview was released, there was talk of allowing extension properties along with extension methods. At the time, I couldnt see a good reason for having them, but having read "First-class relationships in an object-oriented language" I can now absolutely see a use for them. At least, a very nice syntactic sugar type of use. I know the details on the next Linq release have been short on the ground, but would some Linq team member be prepared to comment on possibility of extension properties. Is this something we might see in the next release Hi Damien, Do you have any particular property in mind I mean ...Show All
Visual Studio Express Editions Unable to register from website...
After launching Visual Basic 2005 Express Edition Beta 2, I get a warning that I have not yet registered which provides a link to do so. After clicking on the link, logging in and providing my information, I click the Continue button and get an error message that states: "We were unable to send your e-mail verification mail. An unknown error occurred while processing your request. This is most likely due to a connection failure. Please try again. " I have received this message on every attempt since last Friday (5/13/2005). Has anybody successfully registered Is anyone else experiencing this problem I.E. Version: 6.0.2900.21 ...Show All
Visual Studio Team System Custom Work Item Types and Sort Order
I would like to create a custom work item field that has its own sort order. This would be like an enumerated type, for example: Low Medium High Alphabetically, these show up sorted as Low, High, Medium. That's not really desirable. If the user sorts in ascending order you'd like it to retain Low, Medium, High sequence. In addition, in descending order you'd like it to sort as follows: High, Medium, Low. Aside from preceding these with "1 - ", "2 - ", "3 -" is there any other way to get these custom fields to sort correctly Thanks, Kevin. I guess I should add that the sort orde ...Show All
Visual J# opening a Form in a form
hi...im trying to make a program through visual j# that is going to need more then one window to operate.....for example if you were to click a button labelled "Create"...a new window would open up asking you for information......im not sure how i would do this....im guessing opening a form in the form would be the way but i dont know how to do that......if anybody knows any other ways or can help me out with this it would be greatly appreciated are there any other ways of me opening another window in my program....or do i have to use mdi ...Show All
.NET Development get file creator in .NET
How can you tell how created a file or who the file owner is. If I am running something on a server that check files other users put there, how can I tell how put each file Hi, It should be possible using System.Management. Here's some sample code: static string QueryFileSecurity( string fileName) { using ( ManagementObject o = new ManagementObject ( @"Win32_LogicalFileSecuritySetting.Path='" + fileName + "'" )) { string rval = "" ; ManagementBaseObject outP = o.InvokeMethod( "GetSecurityDescriptor" , null , null ); if ((( uint )(outP.Properties[ "ReturnValue" ].Value)) == 0) { Manageme ...Show All
Windows Forms Form Refresh
I have 2 forms A and B. Form A has some controls and a button (Add...) at the bottom that dynamically opens form B. Form B has some textboxes and a button (Add) that inserts some values into a database. OK...here is what I am trying to do. When the user clicks the Add button on form B. It will affect a datagrid on form&nbs ...Show All
Visual C# How to set a form run when project includes somes forms like Visual Basic ?
Please tell me how to set a form run when project includes somes forms like Visual Basic Thank you very much ! Hi, you can show a form with this code: Dim f As New Form2() f.ShowDialog() ...Show All
Visual Studio complib.hlp
Hello, I started on a project in my home desktop. I copied the project's folder to another computer. Now when I try to build the project on this computer I get the following error: Compiling... SqlManager.cpp .\SqlManager.cpp(1) : fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: The system cannot find the path specified. Description: The system cannot find the path specified. HelpFile: complib.hlp SqlUser.cpp .\SqlUser.cpp(1) : fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: The system cannot find the path specified. Description: The system cannot find the pa ...Show All
.NET Development Installation Rolled Back My PC
Hiya, This is probably in the wrong forum - apologies for that, but I've no idea where else to put it. Background; Installed Frameworks 1.1 a few days ago. The following morning I turned on my PC and was confused to discover a log on screen. (I only have one profile so it usually skips straight to the desktop.) Something that confused me even more was that the log on screen resembled more a pre-SP1/2 (or even Win98) style plain grey box as opposed to the jazzy one I've grown used to. When I got into my main profile, I noticed that the image next to the name in the startup menu had gone, as well as a new user - asp.net - created in the Use ...Show All
SQL Server Reading and writing same variable to a script
It looks like its not possible to both read and write the same variable from a script using the conventional Me.Variables.<variable> syntax. I can only assign a variable as Readonly or ReadWrite and not both. If I assign it ReadOnly I can only access it in the PreExecute subroutine. If I assign it ReadWrite I can only access it in the PostExecute subroutine (in fact doesn't this just make it WriteOnly in fact ). So I can only either read in or read out a variable using this syntax, noth both. Is this right So the read and write a variable to a script, the VariableDispenser approach is the only option to use. Is this right and is ...Show All
Visual C# 2005 .item() & .Select() replacements?
In 2003 I could set, for instance, the datagrid.item() and datagrid.select() to select a row after filtering the dataview results. These aren't available in 2005, how can this now be achieved The DataGrid.Item() method didn't exists in .NET Framework 1.1, that is a DataGrid.Item property as still can be found in the .NET Framework 2.0 as you can see on MSDN. The DataGrid.Select() does also still exists in .NET Framework 2.0. So they are unchanged! ...Show All
Visual Studio mshelp:link does not work
Hi, Recently I run XP Repair Pro 2006, the program that cleans up the registry. After that many features stopped working and MSDN is one of them. Now tags starting from <mshelp don’t work. For example all link that were created like <mshelp:link don’t work. They are displayed as links but when you click on them nothing happens. However there are no errors displayed. I looked for a solution on different forums, followed many suggestions but nothing helped. I tried to uninstall and install again MSDN and VS 2005, use IEFix, run ie.inf, install SP2 again (I have Windows XP SP2). I found similar descriptions concerning to VS ...Show All
Windows Forms ClickOnce initial download VERY slow
Greetings: I have a clickonce issue I'm wondering if others are seeing or know about. I published a multi-file (like 500 files) application that is about 10MB. When doing the initial install from a URL via IE, it takes 10 minutes or so to download the app. It will sit on like "319K of 10MB" for like 30 secs, then move to "345K of 10MB". You could download a 10MB file on a 28.8 modem faster than this. The kicker is that this is all on localhost! Sometimes (maybe most/always, I usually go away since it takes so long) when it gets about 1/2 to 3/4 way there it speeds up to normal. Is there something going ...Show All
