Leon Mayne's Q&A profile
SQL Server IBMDA400 driver, turn off commitment control
I am using IBMDA400 driver in SQL integration services. I do not want to turn on Journaling on the tables I am writing to. I need to figure out a way to turn off Commitment control with using the IBMDA400 driver properties. Can anybody help with me with this ...Show All
Windows Forms Create toolstrip with default buttons
Hi, I want to create a new toolstrip with some default buttons (something like the bindingnavigator). I create a new class exToolstrip Public Class exToolstrip Inherits ToolStrip I add the toolstripbuttons in the InitializeComponent Public Sub New() MyBase.New() InitializeComponent() End Sub Ho wever, in my testproject i can't change the inserted toolstripbuttons or reorder them. this is normal, but i want something else: in the bindingnavigator, for example, you can change the buttons because the buttons are not in the bindingnavigator itself, but are added in the form in the InitializeComponent class. I want to make a control to do the same. Any idea thx in advance, Stijn Hi ...Show All
Visual Studio Tools for Office The value of the 'PublicKey' attribute in 'Microsoft Visual Studio Tools for Office Runtime Redistributable' does not match
I'm setting up vsto run time prerequisite per http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerOverview.asp and I got the above warning message. The install could not proceed. What is the correct publickey for vsto run time Thanks for your response. Thinh Hi Thinh, When we published the SE version of the VSTO runtime, the redist was signed with a new certificate. Hence the Public Key changed. We are currently updating the above article for VSTO 2005 SE and it will be available mid-February. In the meantime you have two choices to resolve the Public Key question. Thanks and regards, Darryn Lavery [MSFT] ...Show All
Windows Forms Parsing Rich Text Box line by line
Hi, Im looking to get some help as i am trying to input a large number of words into a rich text box and then either put them into a data set or by some other mechanism get them as individual strings so that they can be exported to an XML file. I have had a good search online and there doesn't seem to be anything, therefore im not even sure if this is the best way to deal with this. If there is a better way can someone please let me know. i dont mind what way i do it ultimately Thank you Myles Hi, MylesM You can seperate the lines (string array) property of the RichTextBox into several individual strings, then do as you want it to. For example: foreach(string str in RichTextBox1.Lines) { // ...Show All
Visual Studio Tools for Office VSTO SE2005 CustomTaskPane Samples...
I have seen a couple of examples suggesting the following code, private void ThisAddIn_Startup(object sender, System.EventArgs e) { CustomTaskPane ctp = this.CustomTaskPanes.Add(new UserControl1(), "My Caption"); ctp.Visible = true; } but something weird is happening because my "this" object doesn't have a CustomTaskPanes property and I don't seem to have visibility of the CustomTaskPane class. I have added "using Microsoft.Office.Tools" to ThisAddIn.cs and I have read that I need to add a reference to Microsoft.Office.Tools.Common2007.dll, and this seems to fix the visibility to CustomTaskPane class but not the application object. Thanks in advance. ...Show All
Visual Studio Team System TF53018: The application tier SERVER is attempting to connect to a data tier with an incompatible version
There is such error in event log on try to connect to source control: ------ BEGIN OF ERROR TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 10/23/2006 5:01:26 AM Machine: SOLARIS Application Domain: /LM/W3SVC/3/Root/VersionControl-6-128060532856161741 Assembly: Microsoft.TeamFoundation.VersionControl.Server, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: w3wp Process Id: 620 Thread Id: 3180 Account name: DOMAIN\tfsservice Detailed Message: TF53018: The applic ...Show All
Windows Forms Copy/Paste puts control on wrong DesignSurface
Hi, I am using the DesignSurfaceManager to create multiple DesignSurfaces which are hosted in a Tab control. I am able to copy, cut and paste controls no problem when I have only one design surface. The problem is that when I have two design surfaces, copy (Using GlobalInvoke) a control on either surface and try to paste it onto surface #2 - the control gets added to surface #1 all the time. Other StandardCommands work on the correct surface (Align, Nudge etc.) - it just seems to be clipboard related commands that are the problem. I add my IMenuCommandService implementation to the designer manager rather than the design surfaces - not sure if this is important. Also, I make sure the active design surface managers surface is the one c ...Show All
Smart Device Development write to file...CFile?
Hi folks. Simple problem and I've searched a lot and just can't seem to get it to work: I need to write null delimited strings to a simple text file on a smart device. I've tried CFile and CStdioFile and can't get it to work (I think because I can't figure out a way to convert a CString to a const char *). I tried this but I get a bunch of weird boxes at the end of and before every line of text: CString thisString = "Hello there"; writeToFile = thisString + _T( "\r\n" ); csfWrite.SeekToEnd(); csfWrite.WriteString(writeToFile); I just read that apparently CStdioFile is not supported in smart device applications... Is that true Can someone please tell/show me a way to write to a text file Thanx in ...Show All
SQL Server Problem with Transaction Logs
Hi, I have a big problem with transaction log. I need to reduce the transaction log file becouse, the have 25 GB, but when i run the statement for BACKUP LOG with TUNCATE_ONLY, dont work, becouse i have database mirroring installed. Please is very urgent. heywade wrote: what forum may that be I ran the shrinkfile command in simple recovery mode the log went from 561 to 5 MB -wade Hi all, I got similar DB enviorment like heywade did. I also got similar problem as he described. The size of log is still very very large. It seems to affect the DB performance. So, I also tried to shrink the log and db after a full backup but no luck. Even I stopped the mirror but still didn't work. I do ...Show All
Visual Studio 2008 (Pre-release) Handling clickevent from Custom Control
Hello I have this Custom Control "MenuBar" which contains several buttons. This "MenuBar" control is embedded in a larger Main Window. For each button I have a corresponding eventhandler for when they are clicked, but how do I set a Grid in the Main window to Visible when they are clicked. The eventhandlers are defined in the codebehind file for the MenuBar. I can't seem to access the controls of the Main window from my MenuBar control. This makes sence since it's a completely different class, but then how do I access that Grid to make it vissible -- Sparre Hello About a second after I remembered what to do. I set the following in the window constructor. MainMenuBar.SettingsButton.M ...Show All
.NET Development project almost complete, just need a wrinkle ironed out
I have a little program that's supposed to be a type of address book. Need help ironing out a wrinkle. The entire project is on my website: http://www.geocities.com/kyrathaba/contact.zip ...Show All
Software Development for Windows Vista Get taskbar hover image through code?
Hello, is it possible to get the image of a specific window. By the image, I mean the image you see when you hover your mouse over the window's taskbar button. This is obviously not just a screenshot but an actual copy of the window contents. Is there any way to get this through code Specifially, i'd like to be able to put the images of open windows in a sidebar gadget, but just knowing how to get that image would be useful for now. Thanks for any help! :) You need to use the Desktop Window Manager API. I wrote a detailed article on this topic here: http://weblogs.asp.net/kennykerr/archive/2006/08/10/Windows-Vista-for-Developers-_1320_-Part-3-_1320_-The-Desktop-Window-Manager.aspx Cheers, Kenny K ...Show All
Visual Basic Hiding the cursor when not on a form
I have tried the following for hiding the cursor from the desktop: showcursor(false) or system.windows.forms.cursor.hide() both of these only hide the cursor while it is over the form that I am developing. I would like to know if there is a way to hide a the cursor while you are not on the form. Thanks, Tim the clip rectangle won't work for this application as I am using some oversized button because of the touch screen. Someone mention a low level code work around for this. Does this truely exisit I know that when when shutting down the system the mouse pointer goes away, so there must be away to do this. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compile in Release
I am in a huge rush right now. Between VS2003 and VS2005 they moved where you choose whether you compile in Debug or Release mode. Where is it now I have manually added the drop-down box to the tool bar, but it's grayed out. This is extremely frustrating and critical to testing DirectX stuff. Canuck1 wrote: What I always do to compile the debug or release versions (I'm using Visual C# 2005 Express Edition,) is to select Start with Debugging or Start without Debugging from the Debug menu. Start without Debugging compiles and starts the Release version, but perhaps there's a better way of doing this that I don't know about. This is not "running the Release version". This is eith ...Show All
Windows Forms Gridview w Custom Controls?
First of all.. I dont know if this is even possible. I have created a custom control to easily display dropdownlists (many repetative in my project) from a central location. The control is only a dropdownlist with properties InfoType, ItemId, and ItemName. InfoType is specified to know what info is in the list and ItemId and Itemname are used to get and set. I am trying to edit records in a GridView, using this customcontrol. I am having issues populating and setting the usercontrol in the grid... which it works fine outside of the grid. (I know there is no code there to setting the ItemId, as I have not gotten close to getting it to work that way yet.) Anyone have a clue ----------------------------- < asp : Templ ...Show All
