Tomasz K.'s Q&A profile
Smart Device Development How to read an XML file which is in the web server?
Can anyone pls teach me how to read an XML file which is returned from a jsp application(e.g. http://192.202.51.61/test/App1.jsp &myID=001 ) I have been searching for long. I found that if my application is developed as a computer application, it works fine. But if I copy and paste the code into a smartphone application, it does not work.... It returns timeout error.... Can anyone tell me how to do this Alex Feinman wrote: XmlDocument has no problem loading xml from a stream. Sax parser is good to use whhen you either have a malformed XML or a very large one - over a megabyte Yes, you are right, the mistake is mine. Thanks! ...Show All
Windows Forms Trying to get GUI to appear for logged in user, from a service running as System.....
I've got a service that runs from system, and it needs to reboot the client, but I can't get any gui to be displayed to the current user. Has anyone got any suggestions on how I can get some kind of popup to give the user warning the machine is about to reboot and wait for user input before the reboot takes place Thanks, Eric- Is there a way to set that setting when installing programtically I'm installing the service from another application, thusly. SvcInstaller c2 = new SvcInstaller (); c2.InstallService( svcPath, svcName, svcDispName ); Thanks! Eric ...Show All
Windows Live Developer Forums FF Polyline ReArraging?
I am having very strange behaviour in FF which seems to take the LeftTop edge of the last Poly I add and reArrange all of my other Polys' starting at that LeftTop edge, strangley keeping their proper shape...in certain cases even cropping the regions. Live Example: http://mssa.coba.usf.edu/mapControl/ Use IE to see proper result first, then watch it go nuts in FF. I'd paste the source, but the pages are all ASPX and ASCX - you all can see a good "glued" version of the code being delivered to your browser. Is there something I need to do differently, maybe do it on separete layers or what Yep, this is a known issue and a bug has been filed about it. As always, I can't say anything about when you'll see the ...Show All
Windows Forms How can I drag my form? Can I multiply fractions?
Hello, I noticed I can make the form border to none and get rid of that boring titlebar. Is there anyway I can make a bar to go on the left side that will drag the whole form when a user clicks it. Also is there a way to multiply, add, subtract, and devide fractions I want to be able to do the code below with fractions and have it come out as result as a fraction(not a decimal): public void myMathProblem() { int one 5; int two 6; int Result; string result; //Is there any way to do this with fractions but not turn them into decimals and have //Result to come out as a fraction anserw Result = one + two; result = Result.ToString(); label1.Text = result; } Thanks Hi As for y ...Show All
Visual Studio Team System When should a branch become a new Project?
Hi I'm used to version control tools where most branches are under one "project". Somewhere I think I saw some documentation that for new versions of an application (v1 versus v2) creating a new TFS Project was suggested. Are there TFS-specific technical reasons where a new Project is really warranted for a branch (Other than the obvious reasons where there are so many technology differences or source tree layout differences etc etc that you want to leave the old stuff behind.) Thanks, Frappe Here's one document on the subject: http://msdn2.microsoft.com/en-us/library/ms242894(VS.80).aspx My rule of thumb is that you need a new Team Project iff you need to change you ...Show All
Microsoft ISV Community Center Forums Output property to save as
Hi people, I've been trying to generate a result from a MSXML used with Excel. When I apply the output property sampled below, it shows me a HTML into the message. Now I'm trying to display it right to a sheet or save it in a format xls, no results. Would anyone show me a way Else Set xslProc = xslt.createProcessor() xslProc.input = xmlDoc xslProc.transform MsgBox xslProc.output end if Marcos Hercules Hi Brenda, Sorry for be slow in this reply. I think that some progress was did, but I don't know if this is the right way. I put the adodb in use to save my datas as an xls file but in the end my datas turned in some stranger charcters, something like . After this I added this line ...Show All
Software Development for Windows Vista Directx AudioVideoPlayback bugs
.Net 2.0 C# VS2005 SQL Server 2005 I am developing a Windows Forms training application using numerous avi files and AudioVideoPlayback.Video to play them. The file names are stored in a SS2K5 database and the files themselves are encrypted using System.Security.Cryptology. I decrypt the file into a temporary file and play that file. The problem I have is that I cannot delete the file until the application exits. I have tried Video.Dispose() and it doesn't release the file lock. The player is an MDI child form. Any suggestions Been there, done that, but I didn't buy the t-shirt. You and I seem to be thinking along the same lines on this . That is exactly ...Show All
Visual Studio Express Editions some (n00b) questions
ok sorry if it are stupid questions :( but atm theyre important to me :P 1) how do i create random numbers 2) im making a game atm and with the random numbers i want that everytime the number in the label changes(with a timer), there is a picture in the picturebox(so for example when nr1 is in the label i want a pict of a dog in the pictbox, when nr2 of a cat) without using whole time if label1.text is 1 then dog pict appears, if label1.text is 2 then cat pict appears... 3) is there maybe also some nice learning guide or something for C# (not the video one, i want to learn it at my own speed ;) (yes the video one goes to slow)) thx in advance you would need to declare it as a global variab ...Show All
Visual Studio Team System Cannot install TFS (DEU) on a Windows 2003 Server (ENU) with SQL Server 2005 (ENU)
Hello, i try to install the TFS (DEU) on a Windows 2003 Server (ENU) with SQL Server 2005 (ENU). While setup is installing the components i get the following error EventType : visualstudio8setup P1 : 12840 P2 : 8.0.50727.147._vstf_x86_cd P3 : msi P4 : inst P5 : f P6 : - P7 : - P8 : 1603 P9 : - P10 : - thanks and regards j3ns3n i checked how the installation process is done: it's started from the setup.exe and the standard installation has been done, the onl ...Show All
Visual Studio Team System Problems merging branches
Hello! I have created a Team Project named Main and a folder called Main folder underneath that. I then created another team project called foo that is branched from Main project. Within foo, I created a folder called abc. Now I'm trying to merge foo with main and I get the error message saying "The merge target $/Main is not mapped". I have got the latest versions of both team projects and folders within them into my workspace. Please assist. Thanks! Your workfold output indicates that you have mapped the TFS path "$/Main/Main" but your branch operation is targeting "$/Main". It is correctly reporting that "$/Main" is not mapped in your workspace. ...Show All
Visual Studio Protected method of sealed classes appear in the Index
Try generating documentation for the following code: using System; u sing System.Collections.Generic; using System.Text; namespace SandCastleTest { public class BaseTest { protected virtual void Help() { } } public sealed class Test : BaseTest { protected override void Help() { } } } Generate documentation for it using the Sandcastle Aug CTP (HtmlHelp1x). If you'll look at the Contents-tab of the compiled help-file you'll notice that the Help-method is only shown as a method of the BaseTest-class. It correctly doesn't appear as a child of the Test-class as this class is sealed. If you then click on Test Class in the Contents-tab, you'll get a list of all the members of this class. ...Show All
Visual C# Socket.Poll
hi, i am making a program with sockets but i cant know when the client disconnects from the server, im trying this: public bool IsAlive() { return clientSocket.Poll(1000, SelectMode.SelectRead); } //This is on a thread so it dont freeze my app //if IsAlive returns false then i fire an event so i can notify the client went offline public void PollConnection() { while (true) { if (!IsAlive()) { if (ClientOffline != null) ClientOffline(this, new ConnectionEventArgs(this)); break; } } } my problem is that : return clientSocket.Poll(1000, SelectMode.SelectRead); never returns false , even if i close the client . mig16 ...Show All
Visual Basic VBScript Qs - Base Url
Hi, Just wondering what the function/property is in VBScript that will return the base url iGNiTe wrote: Hi, Just wondering what the function/property is in VBScript that will return the base url Try a search on>> http://www.w3schools.com/vbscript/default.asp for your answer. I'd maybe use the SPLIT function so that the array results returned would spilt on the "/" character. See.>> http://www.w3schools.com/vbscript/func_split.asp Use a 1 in the function for a textual compare. Regards, S_DS ...Show All
Windows Forms "Cross-thread operation not valid" exception inside the Control.Dispose()
Hello, I'm converting an existing application from .NET1.1 to NET 2.0. The app. has a form and a custom container control with many children controls on it. The form, container control, and all children are created in the main thread. At some point a user clicks a button on the container control and the following happens: 1. A new container control gets created and added to the form (in the main thread) 2. A new thread starts to load data for the newly created container control. 3. The old container control is disposed by a direct call to Dispose() from the main thread. 4. One of the old container's children control's Dispose method fails: System.InvalidOperationException: Cross-thread operation not valid: Control 'CCity' ...Show All
Visual C# How can we print the contents of a DataGridView???
HI everyone! I have a DataGridView in my application and i would like to print its contents...Can anyone help... I've already add a PrintDocument component in my form and i know that i have to use the Graphics class ,in the PrintPage event, but i don't which method to use in order to print all the rows of my DataGridView...Thanks in advance... look at A component that prints any control, including ListViews, TreeViews, DataGridViews, and Forms The DataGridViewPrinter Class ...Show All
