Kristian Vinther's Q&A profile
Windows Forms Exposing UserControl collections at design time
Does anyone have any samples of how I can expose a collection encapsulated by a custom User Control class as a public property in Design View and edit it using one of the built in editors I'm looking to be able to do something similar to what the ListView control does in allowing you to add column headers to the ColumnHeaderCollection at design&n ...Show All
Visual Basic Word Automation Error 462
I am having an interesting error. I am using VB to Automate a Word document, and having some trouble. If the user closes the Word Window opend by the program, on their own, then uses the process which opens it again, I get an error: ErrorNumber: 462 Error Message: The remote server machine does not exist or is unavailable Originally I got this error anytime I manipulated the word document object, so I reinitialized the Word Application Object and the Document Object. Now I can send text to the selection object, add images, etc, but if I try to access the PageSetup property (to set the margins, for example), I get the same error aga ...Show All
Windows Forms 2 groupboxes & radiobuttons
Hello :) In 1 form, I have 2 group boxes. In those groupboxes, there are 10 radiobuttons: 5 in one groupbox, 5 in another. By default, it means I can have 2 radiobuttons selected at once. Is there any way to make it only able to select 1 radiobutton in the form Thanks, Klaidas PS: I'm using J# Hello Yes, you can handle this in the CheckedChanged events of the Radio Buttions, suppose that if rb1 is clicked , then in the rb1_CheckedChanged , set the checked property of other radio buttons to false. Hope this might help ...Show All
Visual Studio Team System Error Installing TFS in a Single-Server Installation
I received an error: 32000 during the App-Data installation of TFS. The event log showed the following: Adapter Microsoft.VisualStudio.Currituck.DataWarehouse.Adapter runtime error: Microsoft.VisualStudio.Currituck.Server.Common.ValidationException: Invalid object name 'dbo.WorkItemsLatestUsed'. ---> System.Data.SqlClient.SqlException: Invalid object name 'dbo.WorkItemsLatestUsed'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) I checked the database and the closest table in the Currituck database that I found was dbo.WorkItemsLatest. Any help would be appreciated. Update: I ...Show All
Windows Forms ClickOnce app not recognized as one
I start a ClickOnce application by a registry entry. Doing so, it is not recognized as a network deployed application ( ApplicationDeployment .IsNetworkDeployed returns false). Starting the same application with the application reference works fine; A pplicationDeployment .IsNetworkDeployed returns true. Is there a way to start a ClickOnce application in another way then by the application reference (and still have the benefits of a ClickOnce application) -- Goos van Beek Thank you, Sameer. Now I understand that a clickonce application must have access to the deployment server to act like a clickonce application. The problem is that ...Show All
Smart Device Development Custom Build Rule "works" but makes project undeployable
I am trying to use a Custom Build Rule to build assembler files, much as described by Jeff Abraham and I am kind of running into the same problem. The rules files only differ on the extension used and some quoting practicalities. I don't agree with Jeff's analysis of what is going on however: An unfortunate side effect of this build rule is that you end up deploying the .obj produced, because it becomes a project output As far as I can see it's rather the case that a file called <projectname>.obj becomes a project output. I don't have any file by the same name as the project and so I will never have a .obj by that name, so d:\...\ ...Show All
Visual Studio Team System When to use which requirement type
Does anyone know of a good resource for defining the different types of requirements (scenario, functional, QOS, etc.) Yes, I will post a blog entry on this subject by the end of the week. Thanks for the great idea! I talk about this in my MSF presentations all the time. Randy MSF ...Show All
Visual C++ Invoke the MS C++ Compiler at the run time
Hello, I really don't know if this related to this forum, But I thought a lot and I found it suitable. All I just want is invoke the MS compiler at the run time and give it the suitable parameters for compilation. and get the errors of it. This is really a useful for our project. Will we invoke it using the shell api!! Thanks, Mustafa ELBanna The simple answer is to use a batch file by your own. Or you determine the needed environment variables by your won, and pass it as a separate data block to _spawnle instead of system. ...Show All
Visual Studio Tools for Office How to (programmatically )get rid from the actionpane reference ?
I have a vsto doc with an actionpane containing a button containing code to get rid of the actionpane before a user saves a document instance in a sharepoint library. The code basically is : Globals .ThisDocument.RemoveCustomization(); Globals .ThisDocument.ActionsPane.Clear(); When an instance is opened the content of the actionspane is indeed cleared, however I still get a message to choose an xml expansion pack (actionpane), cause the actionpane schema is still linked I think ( If a uncheck it and save the document the message no longer pops up) How can I programmatically remove the action pane schema link ...Show All
Windows Forms Strange font size behaviour in Windows Forms Designer
We have just upgraded from Beta 2 to the release edition of VS 2005. I am noticing that the text in some of our controls no longer quite fits in the control, as if it has increased marginally in size. This may have something to do with a behaviour in Windows Forms Designer which I've never been able to understand: - If I add a button to a form and specify a font of MS Sans Serif, Normal, 8pt using the Font dialog, the setting I end up with is "MS Sans Serif, 8.25pt" - Similarly if I choose 10pt I get "9.75pt" and if I choose 11pt I get "11.25pt" The controls where I am noticing the problem have the default Windows Forms Designer settings of ...Show All
Visual Studio Team System Web tests recording is disabled.
VS2005TS RTM. When I start a new webtest VS automatically launches IE and I have to activate IE windows myself. The recorder buttons are all disabled (grayed) and surfing around does not result in anything in the project. If I close IE, VS still report "Recording in progress" and I have to click "Stop recording" but nothing reports to the project. Beta1 did work but I had the same problem with CTP August. Hi, can you let me know if there was a resolution to this I'm also having this problem. Darren ...Show All
Visual C# asp.net
hello i have an asp form in which i have added checkboxes for a field "hobbies". now i want to retrieve the values of all the checkboxes that are checked, in another asp form. can anyone help me how i can do that thank you If you want your results to be viewed in other aspx you need to use CrossPagePostBack.... But if it is on the same page then foreach(Control ctrl in Page.Controls) { if(ctrl is CheckBox) { CheckBox x=ctrl; bool ch=x.Checked; } } ...Show All
Visual C# Multiple languages on the same WinForm
Hello, I must write an application that must support input fields for a "left-to-right" language (as English) and input fields for a "right-to-left" language but on the same form . The keyboard is bilangual (QWERTY and a "right-to-left" language). When the user enters a left-to-right language input field, the keyboard keys must be QWERTY. When the user enters the right-to-left language input field, the keybord keys must automatically switch to the second language. Is it possible with C#.NET/WinForm/Textbox Thanks in advance, Stephane. The character set is a ...Show All
Visual Studio Express Editions ActiveForm question
Ok, I know that the ActiveForm object returns the, well, active form. But what about the active form's controls I can't access those because they don't appear as one of the ActiveForm's objects, and when I try to compile like that it says that the property doesn't exist. So how can I access the controls of the active form Please help! The ActiveForm property returns a Form reference because it can be any type of form. You need to cast that reference to the appropriate type to be able to access the members of that type. If the ActiveForm may be any of several types then you're going to need to test what type it ...Show All
SQL Server General questions about Indexing and full-text with Sql server 2005 - how to achieve the best performance
Hello I'm using sql server 2005 and need to query a database with a full-text predicate (in my case multiple contains) I've the following two questions to the sql gurus : Question 1 : If I want to do a full text query, but also need to select additional fields, what is the best performing methods in sql server 2005 Example : SELECT *, CURRENT_TIMESTAMP FROM TSH_TEXTDATA where ( CONTAINS ( mem1 , @workFormsof01 , LANGUAGE 'German' ) OR CONTAINS ( mem2 , @workFormsof01 , LANGUAGE 'German' ) ) AND LANGCD = 1 The colums mem1 and mem2 are in a full-text indexes. I have def ...Show All
