Polly K's Q&A profile
.NET Development Initialising a .NET COM dll
Hi, I am writing a .NET assembly that will be used by some VB6 app, using COM. I need to perform one time initialisation of the .NET assembly and I cannot reply on the user to call an Init method or similar. Ideally I want to respond to the AssemblyLoad event but I'm not sure if this is possible as the runtime actually loads this assembly. Is there an assembly level attribute I could use perhaps Failing this I'm going to be forced to check ...Show All
Visual Studio 2008 (Pre-release) LINQ and Workflow
is it possible to utilize LINQ from Windows Workflow Foundation Using LINQ with workflow is not the same as using DLINQ with workflow. While LINQ may work directly on WWF objects, DLINQ would be more complimentary. ...Show All
Windows Forms A Form owned only by MDI child
Hi, I would like to know how can i display a new form (NOT one of the MDI Childs) above only a specific child, i mean when i will select a different MDI Child form i will not see the new form and when i will switch to t ...Show All
Visual C++ STDMETHODIMP
I am trying to compile some VC++ 6.0 code on VC++2005, and I get the following error: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int The line of code is simple: STDMETHODIMP Func(WORD Index); Knowing that STDMETHODIMP boils down to " LONG __stdcall ", what's the problem here The same compiler error is generated for STDMETHOD. Any clue Thanks, Mo ...Show All
Visual Studio Error:Load Report Failed
Hello ! i just finished .msi setup package for my project and installed in to client machine. every thing is working fine except crystal reports. im getting the Error: "Load Report Failed". i already added prerequisites of crystal reports for .Net frame work 2.0,frame work 2.0,MDAC 2.8. there is no prblem when installing but im getting this error. do i have to add visual C++ runtime libraries(x86) . is this something to do with registry k ...Show All
SQL Server Unable to delete a user from sys.sysusers
Hi, I have a user in my SQL server 2005 database sys.sysusers table with following values. I am unable to delete this user and unable to create a user with this same user name. Please tell some one what is status=16 and issqluser=0 status 16 ame \CMSXXCMSTESTER roles NULL altuid 5 hasdbaccess 0 ...Show All
Windows Forms Change the checked and unchecked value of a DataGridViewCheckBoxColumn
Hi, What I'm trying to do is quite simple..... 1. I've created a empty DataGridView 2. I add a DataGridViewCheckBoxColumn using the following code- colToBeAdded = New DataGridViewCheckBoxColumn colToBeAdded.FalseValue = 2 colToBeAdded.TrueValue = 1 colToBeAdded.ThreeState = False colToBeAdded.valuetype = GetType ( Integer ) colToBeAdded.HeaderText = headerText colToBeAdded.Name = colName colToBeAdded.DataPrope ...Show All
Windows Forms non-topmost form textbox behavior
I have an old form that I would like to re-use, but to do this in my application I must host the form in another form. The problem is that I need it to look like the topmost form and to behave like it too. On other forums I've found a way to make the form look like the topmost form by executing the following code: this.form2 = new Form2(); this.form2.Location = new System.Drawing.Point(-6, -24); this.form2.Size = new System.Drawing.Size(t ...Show All
Windows Forms ClickOnce Deployment Error
Can anyone help with the following error It's happening when a user launches the application from IE. "Unable to install or run the application. The application requires that assembly stdole Version 7.0.3300.0 be installed in the Global Assembly Cache (GAC) first." I am getting a similar error: "The application requires that assembly Micrsoft.mshtml Version 7.0.3300.0 be installed in the Global ...Show All
System Center Multi-tiered enviroments planning for MOM 2005
Will you be adding support for modeling multi-tiered environments thanks andy Jonathan, Jonathan Hardwick - MSFT wrote: How important is it to you for future versions to model multi-tiered environments (And if you say "very", could we contact you offline to get some more information ) I think it's important since MOM is getting increased acceptance in larger environments. However, I would not consider ...Show All
Visual Studio Team System Roles and Users
Hi, How can I define roles How can I assign different roles to a same user Is Project the way Thanks Leticia Thanks, Eric. Now, I'm in other step : 1) I have two new users created by Active Directory, which were added as members to the Team Foundation Administrators group. 2) The same two users appears as new integrants inside Project Manager-Development Project Plan. The problem : In Vs,Team explorer, w ...Show All
Visual Studio Team System Using stored procedures in web tests.
I know I can use sprocs in unit tests, but is there a way to use stored procedures in web tests Thanks, Tom If you mean as a datasource, then the answer is yes with a little work. We do not have out of the box support for databinding to sprocs. But I wrote a blog post that shows you how to so this. Check out the post and let me know if you have any questions: http://blogs.msdn.com/slumley/archi ...Show All
Visual Basic using a timeout for file.exists
When I use the file.exists in visual basic, if the file in fact does not exist or there is a firewall involved, etc.... the time to return a value is longer than acceptable for my program. Is there a way I can use a timeout I would like to check to see if the file exists but only if it can give me a return within 2 seconds, for example. Thanks, Arkman5 Hi Arkman5, I haven't experienced a long return time with File.Exists. Are you ...Show All
Visual Basic dynamic contextmenu help
In the following code I cannot seem to find which control was clicked when one of the menu items is selected. ie If I click on Edit Font I would like to know which of the dynamically created labels I clicked on. Public Class Form1 Private WithEvents lblMenu As New ContextMenu Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load   ...Show All
Windows Forms TextBox typing vs. programatic change
I have one TextBox that gets filled programatically based on 3 other TextBoxes. If I make a change to any one of the 3 the main TextBox.Text gets re-filled based on the changes. Now, if I don't tab through the main TextBox before I click S ...Show All
