IDBS_James's Q&A profile
Windows Forms Calling Javascript in webBrowser from C#
I have a webBrowser control in my C# .NET 2.0 Windows application. How can I call a JavaScript function in the HTML that the control has navigated to, from C# Essentially, I am trying to change the visibility attribute of a DOM object within the web page, based on a click event from one of my Windows form buttons... Thanks Igor. Code to get an elemnt of the DOM tree in your browser control: HtmlDocument htdoc = webBrowser1.Document; HtmlElement elem = htdoc.getElementById("target"); ...Show All
Visual Studio Many models, one template.
Hello again all. Some time back I asked a question about producing many output files from one model and one template. (and got two great answers) Now, just to awkward, I'm looking to produce output file(s) from a single template that reads from many models. ;) There are two possible modes for this: 1: I have a tree of models, where one model file defines relationships between objects that are defined in detail in other model files (one file per object on the root model, for simplicity). The root and child models may be different DSLs. 2: I have a flat set of model files all based on the same DSL. I want to create a single file from a single ...Show All
Visual Studio 2008 (Pre-release) Object-oriented network database
Hi, All! I am Ukrainian scientific researcher and developer. I am developing object-oriented network knowledge database which is based on object-oriented database engine. I already implemented .NET 1.1 support. It's very cool that MS devolops declarative object query language for C#. I hope I'll be able to integrate LINQ features into my engine. Now I have to use three fields to store object soft pointers. One for object handle; One for wrapper instance to pin the object instance in memory; and One for instance of user object. I want to hide implementation details from end user. To make this I need some kin ...Show All
Windows Forms Needed: tutorial with VS2005/MSBuild, Dotfuscator CE and satellite assemblies
ClickOnce has great potential, but it turns out to be poorly documented when like me... - you want to obfuscate your application (a sensible requirement for a commercial application), for instance with Dotfuscator CE - you want to localize your application (again, a sensible requirement) - you prefer VS2005 settings and MSBuild over Mage command lines (a sensible requirement if MSBuild is to become our unique build tool) What would be great is a good step-by-step tutorial. Am I getting too old Nevery too old!!! Localization - you might check out this topic: http://msdn2.microsoft.com/en-u ...Show All
SQL Server How to access report parameters in custom code
Hi, Below is a custom code function for my report. At bottom is the expression that calls the custom function. When I run the report I get an error message: "There is an error on line 3 of custom code: Reference to a non-shared member requires an object reference." If I take out the lines that try to access the report parameters then there is no error. Can report parameter be set/read from the report's custom code Thanks! Public Function FormatColorFirstName(varFirstName) As String Select Case varFirstName Case "John" & ...Show All
Visual Studio Team System CMMI Template Customization
Does anyone know when the CMMI process guidance is going to be available for customization (ie. export-edit-import into TFS / use as template) Hi, I want to create default alert/notifications in my process. For Example, if project manager creates any change request, automatic notification should be sent to Change control board for review. Or if i resolve the bug, notification to be sent to reviewer to review the code change. Thanks, Jayashree ...Show All
Visual C++ Error While Executing Following Code
Hai all, // Following is the code taken from MSDN #include <stdio.h> #include <windows.h> #include <winable.h> #include <winuser.h> #include <oleacc.h> #include <winver.h> void main () { // For this example, assume that the g_szName variable // is defined as a global LPTSTR variable. // Get the current cursor location. POINT ptCursor; LPTSTR g_szName; // I had declared this one // Setup variables for interface pointers and return value. IAccessible* pAcc = NULL; HRESULT hr; VARIANT varChild; int cchName; // I had declared this one GetCursorP ...Show All
Windows Forms Essa
I am an observer who is looking forward to becomming a participant. Essa has become the dominant, and sometimes singular creature in my ecosystem. I may be wrong , but it seems to be winning unfairly, I say this because when it is killed by a carnivor like the asgard 3.5 it dies, but disappears without leaving food... thus the asgard starvs. Is i ...Show All
SQL Server Welcome everyone
Yo Janey, Having fun with SQL Server 2005 and Express <not>! Pulled out most of my hair, now down to fingernails. Have the developers call me and I'll be happy to advise them on design and help threads. Luv Dad ...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 Studio Team System Confusion when the Merge target solution is not loaded
Merging when the source branch solution is loaded into VS and the target branch isn't throws you off for a moment because you know there should be pending changes but there aren't any. At least not until you load the target branch solution. This is a rough-edge IMO. What if I merge branches and the merge spans multiple solutions Do I need to load each solution in order to checkin all the pending changes from within VS I know there's probably an easier way to do this from the command line but folks are probably going to prefer to stay in VS when possible. Do you ...Show All
Visual Studio Can we generate code?
Is there a way to generate code from a class diagram Given a project without the type on a class diagram, wouldn't it be nice to be able to generate that stub If there is a way to do this, please let me know. If not, why not Thanks! Hi, You should be able to create new types by dragging the item from the toolbox (it should be visible when you have a class diagram open if not, you can bring it up by going to the View menu and selecting Toolbox). In the RTM bits, you will be able to create new types from the context menu (right click) on the class diagram design surface. Once you create a type ...Show All
.NET Development Application won't start without Visual Studio
In our project we made a small application which uses dll-files. The problem is that the application won't work in a computer that has not Windows Visual Studio .NET environment installed. The latest version of .NET Framework has been installed on our environments and on the target computer we are testing with. When starting up the application nothing happens, not one error message. Also, applications made in the same environment without any dll-files work fine in the target computer. Dll-files are located in the same directory that the executable file but the application doesn't seem to find them anyway. Any idea how to make our applica ...Show All
Smart Device Development Draw on top of picturebox?
Is it possible to draw on top of a picture box Here's my code so far: Pen blackPen = new Pen ( Color .Black, 3); // Create rectangle for ellipse. Rectangle rect = new Rectangle (0, 0, 200, 100); // Draw ellipse to screen. e.Graphics.DrawEllipse(blackPen, rect); but it prints behind the controls on my form. Is there some way to 'send to back' everything except my ellipse Please help Peter Assuming that you're using a PictureBox on a Form, and the Forms AutoScroll property is set to "true", then try setting the Forms AutoScrollPosition property. ...Show All
Visual C# Set a text field to type ahead?
You know in outlook or outlook express when a user starts typing an email address, the field populates an address or text that was previously typed there before. How exactly is that done Is Outlook just reading that out of a hidden text file I would like to enable some sort of type ahead on a text field like they do it in Outlook. This feature is available in Windows Forms 2.0. (i.e. You have to be running .NET Framework 2.0.) It is called AutoComplete. Simply set the AutoCompleteMode and AutoCompleteSource (and possibly AutoCompleteCustomSource) on your TextBox and you should be in business. http://msdn2.microso ...Show All
