tom_7's Q&A profile
Visual Studio Express Editions Viewing Web Pages IN your Application
I have 3 questions: 1) What is the Web Browser 2) How do I use the Web Browser 3) Can you give me any help Im not entirely sure but looking at the events of the WebBrowser control, there is a "ProgressChanged" event, which you can implement and use. According to the documentation, it states that when the event is fired, the CurrentProgress property will give you the number of bytes successfully downloaded and the MaximumProgress property will give you the total number of bytes available for downloading. Based on this, you can then create your own UI progress bar using these 2 properties I believe. http://msdn2.microsoft.com/en-us/library/system.windows.forms.w ...Show All
Software Development for Windows Vista ExternalDataEventArgs NullReferenceException
Hello, I’m currently developing a simple application to get started in Worflow Foundation. In the workflow I have two ExternalEventHandlerActivities and in my Interface I’ve declared them: event EventHandler < ExternalDataEventArgs > NumeroAprovado; event EventHandler < ExternalDataEventArgs > NumeroRejeitado; When a try to raise the event in the workflow I get a NullReferenceException. I really do not know what is missing. (The first parameter is null and as I saw in one sample provided by Microsoft it is not a problem). Guid guid_workflow = this .instanciaWorkflow.InstanceId; ExternalDataEventArgs evento = new ExternalDataEventArgs (guid_workflow); numeroAprovadoCall( null , new ExternalDa ...Show All
.NET Development Setting WMI Instrumentation name space when writing a base class
I am writing a base service class for a number of windows services that we are designing. I am providing WMI instrumentation as a part of this base class. My basic question is how can I make the classes that inherit from the base class set the name space for the instrumentation. The ideal end result of the WMI name space should look something like this root/company/services/servicename1 root/company/services/servicename2 etc... My base class looks as follows (abbreviated) <Assembly: Instrumented("root/company/services/mybaseservice")> Class MyServiceBase Inherits ServiceBase <InstrumentationClass(InstrumentationType.Instance)> _ Public Class myServiceBaseInstrumentation Public NumItemsProcesssed As Integer Pu ...Show All
Visual Basic How can we restrict copy between hard disk and removable disk?
Hi All, I need help in restricting copy between hard disk and removable disk, can some one hint me as how can this be done. The basic idea is to stop leakage of data. Regards, Dinesh I want to make an application which will be running comtinously in the background and would be restricting such data leakage. I would be giving a password for the administrator who would be able to achieve this task but rest all users will not be able to copy tha data. I know, we can very well use the securities of windows but this application will also restruct the administrator from copying the data, is he does not have copy password with him. Regards, Dinesh ...Show All
SQL Server Outer Join problems
This may or may not be due to my lack of knowledge on the use of outer join. I am getting the error: Server: Msg 208, Level 16, State 1, Line 1 Invalid object name 'IncidentId'. From my query: SELECT Incident_Incidents.RelatedIncidentId, Incident_Incidents.RelatedType, Incident.Subject, Incident.RecordId From Incident_Incidents, Incident left outer join IncidentId on Incident.IncidentId = Incident_Incidents.IncidentId where Incident.IncidentId = 12838 Any ideas SELECT Y . RelatedIncidentId , X . RelatedType , X . Subject , X . RecordId From Incident_Incidents X LEFT OUTER JOIN Incident ...Show All
Visual C++ Adding a window within a window.
Hi all, I have created a window(without title bar) class with image manipulating functionalities. Just I want to show this window as part of another window, that is with in a window just like controls. I know to display as a separate window. But I just want to show as part of parent window, like a control. I hope my question is clear. I am using Visual Studio 2005. :) Purusothaman A Thank you viorel. But I am not yet clear. Is it simply enough to pass parent window as parameter and specify WS_CHILD style to a class derived from CWnd/CDialog Will this embed my CWnd/CDialog derived class's object into another window Can u show me a small example (pseudo)code snippet Sorry for asking more. Because I alrea ...Show All
Windows Forms ClickOnce: How to add a prerequisite from the command line?
Hi, I have Crystal as a prerequisite, so if I publish using VS, several additional entries appears in the .manifest file: <dependency> <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" version="10.2.3600.0" publicKeyToken="692FBEA5521E1304" language="neutral" processorArchitecture="msil" /> </dependentAssembly> </dependency> If I create a manifest manually, using Mage, what should I do to add the prerequisite to the manifest file Thanks, Leonid. Thank you for the confirmation. I ended up by ...Show All
.NET Development Accepting multiple requests in server socket
Hi, I want my server socket to accept mutiple requests arriving simultaneously. How can I acheive this Thanks very much Feel free to have a try with my network framework, I think you might do what you need with it kind of easily! http://metasharp.net/index.php title=MetaSharp.NET_framework ...Show All
Visual Basic Opening an EXE in VS
Hi, I have Visual Studio 2005 Pro, and I was wondering how I open a plain .EXE file in Visual Studio to look at the code The computers at the university I go to are able to do this, however, I am now using my laptop (I just installed VS .NET 2005) and it just opens shows the name of the file in the side window. Do I need to install an add-in or plug-in to make this work Thanks! Eric If I'm correct this is only going to work for executables generated using .NET products such as VB.NET or C# . ...Show All
Software Development for Windows Vista Trouble installing Oracle 9i/10g on Vista
Hi I am facing trouble in installing Oracle 9i/10g on MS Vista. Am getting message "Oracle < ... > is incompatible to this version of Oracle". I am in confusion whether MS Vista supports Oracle products or am I doing anything wrong. Please help me in solving this. Got strucked here. Thanks in advance. Buddha. Hello NaiduBuddha, Microsoft does not support or warrant any 3rd party applications and/or products. I would suggest contacting Oracle support which can be found here http://www.oracle.com/support/index.html . Please note that application compatibility is the responsibility of the 3rd party manufacturer. I would also try applying a compatibility shim on the installer ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Post First Impressions Here.
For the working stiff's like myself, could those of you who have successfully downloaded GSE post you first impressions here. Thanks. Well, yeah, what'd you expect First impression - Sweet!!! SpaceWar Starter Kit ran perfectly. Very nice! Working on a sample using the Windows Game kit. More to come. ...Show All
Architecture Windows service not running from installer
I am attempting to create a Windows Service by following the instructions at http://msdn.microsoft.com/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp. I can build the service and run it from the debugger, but if I run it from the installer it does nothing. That is, the installer runs and reports it was installed sucessfully, but no messages are ever posted to the event log from my service. I even tried putting System.Diagnostics.Debugger.Break() in my service and this never gets called. After installing my service, it appears in the Add or Remove Programs control panel, but does not appear in the list of services from Programs > Administrative Tools > Services. Also, I can install the service ...Show All
Visual C# MDIParent - Tracking Key Presses on Child Frames ?
Is there a way of triggering events (ie. keypresses) in the MDI Parent when the focus is on a MDIChild I want to configure standard function keys for the all frames handled by the MDI parent. Also, I have little control on the MDIChild frames... other than just calling them. Any help would be appreciated :) Attaching a keypress event to the child form from within the MDIParent dosn't seem to work... private void ShowNewForm( object sender, EventArgs e) { Form2 form2 = new Form2 (); form2.MdiParent = this ; form2.Text = "Form2" ; form2.Show(); form2.KeyDown += new KeyEventHandler (form2_KeyDown); } void form2_KeyDown( object sender, ...Show All
Software Development for Windows Vista What' the difference between EventDrivenActivity and HandleExternalEventActivity
In my mind, they all block workflow until an specified event is raised EventDriven is a sequence *container* for a specific pattern of activities - specifically that the first activity in that sequence must implement IEventActivity. HandleExternalEventActivity happens to be one of the built-in activities that implements IEventActivity - and therefore will wait until it receives its event (under the covers this is a message received on a particular named queue). The other OOB IEventActivity activities are Delay and WebServiceInput. ...Show All
Visual Studio Team System How to check for code comments (XML Docs) in methods and properties.
I am trying to write a custom rule to check for code comments (ie. XML Documentation) in FxCop. I found a property called Documentation in Method class. But it is always holding null value for all the methods and members. Can anyone help me out in writing this custom rule And i am also interested in finding all the method calls (method names) inside a method. Someone please tell me how to do that. hi, can you use Method.Documentation to get all the xml comment for a method and its parameters Thanks, Michael ...Show All
