mcsherry's Q&A profile
Visual Basic Treeview:: SelectedNode()
Hi, I am working with a Treeview control for some Help Application... I have a node structure like the below one N1 N110 N111 N112 N2 N210 N211 N212 If I Press or Click N110 I need to perform some operation. I am doing it in this way.. strSelectedNode = TreeView1.SelectedNode().Name If (strSelectedNode = "N110" ) Then ..... ElseIf (strSelectedNode = "N111" ) Then End If What happens is for the first time I am not getting correct SelectedNode().Name it refers to the previous or initial selection. Like if N1 is my default selection and if I p ...Show All
Visual Studio Team System A book or manual?
I'm evaluating Visual Studio Team suite for the ability to test web page functionality. I see some promiss but I'm really struggling to see if certain capabilities exist. I'd love a reference manual on how to use visual studio testing ability but the only documentation I've found on the install. Some things I'm trying to uderstand are branching and testing for things like login screens. For example, if one screen comes up the test needs to proceed down a different path. Who do I set this up PS we are not keen on writing code for testing software. Some of the people developing tests are not programmers. Here is our online he ...Show All
SQL Server Extremely Poor Performance - Identical DB's but very different performance
Hello Everyone, I have a very complex performance issue with our production database. Here's the scenario. We have a production webserver server and a development web server. Both are running SQL Server 2000. I encounted various performance issues with the production server with a particular query. It would take approximately 22 seconds to return 100 rows, thats about 0.22 seconds per row. Note: I ran the query in single user mode. So I tested the query on the Development server by taking a backup (.dmp) of the database and moving it onto the dev server. I ran the same query and found that it ran in less than a second. I took a look ...Show All
.NET Development fprintf equivalent in .NET
Hello! I've been trying to read data from a text file, which contains the data in a formatted way e.g. "Product numbers: 123, 456, 78" The .NET framework provides a nice way to read from a file stream (StreamReader.Read or StreamReadre.ReadLine), but I don't seem to figure out a way to read the data from the file in a way I've done it in simple C++ aplications like: int a, b,c; fscanff("Product number: %d, %d, %d", &a, &b, &c); Is it possible And if yes - how is it done in .NET. I am using Visual C++ 2005 Express Edition. Karol Duzinkiewicz No sca ...Show All
Visual Studio Troubleshooting: duplicate generated files
I’m getting a duplicate dsldm.cs file every time I do a transform all templates, any ideas what is causing this Thanks Steve ...Show All
Windows Forms Eumerate Sub-Folders
All, I am trying to write something that you can point it to a directory, ex. c:\library, and it will tell me what the sub-folders are in that directory. The reason that I am doing this would be to create something of a dynamic library. I am looking to have each sub-directory be put into a treeview control as categories. Then when you ...Show All
Visual Studio 2008 (Pre-release) Securing WCF services
Hi, Is there a way in WCF to secure services using roles Basically: I have a set of services, and have a UI to specify who can access which service. How to omplement this in WCF Thanks, Venkat you can use role based security in wcf,we have few sdk samples in this area http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/WCF_samples/html/e74c66e1-1cff-4485-a61c-7af1563bbd82.asp http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/WCF_samples/html/af37b260-7dec-41fd-a44c-c09297f4076a.asp -Thank you Madhu ...Show All
SQL Server Enable User Instances in SQL Server
I'm just starting out and trying to connect to my first database using the following string: Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\RFPdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True I get the following error during debug: " Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances ." I've done this on every database - Master, Model, Tempdb, etc, and my database. Still get the error. I may not be enabling it correctly. Any help would be appreciated. The documentation suggests that I use user instances so th ...Show All
Visual Basic How Do I Pass Parameter/Fields Between Forms?
I would like to pass parameters/variables between two forms. How would I do this I have a program level module and do not want to declare the variables as global throughout the whole program. (This would create too many global variables. Too many!) I have created variables at the individual module or form level and they are seen throughout either of them. However, when I call another form, I cannot see them. I need to seem them in the called form. Question: - How can I see or pass variables between two forms Thanks In advance, Hi... I guess you need to move this post into another section, since SQ ...Show All
Visual Studio Rebootstub.exe
I ran the following command to try to figure out what this exe is for. C:\Program Files\Microsoft Visual Studio 8\Microsoft Visual Studio 2005 Team Suite Edition Beta 2-English\rebootstub.exe / It then came up with a prompt which didn't make much sense and I pressed "cancel". It looks like the exe then deletes itself. Interesting. Can anyone give me some info on what this file is for ...Show All
Visual Studio Tools for Office Deployment of a Word VSTO application
Hi I may be asking something that has been asked a dozen times over, but I am still confused on this: I have days and days trying to properly understand how the whole application manifest vs deployment manifest, xsd, dll, security permissions..... all fit in. Is there a decent resource to read up on the deployment of a Word VSTO application Thanks Have you read these white papers: Overview -- http://msdn.microsoft.com/office/default.aspx pull=/library/en-us/odc_vsto2005_ta/html/officevstowindowsinstalleroverview.asp Walkthrough -- http://msdn.microsoft.com/office/default.aspx pull=/librar ...Show All
Windows Forms ** Urgent ** - Time
I have a statusbar1.panel(0).text that displays minutes in string form. Could someone explain how i can convert these minutes into hours and then display in the same place. Many Thanks. Petang Many thanks for your time Omlet, Code is as follows:-Dim idays as single 'Gets how many days time span should be added idays2 = Val(TextBox2.Text) 'Using two datetimepickers  ...Show All
Windows Forms Unselecting text when entering DataGridView cell
When a user clicks on a DataGridView cell to enter edit mode, the contents of the cell is automatically selected (i.e. all the text in the cell is highlighted in blue). How can I stop this Is there a way to make it so that when they enter edit mode, the cursor is just placed into the cell without highlighting the text. Is there something I can do in the DataGridView.CellBeginEdit event, or am I looking in thw wrong place Set the DataGridView's EditMode property to EditOnEnter http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.editmode.aspx ...Show All
Visual Basic Reading Registry Key
I am working on a VB.NET application that can take a computer name and connect to that computer over the server and check several of the local security policies and create a log of what policies are incorrectly set. In a nutshell, it is an automated way of going through a security checklist rather than manually looking at each policy at each computer. I am currently trying to read the "Audit Policies" such as "Audit Policy Change" etc. I found a registry key located in HKEY_LOCAL_MACHINE\Security\Policy\PolAdtEv named "(Default)" that is a hexadecimal value that represents the setting of each of the 9 audit polic ...Show All
Visual Studio Express Editions problems getting the registration code
where do I get the registration code I clicked the register product button, then it asks me for my passposrt password I insert it, and then it sends me an e-mail stating:it'all ok, you have registered, but VC# Express continues complainig about not being registered How can I solve this How did you install the product... If you installed using the iso download then you do not have to register (Item 7 on the registration faq), but the system will keep asking you to register for a small time period and then stop. If you do register with the iso download you will not be given the option to collect ...Show All
