StephenJr's Q&A profile
Visual Basic Problems with WebBrowser objects...
Hi there! Could someone please explain why the following three functions return the same value WebBrowser_instance.Document.Body.GetAttribute( "scrollHeight" ) WebBrowser_instance.Document.Body.GetAttribute( "clientHeight" ) WebBrowser_instance.Document.Body.GetAttribute( "offsetHeight" ) I really need the object to return the right scrollHeight values. Regards, O Hi again! Maybe I wasn't specific enough the first time what my problem is all about... I created a WebBrowser object. Let's say it's width and height are both set to 500, respectively. When I navigate the browser to some site, the document inside is shown and the browser's vscroll ...Show All
.NET Development I get an invalid character erorr when trying to access an asmx file from internet explorer
I get the following error when trying to access the asmx file for a web service I created. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. I solved the problem with the help from people from ASP.NET forum. Please refer to http://forums.asp.net/thread/1186659.aspx. Hope it helps. James ...Show All
Windows Forms MouseDown event not fired when button held
So, I'm righting a little application in which I want a user to click down and hold the mouse button on a UserControl to view something (the information should be displayed on the MouseDown event, and removed on the MouseUp event). For some reason the MouseDown event is not being fired on the initial click (but it does get fired if the mouse is held and moved, or right after the release of the button). Any suggestions to what I might be doing wrong I'm working in VB .NET 2.0, however if you want to give a code sample, feel free to use whatever .NET language you're comfortable with. Thanks. Carl C. wrote: I was under the impression that a click event was only fired after a mousedown, mouseu ...Show All
Smart Device Development Draw nice line Compact Framework
I want to draw some lines and basic shapes on screen in Compact Framework. I've used the Graphics class and a bitmap, and then added the bitmap to a picturebox. The problem is the lines look like *** when they are not going straight up or to the side, and by *** I mean that it looks like stairs. Anyone know how I can fix this problem Something like this: ScreenBitmap = new Bitmap (640,480); DrawImageGraphics = Graphics .FromImage(ScreenBitmap); Point[] PointsToDraw= new Point[5]; PointsToDraw[0]=new Point(0,0); PointsToDraw[1]=new Point(50,100); PointsToDraw[2]=new Point(300,200); PointsToDraw[3]=new Point(340,10); PointsToDraw[4]= PointsToDraw[0]; ...Show All
SQL Server Transmission of compressed snapshots
I am using SQL2005 merge replication and have pull subscribers on a low bandwidth link I am compressing the snapshot into an alternate folder. Files are not put into the default folder When I start a synchronization, I would expect the cab file to be copied to the subscriber and then the files to be extracted locally at the subscriber in order to apply the snapshot However, what appears to be happening is that the files are being extracted from the cab file on the publisher (in a UNC specified directory) and then copied in their uncompressed form to the subscriber - resulting in an extremely slow snapshot application. Any ideas what I am doing wrong I have read about the options for using FTP t ...Show All
Visual C# .NET Framework and compatibility
Goodday, lately I've been programming an MMORPG in another programming language. Anyway, I'd like to learn a new and more adult programming language right now, and it seems Visual C# fits perfectly for this. But there's one question that still stops me from completely getting into C# learning; the .NET Framework. The disadvantage is that a person who wants to run my program will need to have the framework installed, and this is quite irritating for an MMORPG. I've been trying some out and untill now I didn't find anybody having .NET Framework 2.x on their PC yet (except me of course). It seems they don't receive it automatically using the automatic Windows update. It would be quite irritating to ask all my clients to download another 20mb ...Show All
.NET Development OleDbDataAdapter.Fill doesnt fill primary keys into DataTable
Hi, m_dbAdptrRemedies = new OleDbDataAdapter("", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + m_RemediesFilename); m_dbAdptrRemedies.SelectCommand.CommandText = "SELECT Nr, Name, Bezug, [Position], * FROM tListenListe ORDER BY [Position]"; table = new DataTable(); m_dbAdptrRemedies.Fill(table); Although Ive set a primary key for column "Nr" in MS Access the filled DataTable has no primary key set. Sure I could do it myself, but I want to find out if the SELECT command returns data with our without primary key, because there might be wrong tables that dont have it and this way wont allow to use a CommandBuilder for update lateron. (BTW: is it possible to ma ...Show All
Windows Live Developer Forums Mozilla 2.0 error loading maps!!
Virtual Earth doesn’t in Mozilla 2.0. This error appears: Error: uncaught exception: Msn.Drawing.Exception: Your Web browser does not support SVG or VML. Some graphics features may not function properly. Anyone knows which is the problem Thanks! I'm assuming you mean firefox2 Marc found the solution and I put it in the new code wiki for Virtual Earth: http://www.viavirtualearth.com/wiki/Firefox2.ashx John. ...Show All
Visual Studio 2008 (Pre-release) Data Binding: How to bind a group of Radio Buttons to a value/collection?
Are there any properties that represent the selected state of a group of Radio Buttons Seems that Radio Buttons are very different controls from others in that cannot represent any value in and of themselves, they must be combined with others. Thus one typically wants to bind the entire group to a single value and map the selected radio button in some way to represent a value. In the most simple case 2 radio buttons representing to a collection of {true,false}. Is this the kind of situation where MultiBindings might be applied Thanks NIK I need to bind to a business object, well outside of code behind, but this gives me some of the picture. However, how/where are s: and p: declared I tried ...Show All
Windows Forms Problem with value DataGridViewComboBoxCell
In VB 2005 Express I have a problem, which completely do not understand. I use a DataGridViewComboBox in a DataGridView. When I change data and save it, I have no problem. But when I close the form I a repeting error, being: System.ArgumentException: DataGridViewComboBoxCell value is not valid. Can anybody help Thanks in advance, Simon Right now I'd say that you'll want to remove the autosizing in the grid's dispose event or in the form's closing event. Can you file a bug for this This will help us identify what is going on here. thanks, -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Visual C# Remote Control -> Remote Assistance
Hi all, Currently i have a project on network programming based program in which a computer will be able to remotely control other station's mouse and keyboard. I have implemented Socket programming for both namely server and client. I can monitor the client activity by sending screen capture on client to server. Now i come to controlling feature which i'm stuck. I thought of: 1. Locking client's mouse and keyboard. 2. Server send its mouse and keyboard activity, & receive updated screen 3. Client send screen capture and receive mouse location, mouse activity, keyboard press,etc But i rethink it again, maybe there is another easier way to do this, maybe something like directly hook the server's mouse and keyboa ...Show All
Smart Device Development USB MASS STORAGE device problem
Im using XP SP2 and had all the latest updates in Windows Pro Xp. When i plugged in or turned on the power of my USB 2.0 Mobile HDD, it doesnt display the storage device in My Computer or Explorer. And even my Cellular phone,which has a USB interface to download stuff to my PC, is not recognized or detected. The device (hard disk in a USB Enclosure) is displayed in USB Controllers section as "USB Mass Storage device" and in the Disk Drives Section, its displayed as "serial number" of the Disk drive (Seagate brand). -> I cannot browse it. it Should be displayed in the browser. Please help me. Thank you. I am sorry but this forum is dedicated to questions ...Show All
Silverlight (formerly WPF/E) Can I get XML(XAMLcode) from WPF/E Objects?
For example, Draw application (by WPF/E) . How can I upload draw data to server The geometry data which a user makes are complicated. That may be true, but your code has to handle creating the geometry data anyway, right What functions would your CAD program expose I do agree that if you download a large XAML file and allow the user to modify part of the data, which would equate to you changing values of element data in javascript (instead of creating new elements) then it would require a lot more code to also update a "string" representation. Is not WPF/E suitable for such a use From a rendering perspective I think WPF/E is very suitable. But from an editing and persisting ...Show All
Software Development for Windows Vista Launching process in non-elevated mode
I have setup program that is automatically elevated by Vista. The setup program launches the application using CreateProcess. The application as child process inherits elevated mode of parent setup process. How can I launch the app from setup in normal, non-elevated mode The best practice is to have your initial setup program run "asInvoker", it's job would be to launch the application installer "runElevated" and wait for its completion then launch the app. Launching the application from the installer is often not a good idea: the user might have elevated using a different account. Imagine a user Toby (not a member of the administrator group) clicks on your setup.exe. At the elvatio ...Show All
Windows Live Developer Forums Bulk add data to local.live
I have a lot of spatial data that i would like to add to local.live and I was wondering in there a bulk uploader available to do this. I don't know is this the correct forum to ask...if its not can you point me in the right direction.. Thanks in advance.. Ray I agree with you Jeff but what i'm trying to do is upload data into my own private collections and then share these....the idea is that say instead of adding each *** house in Germany, i could just upload them all with come type of bulk uploader and then share them out...I have all my data in SQL Server already....would it be easier to just write an app I like all the extra functionality that is in local.live though such as directions etc..!! Thanks for the quick re ...Show All
