Skynyrd's Q&A profile
Visual Studio 2008 (Pre-release) WPFBeta2 change - MarkupExtension.ProvideValue - IServiceProvider
Hello! I used the ColorPicker in a sample and when I recompile this in the beta2 CTP I get this error message No overload for method 'ProvideValue' takes '2' arguments at this Code line this .SetValue(ColorProperty, (( MarkupExtension )binding).ProvideValue( this , ColorProperty)); because at the Feb CTP the ProvideValue method works like this ProvideValue(object targetObject, object targetProperty) But in the new beta2 version the parameters changed to IServiceProvider. Now I don’t know how I could solve this change. Thanks for helping… ...Show All
Visual Studio Tools for Office Merge Field Collection devoid of merge fields in Header/Footer
If I add mail merge data fields into a header on a document and then iterate the merge field collection, the collection does not contain the merge fields I placed in the document header. Why and where/how can I "get to them" ... You need to give us a bit more information. The code you're trying to use would help. Also - version of Word - does the document contain more than one section - what is the mail merge document type (letter, directory, labels...) ...Show All
Visual Studio Tools for Office Automatically signing a word document.
Hi, we're trying to make a document management setup in .Net 1.1 (we're not using 2.0 yet) . Where every outgoing document has to be signed by us and then signed again by the client for acceptance of the conditions. Now the problem is that we would like to automate our signing process (The clients sign using the built-in signature dialog in MS Word) Right now we have these code snippets that handle the signing: Word.Document aDoc ... // initialization etc aDoc.Signatures.Add(); aDoc.Signatures.Commit(); At the moment we add the signature, the standard word dialog pops up asking us with which certificate we want to sign. Which is ...Show All
Visual C# Menu - Insert Standard Items Problem
After using the Insert Standard Items on a MenuStrip, cut and paste and everything else normally available under edit stop working. If the edit MenuItem is deleted then everything starts working again. Anyone have a code sample for Cut / Paste / Copy / Undo / Redo This is probably because by adding the standard items it adds the shortcut key's. Where before, windows was doing everything for you, you are now effectively telling windows that you are going to handle these events yourself. I don't know whether 2005 handles this better with some new setting, but if you have to do it all yourself, you'll need ...Show All
Windows Search Technologies WDS 2.6.5
Congrats on the release of WDS 2.6.5. I have some questions before I start digging into it. Background - I have a product due for release this summer that uses WDS. Currently it uses the MSN Toolbar 2.05 version (beta, I think, as in it was always beta). It works pretty well and I am happy with it. - Is the new 2.6.5 and the old WDS 2.05 compatible from an API stand-point, as in, do I need to reference a new WDSQuery.dll My current WDSQuery shows file version 2.5.0.0. - If I need a new WDSQuery.dll, where do I get it from - Is there a list of breaking changes (i.e. the use of the URL field in the return results). I realize tha ...Show All
Visual Studio Express Editions Why two languages C++ and C#?
Something which slightly puzzles me is why Microsoft bothered to develop the C# language, when there was already an OOP language derived from C in existence (C++). I would not say that it is a copy, there was already Visual J++ and now J# http://en.wikipedia.org/wiki/C_Sharp C# is designed with .NET in mind. http://en.wikipedia.org/wiki/C%2B%2B ...Show All
Visual Basic How do i use a timer
How do i use a timer bit of a stupid question but it has puzzled me! I would also like to know how to link VB with databases i am currently working on a project and i need some help. Sure - at the end of the day, the same thing is created. For me, though, putting it in code means having complete control over it, where it is declared, how it is declared, etc. The designer does indeed have that area, and it's obviously so that more and more can be done without writing code, which is fine for some folks, I suppose. ...Show All
Visual Studio 2008 (Pre-release) The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared
Hi, I am using the FEB release of WCF. I am using typed dataset in my service. when I try to generate proxy for this service, i am getting the following error: The ' http://www.w3.org/2001/XMLSchema:schema' element is not declared the same was working fine in previous version of WCF. Some thing seriously wrong with recent WCF release (FEB release) Thanks in Advance, Venkat Can you please describe your scenario a little more. What the operation looks like and how it is imported etc. Thanks ...Show All
.NET Development Framework 1.1 and 2.0 co-existing
Hi Is it possible for the .NET framework 1.1 and 2.0(beta 2) to exist and run on the same machine Secondly, what about VS 2003 and 2005 co-existing I have VS 2003 installed on Windows XP, I would like to install VS 2005 (beta 2) on the same machine without destroying things. Any comments/advice will be appreciated. Regards Hi, I havent personally had any issues but read this post here: - There are people who have had issues. http://forums.microsoft.com/msdn/ShowPost.aspx PostID=63026 So, the best thing is to go with VPC. You can also target for v1.1 using the Tookit: http://weblogs.asp.net/rmclaws/ ...Show All
.NET Development system.objectdisposedexception
Hi, I have a multithreaded application that crashes with the following msg in event log ... EventType clr20r3, P1 smartserver2005.exe, P2 1.0.0.0, P3 43f6cc52, P4 system, P5 2.0.0.0, P6 4333ae87, P7 3ad8, P8 a5, P9 system.objectdisposedexception, P10 NIL. I have provided try catch block in all routines in the code & still the appl crashes with the above msg. Note that crash is not consistent for a particular sequence of events. Any suggestions -S.Malathi Hi! It appears that one of your threads Dispose() some object and another reference this object later. Disposing doesn't mean obj ...Show All
Visual C# How to make toolbar
i want to know that how can i make toolbar in c#.net.and how to add that toolbar in IE. Regards Amit Grover This is a beginning. But having created the dll toolbar, the next issue is installing an maintaining this toolbar as it continues to evolve. I have "heard" that Microsoft has developed a click-once or one-click installation process for installing and maintaining Google-like tool bars through the Internet. With this technology, in one click the toolbar is installed, and upon return if updates are ready it then updates the local dll. Could someone help me with the proper product name (& ...Show All
Visual Studio 2008 (Pre-release) How do I Progmatically Select an Item in a TreeView?
Seems simple, but somehow I got stuck on this one. I've got a TreeView bound to some Hierarchical Data. I want to progmatically set the TreeView to have an item initially selected after I populate the Hierarchical data. SelectedItem and SelectedValue are read only, so that's a no go. I figured I need to get the TreeViewItem hosting my object and set it's IsSelected to true in a SubClass like this: public void SelectFirstNode() { if ( this .Items.Count > 0) { TreeViewItem treeViewItem = GetContainerForItemOverride(Items[0]) as TreeViewItem ; if (treeViewItem != null ) { ...Show All
SQL Server SSIS and deleted records
I am trying to use SSIS to upsize Visual FoxPro data. The data is in free tables. I'm using the VFP OLE DB provider in a connection pointed at a folder. When I click on preview, I see the right data--deleted records are not included. However, when I run the package, the deleted records are sent to SQL Server 2005. I can pack all the tables prior to executing the package as a work around, but I would think I shouldn't have to. I don't see any way to detect which records are marked for deletion in the data flow. I've tried to specify in the connection string Deleted=Yes, but to no good effect. Also, as I mentioned, when I preview the data, t ...Show All
Visual C# Splash Form ProgressBar Update
Hi! I have problems getting a ProgressBar on a splash screen to update nicely. My scenario is as follows: * I call my main form from the Main Void with Application.Run(new Main); * In the Main Load event I Show the splash form and sets a bol variable (m_running) to true, then I loop while the variable is true executing something like Thread.Sleep(0); (doing nothing that is) * In a separate thread I invoke methods through delegates to add nodes to a treeview. Those nodes contain instances of others object in their tag property. When done the m_running is set to false. * The ProgressBar on the Splash Form runs as Marquee, w ...Show All
Windows Forms TextBox and c#
How to display a textBox in topleft,topright,center and random positions of the screen in c# How to change the opacity of the windows form using c# code For topleft, topright and center use: public void MoveToTopLeftCorner() { txtBox.Left = 0; txtBox.Top = 0; } public void MoveToCenter() { txtBox.Left = (txtBox.Parent.Width / 2) - (txtBox.Witdh); txtBox.Top = (txtBox.Parent.Height/ 2) - (txtBox.Height); } For random, place a Timer on you Form and in the Tick event of the timer place code that look like this: ...Show All
