Tim Tyhurst's Q&A profile
Community Chat This Time
http://members.cox.net/wildman3/thisTime.html Best Effort yet! This Time It Won't Take Long, made in Windows Movie Maker, with special effesx. Comments welcome on SoapBox Thanks Treyt Haltom ...Show All
Visual Studio Express Editions How to count the number of CheckBoxes Checked
Is there a way to count the number checkboxes that have been checked on a form and when a certain number as been reached disable any remaining checkboxes Regards LVB This alteration of Manan's code should work for counting checked boxes: Dim i,count As Integer For i = 0 To Form1.Controls.Count - 1 If TypeOf Form1.Controls(i) Is Checkbox AndAlso Ctype(Form1.Controls(i), Checkbox).Checked Then count++ End If Next If there's a huge number of checkboxes involved, I'd put in the check to see if count exceeded the value you were checking for, but it is not necessary if you're just looking at 20 or so controls. The AndAlso is there to tell the program ...Show All
Visual Studio Express Editions Default project templates vanished
Hello, after installing the XNA Framework, the standard project templates for Visual C# 2005, like Console Application, Class Library etc. vanished from the list to choose from, when i try to create a new project. Is there a way to get those project templates back to that list Markus I've had the same problem. It seems to be language related. I uninstalled XNA and c# express, installed the English version of c# express and reinstalled XNA. Now I have all the templates. ...Show All
Visual Basic forums tree
how do i get forums tree in left 'frame' Or is it newsgroups. Sorry for sounding so dumb. ...Show All
Visual C++ String resource dll for "Found new hardware" in Vista
In 2K and XP, I was able to get the string "Found new Hardware Wizard" which is the window title on the plug and play UI, from newdev.dll. (C:\Windows\System32\newdev.dll) In Vista I find newdev.dll missing. Could anyone tell me from which windows dll can I get this string in Vista What is its string ID in Vista Thanks Vinod Seshadri ...Show All
Visual Studio Execute target when (core)compile will execute
Hello, there must be a simple solution for this silly question, yet I cannot find it. I want to execute a target before compilation only when compilation will occur, i e when corecompile has been determined to execute (ie dependencies have been updated) then I want my target to execute before compilation. If corecompile does not run, I do not want my target to run either. So, is there a hook before corecompile is run after it has been determined that it will run Or is there a simple property that expresses the inputs / outputs used so that I can use the same dependencies /mawi As you say, that will in many situations be a problem, since the build process will then involve editing files in the framework. ...Show All
Visual Studio Error when invoking MSBuild from command line
Hi everyone, I am invoking MSBuild from command line and am running into the following error: [INFO] Build FAILED. [INFO] CSC : error CS0006: Metadata file '..\..\..\..\..\..\dotNetLib\Microsoft.Practices.Enterprise Library\ExceptionHandling.Logging\2.0.0.0\ExceptionHandling.Logging.dll' could not be found [INFO] 0 Warning(s) [INFO] 1 Error(s) The dll in question DOES exist at the path specified. This error is occuring in the "corecompile" target. Prior to this step, there seems to be another target that's invoked which is "resolveassemblyreferences" and here's the output from that: [INFO] Target ResolveAssemblyReferences: [INFO] Primary reference "Microsoft.Practices.EnterpriseLibrary.ExceptionH ...Show All
Windows Forms IComponentChangeService.ComponentChanged doesn't fire
Hey. We have a little problem regarding <subj>: we have a DesignerSurface and a propertyGrid to show the data on a selectedObject (IComponents, as the case may be). Upon changing a property value in the PropGrid - the IComponentChangeService.ComponentChanged event fires, but when changing a property normally in code (either from glyphs or from "external" code) - the event doesn't fire. Is this by design I saw in the reflector that normal (internal) glyphs do not change properties directly but call on a PropertyDescriptor.SetValue(). Is this the only way to get this to work (I should mention that I talk about properties of existing classes, and I cannot add the RefreshPropertiesAttribute hardcoded, or (as it ...Show All
Visual Basic how can I attach documents using vb.net 2005
Please explain me how to write code to attach documents in vb.net 2005 take a look at this at emails and attachments: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=616274&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=980379&SiteID=1 ...Show All
SharePoint Products and Technologies sharepint first website setup
Hi, I am trying to make a website suing wss3.0. I am trying to restrict some users to access this website:- 1.How to restrict the access of site collections to some users of my Company domain.As per now i have enabled integrated authentication, so everybody on my company domain can loggin using his valid credentials. 2. WSS3.0 provides only all zones and windows as security zone only(No inranet and internet zones).Is there any anyway to add zones. 3. I need only one specific user to have access of administration website.I tried a user which is not included in farm administrators list but exists on the machine. That too works, which should not be Hope i am able to put up my query correctly ...Show All
Visual Basic printing a hard copy
So i have an app that has text boxes, labels, and comboboxes. the program populates a database. What i need to do now is Print a hard copy of the data (from a command button on the form) and send an email to someone (through Outlook).. Can anyone point me in the right direction on how to do this Thanks. Ian. yup thats the problem - the code snippet in the documentation was just a sample. So it was reading a text file, and now you are reading a file (same effect). you need to not read a file but instead read the textbox: so instead of this: While count < linesPerPage line = streamToPrint.ReadLine() If line Is Nothing Then Exit While End If yPos = ...Show All
Software Development for Windows Vista Confused, what is the relation between MSDTC timeout and System.Transaction Option?
What I seem to be seeing is that when I create a System.Transaction with: transactionOptions.Timeout = new TimeSpan (0) but keep the COM+ Explorer MSDTC timeout at 60sec it timesout at 60secs. I don't have have Enterprise Services attribs on my code. What's happening or am I just going mad! Hey pkr2000, There must be some action occurring that is causing transaction management escalation. System.Transactions timeout in the Options object is used by the System.Transactions Transaction Manager. This TM is local to the process. The MSDTC timeout of course applies to the MSDTC TM. When a transaction is promoted and management is escalated from the System.Transactions TM to the MSDTC TM you use the MSDTC timeout in addi ...Show All
SQL Server VLAN/Teamed Network Adapters for Principal and Mirror
Hi! Is it possible to use teamed network adapters for Principal and Mirror in a quorum I need to use a VLAN networkconnection in order to setup a Synchronized Database Mirror with Witness session. Thanks in advance! Database Mirroring makes connections over standard TCP/IP protocols, so there is no functional dependency that would prevent the usage of teamed network adapters which operate at lower levels of the network stack. Regards, Matt Hollingsworth Sr. Program Manager SQL Server High Availability ...Show All
Visual Basic What's the deal with Generics
Hi, I have the following Function Public Function EnterOrder( ByVal custCollection As Generic.List( Of CustomerDTO), ByVal OrderDTO As OrderDTO) As Boolean Dim customerBOCollection As New Generic.List( Of CustomerBO)(custCollection) ...............Do stuff End Function I get an error when I run the program basically saying unable to convert CustomerDTO to CustomerBO. What other way around this do I have CustomerDTO is my serialized object and CustomerBO (name speaks for itself) is the one with the rules etc. With one customer it works like this Dim customerBO as new CustomerBO(CustomerDTO) I now need to pass a collection of customers and I was turning to Generics for assistance. Any ideas ...Show All
SharePoint Products and Technologies Options for Updating Excel displayed thru Excel Web Access ?
I'm developing a dashboard which contains some graphs surfaced through Excel Web Access. This works great. However, is there a way of updating the Excel data without going into Excel (e.g. via a synchronized SharePoint list or by using infoPath) so I have more control over the UI I'm really looked for a code free solution so I don't have to worry about maintenance and deployment issues in the future, and so power users can also use the same method for their own sites. You have a couple options: Use Excel as you mentioned... easy, but it adds an extra step to your workflow (open in Excel, edit manually, resave). Keep the data in a database (the SharePoint list scenario you mention). If you use ...Show All
