Henry Zhang's Q&A profile
Windows Forms Iterating over the SelectedItems collection in a Listbox
In VB.NET I want to do something like, Dim li as ListItem Dim str as string = "" For each li in mylistbox.selecteditems str = li.SelectedText Next Of course the above code does not work; but what will Correct, as stated  ...Show All
Visual Basic loopinh and string problem
I have a problem loading my data to my database. I am using mysql. I noticed the problem when i executed my code and it kept giving me a "Argument 'Prompt' cannot be converted to type 'String'" error. But when i checked the db it had some the information in there it would not have the last 3 or 4 data entries in the db. I went back to check the string that was providing the command and I saw that the program was running most of the com ...Show All
Visual C# Access a SAMBA share via C#
A search for "SAMBA" in this forum returned no results, so I am assuming that this question is not already covered somewhere else... I am trying to programmatically access a Samba share from a C# application. Is there any way to facilitate this using C#/.NET Or is the only option here to write a Win32 Shell app or dll Any guidance is appreciated... Thanks, Outsideshot I need to enu ...Show All
Microsoft ISV Community Center Forums VBA in Office 12
Could anyone show some information about VBA in Office 12 Does Microsoft support VBA in Office 12 Are there have any new features or improvements Thank you in advance! I believe that Visual Studio Tools for Office will be replacing VBA in Office 12, but that Microsoft will still support VBA. Here's a few sites that may be of use: http://www.microsoft.com/office/preview/default.mspx http://msdn.microsoft.com/office ...Show All
Visual Studio Team System Limit scope of GET?
I trying to convert a very large project to Team Foundation build. I am wondering if there is some way to limit the scope of the GET that is done to get the source. Right now it is starting at the top of our tree and I believe eventually timing out on getting the source and then failing the build. Can I somehow point it at the Sources node within the tree instead of the root Does this help http://blogs.msdn.com/manishagarwal/archi ...Show All
Visual Basic passing 2-dim array to Sub
Hi, I'm new to VB 2005 , importing from VB6: In a Sub I get wavy-underline warning: "Number of indices exceeds number of indices in indexed array" at this line: inarr(xr, xcl) = .... But the array is a parameter, like: Sub Mysub (inarr(), ... ) When the Sub is called, the array passed will be 2-dim, so can I just ignore the warning, or is there any way I should declare it 2-dim in the Sub definition Sverk ...Show All
Visual C# edit "regedit"
Hi i need some help, how to can change keys in regedit How i creat table in a ListBox or some things You can use the registry apis to change keys in the registry. Regedit just shows you the keys, you can't control regedit, but you can alter the registry To create tables, a datagrid is a better control to use. ...Show All
SQL Server 'Find & Replace' functionality vanished in Management Studio
Hi, Whenever I select a sub-menu option from the 'Find & Replace' menu item on the 'Edit' menu I get - nothing. Not the functionality, nor any error box. Was working perfectly earlier. Any ideas Just a thought... Find & Replace is a dockable tool window. Please scan the windows that you have docked around inside your main SSMS window, maybe it is hidden somewhere there, underneath another windo ...Show All
Visual Studio HowTo: List of Files changed after the latest labeling?
This might be a thick question, but: is there a way (built-in VSS or SS command) to get a recursive list of all files that have been changed since they were Labeled TIA, pecs Hi Pecs, By looking at the label you can find out the date and time the file was labeled. Then, you can select the database root, right click and choose History, and in the history options you can fill in the Fro ...Show All
Visual C# Preventing decompilation!!
Hi, Can someone tell me how can I prevent decompilation of assemblies created in .NET. Are there any freeware softwares that makes this happen. Please provide me the download link of these softwares, if there are any. Thanks, Frens You can use a obfuscator, here is a little list of obfuscator's for .NET: {smartassembly} Decompiler.NET Deploy.NET Salamander .NET Obfuscator Sema ...Show All
SQL Server Relational to DataWarehouse?
Can somebody please guide me in how to convert a relational database to a datawarehouse . Thanks Start with a good book (say,Ralph Kimball's The Data Warehouse Lifecycle Toolkit : Expert Methods for Designing, Developing, and Deploying Data Warehouses ) to understand "how-to" and then read tutorials/samples from BOL. ...Show All
Visual Basic version conflict adding interop reference to VB.NET project
I am having trouble with a reference in my VB.NET application. I've tried the Windows Media SDK Newsgroup, who redirected me here, saying "...this is a problem of the VisualStudio 7.x IDE for VB.NET, not even a generic .NET problem nor an MSXML one (which couldn't care less about VS7's issues) ... post on one of the VB.NET or VS groups where people are bound to know how to use the IDE to add references to PIAs for the system components." & ...Show All
Visual Studio Lost implicit "and" search functionality in MSDN Library after installing VS 2005
I had Visual Studio .NET 2003 and MSDN Library October 2005 installed and working just fine. Normally, to search a topic in the MSDN Library I used to just list the words separated by spaces: e.g. activex license deployment. The space between the words used to function as an AND operator. That is, only the articles containing ALL the words would show up in the Search Results window. Then, I installed Visual Studio 2005 wit ...Show All
SQL Server newbie q: "contacting server to create web project" runs forever
hi, I'm using vstudio 2002, trying to create an C# asp web project, when I select these for a new project it says contacting server to create web project and never quits even after 1.5 hours. I saw in a similar post elsewhere they said the solution is to disable the firewalls - and I did that - and I have norton only, so that is not the issue. IIS is installed as well as SQL server, I can see it running. I have tested successfully a sql connecti ...Show All
SQL Server Antivirus Exclusions
I'm using Symantec Antivirus Server v9.0 and need to know what exclusions to set in the Symantec System Center so that it doesn't create havoc with the SQL servers I have in my enterprise. I am running a culmination of SQL 2000 and 2003. If anyone happens to know the exclusions for AMHS too, that would be helpful. Thanks. ...Show All
