jdmarsh2g's Q&A profile
Visual Basic Manipulating HTML control VB dot net 2.0
I am working on an application that uses the HTML control to display "chat messages" sent by a server program. The control is currently defined with AllowNavigation false, IsWebBrowserContextMenuEnabled true, and URL defaults to about:blank. Currently, if part of the chat is a hyperlink, people are allowed to "right click and open in a new window" so that links can be gotten to. The input text that comes in is formatted in html, and the "<a href=" &SendersName & "/a>" so that value will be accessable under a custom context menu. Each chat line is also formatted with its own "<span.../span>" element. However, I believe that in order to make a custom menu, the intern ...Show All
Software Development for Windows Vista CPrintingDialog resource error in visual studio 6.0 C++
Dear. I am developing the program using the Visual C++ in visual Studio 6.0. When the program create the CPrintingDialog in viewprnt.cpp of MFC module, the returnValue is 0 of the following line. HRSRC hResource = ::FindResource(hInst, lpszResource, RT_DIALOG); Please let me know the reason. Best Regards. John Lee. your post is offtopic for this discussion group, but my guess is you are probably missing an include of afxprint.rc in your own resource. Go to view-resource includes and add the line #include "afxprint.rc" ...Show All
Internet Explorer Development MSHTML based scraper
Hi, I'm writing a web scraper toolkit in C++ which I'll be using to write several web scrapers. I decided to save myself some time by using MSHTML to parse pages, but I've run into a number of problems with it. I'm not sure if this is exactly the right forum for this issue, but it's the closest I could find. Getting a single page in and parsing it is no problem. I can walk the DOM nicely and pick off whatever info I want. Pretty easy. (At least, after writing some wrappers for the otherwise laborious COM interfaces.) The problem is getting to the next page. If I do anything that would normally cause navigation, such as inducing a click on a link or submitting a form, it launches IE to browse the page interactively. According to MS ...Show All
.NET Development get file from remote machine using WMI
Hi, I need to copy a file from a remote machine using wmi but i don't know how to define the path to my machine, below is the code that makes a copy of a file in the same machine, what should be the path if i wanted to copy it to my c:\example\ folder ManagementBaseObject inParams, outParams; foreach (ManagementObject mo in queryCollection) { Console.WriteLine(mo["Name"].ToString()); inParams = mo.GetMethodParameters("Copy"); inParams["FileName"] = "c:\\example.config; <----------------- what can i put here so that it refers to my machine outParams = mo.InvokeMethod("Copy", inParams, null); // List outParams Console.WriteLine("Out parameters:"); Console.WriteLine("ReturnValue: " + outParams["ReturnValue ...Show All
SQL Server Pessimistic locking
I am attempting to try a pesimistic lock, meaning that i want to lock a row or table for a period of time and then relase it when i am done. To test this i wrote the following: SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; BEGIN TRANsaction Select * From configurationitem WITH (ROWLOCK,xlock) where name = 'NextReceiptNumber' and category = 'AR'; Declare @i int set @i = 0 while @i < 300000 Begin print @i set @i = @i + 1 end COMMIT TRANsaction To test, while the above is looping i open another query window and select from the same table using the following: Select ConfigurationItemValue From configurationitem where ItemID = 418 This does not work because this query returns IMMEDIATELY. However, if I change the query to the follo ...Show All
SQL Server Why is data mining use too little in business?
Hello everybody, There have been a lot of promising words around about data mining for (at least) the last decade. If one investigates how much data mining is applied in business, it can be concluded that this is rather limited. Currently I am investigating the possible causes of this limited data mining usage for my Master Thesis of Industrial Engineering and Management. This investigation includes a literature study and input a couple of experts from the data mining field. Currently I want to check my results for two aspect with aid of other data mining practitioners: Is my analysis of possible causes complete (iow: what is missing ) Are the identified causes recognized confirme ...Show All
SQL Server Autoformat a table?
Hi. I created an SSRS report awhile back and it had a very nice design to it. I vaguely remember choosing an autoformat style for it, so that it would have blue headers and grid lines, etc. For the life of me, I can't find that feature. Where do you do you select one of the predesigned styles to apply to a report Thanks. Thanks for the response. Can you change a template after a report has been created; in other words, can the template be changed after running the wizard Our users might want to go for a different look after they see a demo. Do we have to run the wizard again to use a different template I've looked everywhere in SSRS but can't see any place where the template can be changed -- other than to ...Show All
Visual Studio 2008 (Pre-release) Change the image dynamically from the Style
Hi all, I've just started a dive from the "learning cliff" into the WPF, so bear with me. I am creating a style for the TabItem to display icons with the text by modifying template from SDK samples. It looks like this: <Style TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Grid> &n ...Show All
Visual Basic Help again...need help with a code i do not know how to make
Hello,everyone again. I need help with a code i need to add the final touches to my lights out app,this is my problem I need to make a If then with all of these in it Button1.backcolor = color.black button2.backcolor = color.black AND SO ON TILL Button25.backcolor = color.black So i can make it If button1-25.backcolor = color.black then msgbox ("Congrats You have Passed the level,Please click on next to continue to the next level") End If But since button1-25 does not work,could anyone help me Thanks In Advance! What i mean by it does not work is that wheni Put If Button1-25. backcolor = color.black then ETC... I Simpy mean that i try to put the i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rendering to a Texture?
I tried to do a search but kept getting an error message. I was wondering if anyone had an example on how to render to a texture under XNA. Thx In order to write anything even remotely ambitious, you must have the ability to Debug what's going on with Direct3D underneath. You need: Visual Studio 2005 Professional. Turn on "Unmanaged Debugging" Use the Debug version of DirectX. If you have all this enabled, you should see very detailed information in the Output window whenever something goes wrong. If you don't have all this... get it. You will wonder how you ever survived without it. ...Show All
Visual Studio Can't access VSS2005 database with Visual studio 2005 over internet
Hi all, I've been struggling with the following problem the last two days: I created a vss server and a database on that server. I can connect to the database from another machine on the network using a unc path ( \\VSSserver\vssDatabase ) without any problems both through VSS Explorer and Visual Studio. Next... I enabled internet access. This time, I can access the database only through the Explorer but NOT Visual Studio. I have selected the Internet plug-in but when I try opening the database I get this error: Cannot contact the Visual Studio SourceSafe Internet Web Service or cannot access the specified database. The Visual SourceSafe Web Service returned the following error: Retrieving the COM class factory for component with ...Show All
.NET Development hyperlink
how do i call a procedure clickme() using a hyperlink before using hyperlink to navigate to the next page. I have a hyperlink called NEXT on a form. I want to bring over all the form's text field values in a session variable to the next page. but before doing that, when i click the hyperlink i want to call the procedure to get the field values. The procedure name is clickme() I assume you want to do this on the client side. In this case you'll create a client-side event handler for the onclick handler. The called function will set returnValue to false to prevent the link from jumping. <script language="jscript"> function Confirm() { //Fail the request window.event.retu ...Show All
Software Development for Windows Vista Designer unable to load .xolm files
Hi, I am trying to add a Sequential Workflow with definition expressed as Xaml and user code in a separate code file but due to some unobvious reasons it is not showing up in the designer,Can anybody help please Are you trying to create the workflow through the designer or just trying to load it If your xoml and class files are correct, then you should also check for any references. I mean, if you are using custom activities in your xoml workflow, then make sure your designer has reference to those assemblies as well. Hope this helps. Anandan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Surfaces, Textures and Render Targets
I am implementing an image processing framework in MDX and could use some assistance. I am unsure of the relationship between surfaces and textures, what I have so far is Load up image to be processed as render target texture Get surface of texture and set to current render target process texture set render target texture to source texture process texture read render target to system memory The problem is mainly with step 4. If I set the render target texture to be the source for the next pass, what am I rendering into Do I need to create a new texture and call SetRenderTarget on its surface How do I reuse surfaces and textures in this scenario Any help would be much appreciated. Thanks, Andrew. ...Show All
Visual Studio Express Editions Moving Line
Here's the code that I'm using, the idea is that a line is drawn the width of the Rectangle and moves down to the bottom of the Rectangle, I've had this working but after adapting the program to work with advice from a previous post it no longer works. Why is this Private Sub Pb_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) G.DrawRectangle(myPen, Rect) e.Graphics.DrawLine(myPen, Rect.X, Rect.Y + Y, Rect.X + Rect.Width, Rect.Y + Y) If Y = Rect.Height Then Timer1.Enabled = False Me .Cursor = Cursors.Default End If End Sub Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventAr ...Show All
