Jim Blackler's Q&A profile
Windows Forms use a variable to cycle through textboxes
I have about 15 textboxes, all of which I want to save in a string array. Right now I just code: array[0] = txtbx1.text array[1] = txtbx2.text.... and so on. Is there a way that I can use a for loop and use x instead of 1 and 2. so it would look like this: For( x=0;x<=15;x++) { array[x]=txtbx + x.text; } instead of writing it 15 times Thanks. Yes, you can recursively call down through each panel testing each control to see if it is a panel and then dropping into that Panel's controls array. Thereby processing all of the controls on the form. ...Show All
Visual Studio Team System Restore of Single server didn't work
Hi, I was following http://msdn2.microsoft.com/en-us/library/ms252516(VS.80).aspx to restore my TFS server (single tier server in domain) to another freshly installed TFS server on workgroup. Though it mentions restoration of data tier - I still followed it for my single tier server because I didn't find any article specific to my need. Note: I didn't follow http://blogs.msdn.com/vstsue/articles/511396.aspx because it doesn't mention restore of data on different server I faced quite a few problems and finally wasn't able to complete all steps to satisfaction :-(. I will detail out my experience and the queries below: 1.)Performe ...Show All
.NET Development Remove event handler IN the handler?
It it safe to remove an event handler within the event itself For example: foo.SomeEvent += new EventHandler(MyHandler); void MyHandler( object sender, EventArgs e) { foo.SomeEvent -= new EventHandler(MyHandler); } Thanks, Ray The invocation list is effectively cloned when the event is raised, any modifications to the event while being handled will have no effect on the currently raised event because it is operating on the cloned invocation list. They will have an effect the next time an event is raised. ...Show All
.NET Development Unable to use FTPWebRequest over SSL
Hi I have been trying to connect to a FTP server using SSL. I have followed the example on MSDN - ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref10/html/P_System_Net_FtpWebRequest_EnableSsl.htm However I keep getting an exceptions when then “ request.GetResponse ” method is called. The exceptions is “WebException” and message is “The underlying connection was closed: The server committed a protocol violation” Does anybody have any working example to connect to a FTP server over SSL Thanks for your help. Sorry about posting a question in this thread. The question I had is related to is how to s ...Show All
Visual Studio 2008 (Pre-release) Suggestion to creating a managed way of overriding control's templates
As I've been messing around with control templates I've become increasingly frustrated when I start on a new control simply because of all the things I need to do. Microsoft published a little "how-to" here: http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/wcp_conceptual/html/c52dde45-a311-4531-af4c-853371c4d5f4.asp ., but it still doesn't help me for the more complex controls. For example, a Scroll Bar. Sometimes I have to have controls named a certain name, sometimes I have to have certain control types for it to work, etc... I've been trying to think of a better way this can be accomplished. What I've come up with ...Show All
Software Development for Windows Vista At Last Got it !! [The Book Presenting Windows Workflow Foundation, Beta Edition in .chm ]
Hi to all group members At last i finally got the Presenting Windows Workflow Foundation, Beta Edition in chm . This is a result of constant struggle to find that book and finally i got it . So any of you who wants it just leave a Messge Here. WWF Rocks! I would not reccomend getting it. It is compliant with version 1.2 of WWF and so a number of chapters are out of date with the current 2.2 version. ...Show All
Visual Studio Team System Data Warehouse not updating
Hi. In our installation, the data warehouse doesn't get updated. An exception due to converting a date-string seems to be the problem. In Application eventlog this is found: Event Type: Error Event Source: TFS Warehouse Event Category: None Event ID: 3000 Date: 19-10-2005 Time: 14:28:36 User: N/A Computer: W92169 Description: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 19-10-2005 12:28:36 Machine: W92169 A ...Show All
Smart Device Development files on remote computer?
Hi. Wondering if there is a way of retrieving files/directories etc... using the .NET classes I would like to retrieve this information on my remote computer (local computer which has the mobile device connected to it) I can connect using tcpclient but when i try to get a list of files/directories using: string [] theFiles = Directory.GetFiles("\\ComputerName\drive$"); I get an IOException. However the IOException does not give me any error messages, no innermessage or message! It's just "IOException" Is there a way to do what I want running .NET Framework 1.1 (WM2003SE) Thanks! what do you mean "sometimes it can/can't" ...Show All
Visual Studio Express Editions registration thank you email suggestion
is missing product key it would be nice if it was included How did you install the product... Remember that if you did install the product by using the CD Image ISO or IMG you will not get a registration key in the email as the system does not require one (Item 7 on the Registration FAQ). The other option is to connect to the registration benifits portal and select the product keys option, this will display your registration key. ...Show All
Smart Device Development Playing system sounds in a PPC
Hi there, I was trying to port my programs from NSBasic to VB.Net, but even when loving to have all the power in my hands and to be able to do things that before needed from external ActiveX controls I’m still fighting with those simple things that get very complicated in VB.Net. I searched up and down in the forums and cannot get a simple way just to play a system sound under certains events in my program. I can understand about more complexity for new tools but not about to make complicated what before was so easy with eVB or Visual Script. Is this really so horrible Really do we need to write some many lines of coding as I saw ...Show All
Windows Forms Changing folder properties
Hi... Does anyone know hoe i can change sharing properties for folders with vb.net. Can this be done or do i need a different language Pete :-D You can PInvoke these Win32 APIs: NetShareAdd NetShareDel NetShareCheck NetShareGetInfo NetShareSetInfo http://www.codeproject.com/dotnet/pinvokeaddshare.asp df=100&forumid=15604&exp=0&select=697578 http://www.pinvoke.net/default.aspx/netapi32/NetShareAdd.html diff=y Never done it myself. Good luck ;) ...Show All
SQL Server SSRS 2k5 upgrade
Hi, I was able to upgrade my MSRS 2k to SSRS 2k5 but I see two issues: I dont see Report builder in my new SSRS interface : Is there some option in Setup which I might have missed to loose the REport builder. Also in my Add Remove Programs I still see SQL Server 2000 Enterprise Edition , I do not see any SSRS 2005 entry. FYI. My new SSRS version shows 9.00.1399.00 Cheers, siaj To answer your first question, you have to modify the system-level role definitions to add the "Execute Report Definitions task". T hen assign your users this role. Site Settings -> Configure system-level role defini ...Show All
Visual C++ Binding Navagation Like buttons
I'm creating a program in Visual Studio 2005 Beta 2 (i dont have a subscription to msdn so i cant get thet CTP i'm just a student so the cost is a bit steep)using datasets and I want to allow the user to fill in text boxes and add fields without having to see the datagrids. In doing this I would like to add buttons to add (and save) a new item (row) to a dataset and also buttons to scroll through a data set (i tried this ->BindingContext->get_Item(JazzPep_MembersDataSet, "Pep Members")->Position = this ->BindingContext->get_Item(JazzPep_MembersDataSet, "Pep Members")->Position + 1; but i get the error m ...Show All
.NET Development Help with setPassword from a Web Service using Active Directory/System.DirectoryServices
I have developed a .NET Web service for active directory user management. It contains functions like CreateUser, AddUserToGroup, EnableUser, etc... The domain admin created a 'service account' for me that has authority to do all these things and I am passing in its userid/pw when I construct the DirectoryEntry objects. The Web service has its own security mechanism, so it always runs as either the app pool identity or the identity specified in the Directory Security tab for the IIS virtual directory. Everything works - almost. The setPassword function has been a nightmare. It works everytime on my XP Pro development machine running as ASP ...Show All
Visual Studio What's new in VSS 6.04d?
My organisation recently upgraded VSS from v6.0 to 6.04d. Might anyone know where I could find details of the changes included in .04d (as minor as they may be) No major features were introduced, primarily it was bug fixing and some improvents to the integration into Visual Studio. The list of of bugs in the knowledge base that were fixed in 6.0d can be found at: http://support.microsoft.com/default.aspx scid=kb;en-us;820831 ...Show All
