kspe92's Q&A profile
Windows Forms Character equivalent of elements in an Enumeration
I have an enumeration as follows Public Enum Delimiters Tab Semicolon Comma Space End Enum How can I return character equivalent of the elements in the enumeration Should I write a Function which checks each element and return character equivalent or is there any other way as well Thanks I'd have to agre ...Show All
Game Technologies: DirectX, XNA, XACT, etc. colorvalue in progressive mesh sample
Hi, new to DirectX in C#, not in C++. In the August 2005 DirectX sdk update, there is a sample in C# called "Progressive Mesh". When I compile this sample, I get 36 errors, all of which are type or namespace missing errors. Here's an example. 'ColorValue', which is supposed to be of the Microsoft.DirectX.Direct3D namespace simple does not appear to be there. MSDN says it's part of the namespace, auto-complete does not. What is going on I know this is probably a newb question, but hey, I'm a newb :) Yes, this appears to be a problem with updating Visual Studio 2005 References in general. Anytime I up ...Show All
Visual Studio 2008 (Pre-release) Data binding and images
Hello everybody! I'm using the December CTP, and I'm trying to create an image that's bound to some XML in an XmlDataProvider, thus: < StackPanel Orientation = " Vertical " > < Image Width = " 48 " Height = " 48 " > < Image.Source > < BitmapImage UriSource = " {Binding XPath=Image} " /> </ Image.Source > </ Image > < TextBlock Text = " {Binding XPath=Name} " /> </ StackPanel > I'm setting the data context programmatically to an XmlDataProvider defined in C#, into which I stuff some XML. ...Show All
Visual Basic today -2 month & last of that month
I am a VB.net rookie how to write 1. today -2 month 2. last of that month thanks a lot alex 1. Dim Date1 As DateTime = DateAdd(DateInterval.Month, -2, Now) 2. Do your own homework ...Show All
Visual C# Forcing the Setup to RollBack()?
With an Installer class, I am overriding the Install() function. I have read that throwing an InstallException() from within my Installer DLL code, will force the setup project install to fail and cause setup to rollback. But this causes an ugly dialog to pop up and inform the user that an exception has been thrown. I am wondering if there is another (cleaner) way to cause the Install() to fail, and there for RollBack() Thanks folks. One easy option would be to reference System.Windows.Forms.dll in your service and if you do have a problem in your Install(), simply throw up a MessageBox (if desired (if not ...Show All
Visual Studio Split Container - VS2005 Beta2
Anyone know why I can't rename my Split Container ( or the 2 panels within it ) via the property grid in Visual Studio 2005 Beta 2 I'm stuck with names like splitContainer1.Panel1 & splitContainer1.Panel2 Obviously, I could edit the generated code and change it there, but everything else can be renamed via the property grid. Thanks. Hi - I'd recommend posting this in the Visual Studio General forum. This forum is targeted towards questions about the Help System & Documentation features. Thanks! Jeremy Jones Program Manager, VS Help & Community ...Show All
Visual C# simple editor using webBrowser control
Hi, I am working on an editor using the htmldocument in the webbrowser control. This is my code for testing out its capability: private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { htmldoc = webBrowser1.Document; htmldoc.ExecCommand("EditMode", true, null); } private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { // process key pressed switch ( e.KeyCode ) { case Keys.I: if ( e.Alt ) { htmldoc.ExecCommand("Indent", false, null); } // end if ...Show All
Visual FoxPro copy to a textfile
dear all, i append my record into a table. then i copy it to a batch files >>upload.log but when it run onli prompt a dos screen and all the capture screen will into a upload.log file. but my customer dunno wat is happening during the process coz onli show black screen. any idea to let my customer know wat progress is running thanks in advance Do not let a DOS window show up. Whatever you're doing do it with commands that wouldn't need to shell to DOS in other words. Or put a wait window so they know what's happening. ...Show All
Visual Studio Tools for Office Deploying Word Solution
I have a VSTO project (Word Template) that I want to deploy to our users' local pcs - I want them to be able to create a document based on that template and have that document stored on a network share. Is it then possible for other users to open that document from the network share and 'run' the assembly (uses a task pane to update or revise the document) If so, how do I go about setting this up Also - does anyone know of a good step by step how-to on setting up security for solutions developed by using VSTO I have found tons of info but it is overwhelming - one article links to another article and that one to another......etc! An ...Show All
Visual C++ VS .Net 2005, how to disable intellisense...
Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra Traian, We did a lot of work to increase Intellisense precision in VC8 so what you mention seems a little suprising. Could you post a sample of a change that VC8 does *not* pick up, which VC7.1 did ...Show All
Visual Basic Compare objects
Which function should I override to compare objects I'm solving the following problem. I'm creating a dictionary object using an object as the key, like ItemDictionary(Of ItemKey, String). The itemKey is a simple object like the following. class ItemKey _id _name ... other definition is not shown here. end class The problem is when I try to use the ItemKey object as a key. The dictionary object will report the specific instance is not in the list. I believe this is caused by the object comparsion method is not properly override. I remember I've read some related article but forgot it. Please advise. Thanks. I've found that ...Show All
.NET Development I need help.....
Hi everybody, I have this problem where when I instantiate an interop COM object I can't destroy it until my program exits....In this case the COM object is an instance of the Access.Application object (Access 97) as found in the Microsoft Access 8.0 Object Library....here's what i'm doing. Imports System.IO Imports System.Runtime.InteropServices Public Class Access97Routines Public Shared Sub RepairCorruptDatabase( ByRef corruptDB As FileInfo, ByVal destinationFileName As String ) Dim accessApp As New Access.Application 'we're talking about access 97 ...Show All
SQL Server Query:Source from multiple tables to a Fact table
Greetings, Iam new to SQLl2005. Iam using DTS to transfer data from my source to the warehouse. I have a couple of tables in my source whein I have to join these to tables fields and insert the same in teh warehouse fact table. I have used a Join query in my Oledb source component, What other component needs to be used to insert the data into the fact table. I also need to extract same data with aggregation and insert the same into an another Fact table. Kindly help. Use an OLE DB Destination Adapter for the insertion. Use the Aggregate component to aggregate the data. -Jamie ...Show All
Visual Studio 2008 (Pre-release) how to implement a application like the north face demo on PDC 2005?
In the demo, user can use a mouse to rotate a sports clothes. I am always being attracted and puzzled by it. Can one give me some advice to implement this Thank you. The link works for me! David ...Show All
Visual C# Visual Studio 2005 Tutorial question
I was working through the C# tutorial on CrystalReportViewers on Windows Apps, ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/crystlmn/html/crtsktutorialscrvcustomizecrvlistboxwin.htm when I came to the instruction #3, "In the class signature, change the word class to "enum" to convert the class to an enumeration." How does one get to this "class signature" I am new to Visual Studio, so please forgive me if it should be obvious. There was also a comment after instruction #2, " Note In Visual Studio 2005, you may be asked to place this class in an App_Code directory. Click the Yes button." ...Show All
