rabi's Q&A profile
Windows Live Developer Forums V3 performance degrades over time
During my development, I had to refresh my webpage every so often. I noticed that over a period of time the map was taking longer and longer to refresh. In fact, at one point, it took 35 seconds. So, I decided to do some testing. With the help of the "window.setTimeout()" function, I automated the GetMap() function to run every 30 seconds. I calculated the time for the GetMap() function and saved it. It started out with 1 second and at the end of 30th call, it took 9 seconds. The increase was progressive and there were no spikes. I have 15 pushpins on the map. I'm using IE6. If I close the browser and restart my application, it starts running faster but gradually slows down again. In our production environment, I foresee my ...Show All
Windows Forms How to tell a click on which item, which column in a ListViewControl?
hi, How to tell a click on which item, which column in a ListViewControl I guess what I need to do is , get the mouse click event position, and test to see which item, which column has this position. But, don't know how to do it exactly. Thanks. Try something like this: private void listView1_MouseDown(object sender, MouseEventArgs e) { ListViewItem item = listView1.GetItemAt(0, e.Y); if (item == null) return; int x = 0; for (int ix = 0; ix < listView1.Columns.Count; ++ix) { int w = listView1.Columns[ix].Width; if (e.X < x + w) { Console.WriteLine("You clicked in column {0}, {1}", ix+1, item.SubItems[ix].Text); break; } x += w; } } ...Show All
Visual J# Populating a forms ListBox from another thread
I'm developing a Chat Client and need to populate the ListBox on the interface form from another thread. How can I go about doing this I've tried playing with delegation but it doesn't seem to work, I continue to get the "Cross-thread operation not valid: Control 'whosOnlineList' accessed from a thread other than the thread it was created on." (Where whosOnlineList is the ListBox.) public class Client { protected delegate void addListBoxItem(Object item); public addListBoxItem addWhosOnlineItem; private void _addWhosOnlineItem(Object item) { gif.whosOnlineList.get_Items().Add(item); } public void run() { addWhosOnlineItem = new addListBoxItem(this, "_addWhosOnlineItem"); public class Receiever { p ...Show All
SQL Server How do you hide items in the Report Explorer Web Part?
Does anyone know if it is possible to hide a report in the report explorer web part in sharepoint. I have a report that can't be run by itself. It can only be run when you click on a detail line from another report. Thanks. I had to change the view mode of the web part to list view instead of detail view. I had to do this along with setting the option to "Hide in List View" using the Report Manager. Thanks for pointing me in the right direction. -Somsong ...Show All
SQL Server SQL and Internet
Hello, I'm having problems with SQL SERVER 2000 and internet. I've a network with WINSERVER2000 and SQL SERVER 2000, and 5 Computer with WINXPPRO. They are connected to a swith witch is connected to router with internet by cable. The problem is that every time the internet fails, I can't connect to the SQLSERVER , when internet cames again it will work normally. I've a similar situation with another network with but instead SQLSERVER is MSDE. My program is based in VB.NET and my string connection is provided by the dataform wizard of VB.NET. What can I do to avoid this situation Thanks in advance, Luis Mendes Thanks very much for your reply, Currently I'm in ...Show All
Visual Studio 2008 (Pre-release) Can an application either provide a service or consume the service
I am trying to write a highly available Windows Service application, hosting a WCF service. There may be multiple instances running on multiple computers. However, only one of them is the master providing the WCF service and the rest of them are in the standby mode. I am thinking of adding a method to the WCF service so that the master and standby instances can communicate. This means that a standby instance needs to create a proxy of the WCF service. Since the code base is the same, it implies that it needs either to provide the service or to consume the service. It does not seem possible if there are data contracts and the call involves them. While I did get it to work when the data contracts are not involved, the workaround involves man ...Show All
Windows Forms Change DB Structure without losing data?
Hello I have developed and deployed an app using VB Express and SQL Express. The users have put data into the db. For a second release, I need to add fields to some tables. When I deploy the new version, the old DB is overwritten and with it all the data inputted before. Is there a way to keep the old data Or at least to extract it before deployment of a new version and to import it again afterwards Thanks for your help. Christophe Hi Ken Thanks for the hint, sound like a good approach. I have tried it manually (changing the structure etc), and it works fine. I have searched for ways of implementing it progrmmatically, but I do not find the right one. Is it possible to do it from w ...Show All
Software Development for Windows Vista Register dlls in Vista
I am using a much modified version of the VB6 P&D wizard, calling DLLSelfRegister in VB6stkit.dll. Under Vista this fails to register the dlls unless the user turns off UAC before running the installer. How can I code it to get the OS to prompt for a temporary lifting of UAC or elevation of status It doesn't work when I am logged in as an Adminstrator; only if I suspend the UAC. Where can I find information about creating the necessary manifest to prompt for elevated rights What is a manifest anyway ...Show All
Visual C# creating arrays
i need to create an array of objects to act as a simple database. So the task is to: Create an array of Student objects called Students that can store: Name, Course and Email of up to 50 students. i am having a little bit of trouble though with the actual array. this is what I have done so far: public class student { student[] students = new student[50]; //an array with 50 elements { new string name[50]; new string email[50]; new string course[50]; } } the details that the user inputs will be via 2 text box and one combo box. I think my syntax is badly wrong. could anyone point me in the right direction, thanks. I am also using MS visual studio .net 2003 I don't kno ...Show All
Visual Studio Guidance Automation Extensions and Toolkit: June 2006 Release
The patterns & practices team is please to announce the availability of the June 2006 CTP of the Guidance Automation Extensions (GAX) and Guidance Automation Toolkit (GAT) ! As reported previously , this is a relatively minor update to the previous December 2005 CTP which includes some important bug fixes and usability improvements. For more details on this release, please read the announcement on my blog . Enjoy! Tom Hollander Product Manager Microsoft patterns & practices I try now to make a setup file (register fails) to install de package and fails with this error: Package configuration file c:\programa files\......\WCFTooling.xml doesn’t existe. WCFTooling is the name of the hol b ...Show All
SQL Server Where are the Graphs saved from Data Mining model viewer
Hi, all here, I tried to find the graphs I saved from Data Mining Model Viewer, but where is it saved As we see from the mining model viewer we could save the graphs there by clicking the 'save graph' button, but where is the graph Really need help for that. Thank you very much in advance for any guidance and help for that. With best regards, Yours sincerely, Hi, Jamie, thanks a lot. But I still got the problem pasting the graphs in office applications like Word documents. The thing I tried is like in clustering viewer, I copy the cluster diagram by clicking the 'copy' button and then trying to paste it in the word document, but nothing there. so where is the graph gone Another thing I tried is that I copied the h ...Show All
SQL Server restore Differential back up file Using SQL DMO
The log or differential backup cannot be restored because no files are ready to rollforward. [Microsoft][ODBC SQL Server Driver][SQL Server]RESTORE DATABASE is terminating abnormally. How can I restore Differential back up/Transaction log file Using SQL DMO Without a code example (or better, SQL statement that is executed, you can trace with Profiler) it's hard to say what is causing this. However, without knowing much of the details (I could be wrong) is that this issue is not related to SQL-DMO but to the state of the database/and or backup file(s). Can you provide some detail ...Show All
Visual C# Intellisence not auto show?
some day ago,i install a Resharper!but my memory is too small to run it! so i uninstall it. after that,I found the Intellisence is not work normal! the Intellisence can't auto show the box! but i enter the shortcut ctril+K and ctrl+L,the Intellisence box will appear! but this is too complex to write code!I don't know what' wrong! Is there someone can help me Thank you very much! --sorry for my poor english You can try the following Go to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE and run devenv /setup followed by devenv /resetuserdata followed by devenv /resetsettings CSharp. [ from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=412559&SiteID=1 ] this will reset all the setting ...Show All
Visual Studio Team System Use Rename Refactor to change the schema/owner of an object
We have recently upgraded our SQL Server databases from SQL2000 to SQL2005 and would like to take advantage of the schema functionality in SQL2005 by reorganizing our database objects (tables, views, functions, stored procs) into various schemas. My understanding is that what in SQL2000 was considered the owner is now the schema of an object. Therefore all of our objects were previously associated with dbo as the owner and in SQL2005 now appear with dbo as the schema. Is it possible to use the rename/refactor functionality in VSTE for Data Pros to change the schema of an object from dbo to something else and then preview/execute changes to all locations that are referrring to the object To clarify t ...Show All
Visual C# C# no header files. All code is written inline - why?
Hi, Can someone explain "C# code does not require header files. All code is written inline" what is the advantage in going for inline how does it affect dynamic linking why dont we have header files as in C++ Thanks, Benin. Hi, Upon other opinions on this forums, header files are used on C++ to separete the definition with the implemtation. The main reason is that you can distribute your header files to third parties or customers with your DLL, so they can access to all the types and the compiler can warn you if there is any problem. C# actually removes the concept of header files BUT you can still do it in the same way as C++. That's why the "Interfaces" exists. Therefore you can have a fi ...Show All
