Domer's Q&A profile
Visual C++ include guards gray out code
It appears that there is a bug with how the VC8 IDE detects and grays out excluded code. When using standard inclusion guards, like so: #ifndef HEADER_INCLUDED_ #define HEADER_INCLUDED_ // code here #endif ...all of the code between the inclusion guards turns gray. Until this is fixed, is there a way to disable graying out excluded code RITZ wrote: You could use #pragma once for now. #pragma once isn't portable. Also he could have a third-party library which uses these double inclusion guards. In manu scenarios #pragma once cannot be used. I cannot reproduce the problem eit ...Show All
Visual Basic WebBrowser Object - Saving Text
I was wondering if someone could help me with coding a common dialog to save text from the web browser object I am new to coding in vb I only have vb98 for now but I do not think this should be much of a problem at my level. but if someone could give me some tips or code snippets on this it would be appreciated. Thanx. GreyWolf I know you can do a "save as". For example, WebBrowser1.ShowSaveAsDialog() Just insert that where you want it with the event "click". Hope that answers your question. ...Show All
Windows Forms open an application from a windows service
Does anyone know how to open an application from a windows service I have an application that I have to run while passing command line parameters. I figured I could open up this application from a windows service while passing the parameters along with the application call. Does this sound possible Any help I could get would be greatly apprec ...Show All
.NET Development is any way to transform TreeView from XAML to XSLT using for loop or any other condition without hard coding.
Hi, I want to know how to transform TreeView from XAML to XSLT using for loop or any other condition without hard coding. I tried for some things My XAML code is < TreeView Tag = " se1 " Foreground = " Black " Canvas.Top = " 450 " Width = " 100 " FontSize = " 15 " Canvas.Left = " 500 " > < TreeViewItem Tag = " se4 " Header = " Points paid for this loan " IsExpanded = " False " > < TreeViewItem IsExpanded = " False " Tag = " se2 " Header = " Check if points were pai ...Show All
.NET Development Simple way to compile project with framework 1.1?
Is there an easy way to have a project compile under framework 1.1 instead of 2.0 I created a (vb class library) project, added some files, deleted the references to the 2.0 library in project...properties...references and added references to the 1.1 DLLs but am still getting errors that the 2.0 framework is still being referenced somewhere: Error 4 Reference required to assembly 'System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing type 'System.ComponentModel.MarshalByValueComponent', but a suitable reference could not be found due to ambiguity between 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.5 ...Show All
Software Development for Windows Vista Exception has been thrown by the target of an invocation.
I have the standard code for hosting WF through Webform as below... protected void Button1_Click(object sender, EventArgs e) { Dictionary<string, object> parameters = new Dictionary<string,object>(); parameters.Add("Alias",txtAlias.Text); WorkflowRuntime workflowRuntime = WorkflowRequestContext.Current.WorkflowRuntime; workflowRuntime.WorkflowCompleted+=new EventHandler<WorkflowCompletedEventArgs>(workflowRuntime_Workflo ...Show All
Visual Studio Tools for Office Excel IF Function
Trying to put in a function that if a cell is under say $10000 then font is to be blue anyone out there know how do do this tried varies arrangements but none seem to work. I can get it to write the word blue though Hello. I believe that conditional formatting is what you are looking for. You can set conditional formatting by using the Tools -> Conditional Formatting command. If you need to accomplish the formatting programmatically, you might try posing your question over at the Excel programming forum: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.excel.programming ...Show All
Visual C++ Exposing the Methods from a dll to be used in other applications....
Hello Everyone, I have a code which is made using .NET clr library.....I need to expose some functions from there to use in some other project, according to me I'm exposing in the .dll but when I use it as a refrence I dont see anything in the other project... Thats what exactly I'm doing....there are two scenarios related with this: If I do .... public ref class Z : public something { public : void TestMethod() } And add this .dll to my other projects I can use the TestMethod() function....... If I do public class Z : public something { public: void TestMethod() } In this case...if I see the o ...Show All
Visual Studio Team System "This type of page is not served" on all ASP viewed in browser with VS2005Beta
I don't know if it's a know problem or not. I get a " This type of page is not served" on each attempt to view any ASP page in the browser with the local host. I haven't yet installed ISS, and don't know if that might be part of the issue. I'm really only using this in a limited scope to attempt to creat a simple shopping cart, If anyone has a suggestion for a similar program not currently in beta, that would be appreciated too. Thanks, James Bernoski James, Which web server are you using When you created your web site from VS, what location did you specify: file system, http Do you see any ot ...Show All
Visual Basic How To run VB.Net Application on a PC without installing VB
How To run VB.Net Application on a PC without installing VB, I know it should install .NET 1.1 . Any other files need to be copy Thank you. ...Show All
Windows Forms Two questions about DataGrid
HI! There is a DataGrid, binded with DataView (see example below) Data source - unbound (is filling from program) How can I change code to achive folllowing: 1) Enable edit ONLY new record (only without ColumnStyle.ReadOnly = true; as it falls search in datagrid) 2) Can be able to check values of cells before adding them to database accordibg with certain conditions ("primary key" and "not null" not anought) Thanks. // ------------------------------------------------------------------------ My form: using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using Sy ...Show All
Visual Basic Decent Source Code Site - Visual Basic 2005
Hi, Want to know if there are any decent Visual Basic 2005 source code sites available yet. Have lookt all over and can only find vb.net (which the conversion does not always do correctly) and allot of vb6 code. I have found that no matter how may tutorials you read and how many books you get none of them cover what you want to to cover. What exactly is it you want to cover Almost all .NET 2003 books are valid for 2005. The only real differences are in the .NET framework objects - there's a few new really useful ones (in .net 2.0), but all the techniques are the same. a couple of books I like are Visual Basic .NET pro ...Show All
Visual C# COM+ Enterprise Services
Hello, I have two questions about automation support in .NET, motivated by a project we are undertaking. We are planning to add scripting support for our application, which controls scientific equipment and analyzes the resulting data. Our app is COM-based, implemented as in-proc servers written mostly in VC++, with the UI code mostly in C#. We are leaning toward a solution based on Microsoft's automation recommendations, exposing a set of ActiveX objects that implement a programming model of our application. This would immediately enable our clients to use VBScript/JScript and the WSH to write and exe ...Show All
Visual Studio Anyone know if the Beta 2 VS2005 Pro Ed is out on the msdn subscriptions?
I see only the VS 2005 Standard Edition of the Beta 2 Are you looking for http://lab.msdn.microsoft.com/vs2005/get/default.aspx#pro More Beta2 products at http://lab.msdn.microsoft.com/vs2005/get/ ...Show All
Visual Studio Tools for Office drop of outlook messages or attachments, into a dotnet application
Hello, We have build an application to store documents electronicaly. We use a standaard listview control to drop in external files like Word Excel etc. This drag and drop is done using the standard functionality from within the Dotnet framework. (wich is very easy to use !!!) Storing those digital documents, our customers also would like to store outlook messages or outlook attachments. This can be done bij dragging those items from outlook to the Windows desktop or the the Explorer (those application will accept the outlook drag events). The outlook data is there stored as a simple file. And can be dragged into our application using th ...Show All
