siavoshkc's Q&A profile
Windows Forms problem in axwebbrowser.navigate()
Hi , I am using VS .NET 2003 on XP SP2 when I am using the axwebbrowser.navigate() in my code, its actually locking the file which I supply to it as URL. I am pasting the code below: ################################################################################### public string Xml { set { StreamWriter writer; object missing = System.Reflection.Missing.Value; missing = null; _fileName="C:\\XMLFiles\\"+Guid.NewGuid() + ".xml"; using (writer = new StreamWriter(_fileName, false)) { writer.Write(value); } _ctrlWeb.Navigate( _fileName, ref missing, ref missing, ref missing, ref missing ); if (_previousFileName.Length > 0) { File.Delete(_ ...Show All
Visual C++ XML contents from Windows Clipboard
Hi to all, In my application, i could able to retrieve the text data (CF_TEXT) from the clipboard, when it contains text data other than XML data. but if the clipboard contains XML data then i couldn't able to gather the information. can any one tell me how to gather the XML data from Clipboard. Advanced thanks for any help. from Gopinath MV A better place for such issues would be the win32 dev newsgroups at http://msdn.microsoft.com/newsgroups OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C# question of what the difference is between...
Yay! time for another newbie question. Is there a difference between these two lines string AString = new string(this); string AString = new string; If so, whats the difference Quilnux string AString = new string; That would work in C++, but not in C#. It would have to be written as: string AString = new string(); string AString = new string(this); Again, that won't work in C#, because no constructor of string takes a parameter anything that could be a "this" object in anything you wrote. So, let's put away string, and use another object: MyClass AnObject = new MyClass(); Creates a new MyClass object and assigns it to AnObject, using whatever defa ...Show All
Windows Live Developer Forums Article - Loading your pushpin popup content on demand
The next in my series of little articles I look at loading the content inside your pushpin popups on demand: http://www.soulsolutions.com.au/Articles/PopupContentonDemand/tabid/98/Default.aspx Full working code for improvements here at the wiki: http://viavirtualearth.com/Wiki/PopupContentonDemand.ashx John. Thanks. The next one is a little bit of a challenge since there is a bit of code it there. I'm thinking of only posting the really important bits in the article then having the entire example project for download. I was also thinking about making a little video run-through to make it more interesting. What do you think John. ...Show All
Windows Live Developer Forums class=VE_PlaceList_Title
Could someone please tell me what this is and why it has reared it's ugly head on the map when calling map.GetRoute(start, end, null , null , onGotRoute); This is a very confusing thread. So are you saying that you get the ugly yellow box appearing when you do a route and you want it to go away Have a look at this article where i use a custom disambiguation box and drop the message div with a simple css overrride. http://viavirtualearth.com/vve/Articles/MyGeoLand.ashx John ...Show All
Visual C++ Newbie programming problem
Hi. I'm having problems getting this program to work correctly. It's a console program. It's a simple little thing that asks the user if they want to add or subtract. If they want to add, set variable to 1. If they want to subtact, set variable to 2. Then, If variable is 1, add. If variable is 2, subtract... Well, the if statements aren't working correctly. It wants to add no matter what I input. (1 or 2.. or 3..) If you can help me out I will appreciate it. //A newbie program that can add or subtract //Enter '1' if you want to add or '2' if you want to subtract //Using 'if' statements to decide what action to proceed #include <iostream> using std::endl; using std::cout; using std::cin; ...Show All
Windows Live Developer Forums VEPushpin.OnMouseOverCallback 'x' Value Inconsistency
I'm working with the VEPushpin.OnMouseOverCallback function and I've run into an issue where the 'x' value provided to this callback is not consistent. The code pasted below illustrates this situation. Specifically notice the style on the div 'myMap' that includes "left:100px;". In this code the callback displays an alert that shows the value of x, y, title and details. The inconsistency is that after this page loads (in IE or Firefox) the first time you hover over the pushpin (on Minneapolis, MN) the x value includes the 100px offset. The second, third, ... time I hover over the pushpin the x value DOES NOT include the 100px offset. This code is a simplified version of what is happening in my app. I was hoping to use the x a ...Show All
Visual Studio Bugs (?) in July version
I have upgraded to the July DSL Factory and have the following errors/changes 1) Can no longer stop users resizing shapes 2) Can't create a new relationship shape (had to edit XML) 3) Can't create user types (used to use CLR attributes) 4) 2 instances of validate/validate all in menu 5) Error if adding item to validate menu Hi foleyp, Yes, I meant DomainType. So all a domaintype does is specify that the property is of a type defined in regular code. its then down to the standard .Net mechanisms for that class to get it to display in the property grid the way you'd want it. This usually comes down to using attributes to set type convertor etc. You can find lots of information on thi ...Show All
SQL Server Linked Server Problems from SQL2005
When I run linked server queries from SQL2005 it fails. Query Example : SELECT * FROM [servername].master.dbo.sysobjects Error: OLE DB provider "SQLNCLI" for linked server " servername" returned message "Communication link failure". Msg 10054, Level 16, State 1, Line 0 TCP Provider: An existing connection was forcibly closed by the remote host. Msg 18452, Level 14, State 1, Line 0 Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Notes: The linked server is configured to use the current logins security context. It does not matter whether I connect to SQL2000 or SQL2005. I have a case with MS (6 hours on the pho ...Show All
Windows Forms Hiding tab pages
I have gone through the threads available on this subject and have tried the suggested solution. But they don't seem to work. I have design my tab pages with the TabControl using the visual basic 2005 express. I have 4 tab pages on my application, each with a datagridview thing which have connections etc. coded for each. Is this the reason why the tabcontrol.tabpages.remove() way is not working or is it due to the limited capability of the IDE please enlighten this cofused and blurred student.... thank you. All right, I have managed to get it working. It seems that my hunch about the g variable seems to be true. I tried this line and it works the way I want it to work: If g3 = Nothing Then ...Show All
.NET Development Is there any problem at Windows Installer 3.1 Fix
Hi... For these 2 weeks i have got trouble with windows installer. Whenever i try to prepare a web deployment and wheneever execute the created msi.exe i always het memory errors. I thought there may be problem at the installation of framework and VS.NET 2003. I have uninstalled it. Whenever i tried to install VS.NET 2003 i again got windows installer msi.exe error about the memery error.... The instruction at "0x00eb5d78" referenced memory at "0x00eb5d78". The memory could not be "written" I habe server 2003 with SP1 and the last fixes of the security updates. I have downloaded last verison of windows installer and it's fixes from http://blogs.msdn.com//windows_installer_team/archive/2 ...Show All
Windows Forms BindingListView DataGridView slow loading
Hey guys, I really need some help here, i am using the bindinglistview with a custom business object with about 40 fields. Now the data loads very quickly into my BO List but when it comes to displaying it in the DGV it is very slow. It takes about 2 seconds to display around 200 rows. Loading 5 takes no time at all, but the more i load the slower it goes. (no i am not painting any cells) Does anyone know how to speed it up Every 30 seconds i need to refresh the data which the bindlinglistview holds, is there anyway to do this other than setting the dataSource Cheers Kris ...Show All
Software Development for Windows Vista Programmatically setup GPO for specific user
Hello, How do I programmatically alter a specific users GPO on vista The aim is to write an installer for a kiosk application that will create a locked down user account. Thanks, Mike ...Show All
Windows Live Developer Forums map.GetCenter seemed to return wrong value
I thought that map.GetCenter was returning wrong values (to see the effect use http://www.svrsig.org/cgi-bin/gemap.cgi lat=52&long=-4&zoom=6 which places Edwinsford at the centre. Move the mouse over the map and the centre is shown to be 52deg4'2.2"N instead of 52degN. The problem is that the javascript function 'parseInt()' returns 4 instead of zero for the argument parseInt(4.547473508864641e-13). Now how do I sort that out The relevant finction is: function latmin(cin) {); var ain = 0; var bin = 0; if (cin>0) { ain = (60*cin) % 60; bin = (36000*cin) % 600; return " "+parseInt(cin)+"°"+parseInt(ain)+"'"+parseInt(bin/10)+'.'+parseInt((bin) % 10)+'"N'; } cin = -cin; ai ...Show All
Visual Studio Team System Load testing on local pc or remote pc
Hi friends, I would like to do load testing for few pages of my webapplication. I have written webtest and that works all good locally. When I put this webtest into loadtest and set other stuff and run it, it gives me errors related to HIDDEN_VIEWSTATE stuff as well as some http500 errors and forbidden errors. Out of curiosity, I changed the webserver to talk to other server and there it works all good without errors which I mentioned above. I am puzzled about this. Why is it like this What is wrong on my box which is generating errors Configuration: Local Box - Windows XP Remove Box - Windows 2003 Server What could be an acceptable loadtest - running locally (i mean http://localhost/myapp ) or remotely (i mean h ...Show All
