Tadwick's Q&A profile
Visual Basic How do I set the form to GridLayout?
I started using VS.NET 2005, after being using 2003 for a while. I have been experience some problems setting the controls in the form. In 2003 I used to use the pageLayout = GridLayout. Bun now in 2005 I can not do so. What I want to do is to set a control next to the other and not under it With the dafault layout of 2005 It doesnt work as i want. Could anyone please explain to me what should i do in order to set the controls how I like and not how Visual Studio 2005 wants. Thanks a lot, Edd. Edd, There are 2 ways of doing this. 1) Use a table and place your controls in the cells so ...Show All
Visual Studio Team System Recursive Copy within Team Build
Try using the reserved property $( MSBuildProjectName). ...Show All
Smart Device Development How to manages two threads by time
Hi all, I'm using the to threads A,B. B needs the result be accepted from A. B cann't start till A finish with a period of time, otherwise it can continue. The serario is : 1. A.Start 2. wait for T seconds. 3. if T be finished then B.Start. Please help. Regards... you could define a boolean which you set to be true when A starts, set it to be false when A finishes, and only start B when it is false... dim blnAisRunning as boolean = true A.start do while blnAisRunning = true Thread.sleep(1000) loop B.Start ~~~~~~~~~~~~~~ ThreadA does som ...Show All
Visual Studio Serious Build Engine Error in August CTP - BUG?
Using Aug. CTP/Visual Basic: I get - not reproducable, but somtimes - the following Build-Error. It seems that the Error occures when I use the Import-Statement for System.Runtime.Serialization.Formatters.Binary. Removing this line of code all works fine. Is this a known bug/issue in Aug CTP Does anyone know what the error message means Thx for Feedback redfox === Error 2 The "ResolveAssemblyReference" task failed unexpectedly. System.Runtime.InteropServices.COMException (0x8000000A): The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A) at EnvDTE.OutputGroup.get_File ...Show All
Windows Forms Cannot add the appupdater component, somebody helps
Hi everyone! I just downloaded the appupdater component (dotnetupdater.zip right here from this windowsforms site) and I want to use it, but when I try to add it to the .NET Frameworks Components list so I can use it I get this error message: "Component 'TABCTL32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid&quo ...Show All
Visual Studio Tools for Office Serious Error while debugging
Hi, While debugging the VSTO application, I am getting following error: "ContextSwitchDeadLoack" The CLR has been unable to transition from COM context 0x159ba8 to COM context 0x1598c8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use ...Show All
Visual Studio 2008 (Pre-release) Usercontrol Nightmare
I do not know what I am doing wrong but I am starting to pull my hair out. I am using VS and EID to create a quite complex UI, and I am trying to use usercontrols to encapsulate as much as I can. However... Any user control I create and put on a window or page either never renders and just shows up with the classname of the usercontrol in the top left corner, OR when you place it on the page in EID it says "Cannot instantiate <ClassName>" which takes up the whole of the page/window and means you can't position it properly (but will render when you run it). I must be missing something here, should a newly created UserControl ...Show All
Visual Studio Express Editions "Google Desktop Effect"?
Hello For anyone who has tried the Google Desktop will notice that when their Google Desktop is running (Display on Sidebar) and you maximize an app. Let's say IE. Then when you maximize IE, the IE will maximize but Google Desktop will always be on there. IE won't stretch across (either bottom or top) of Google Desktop... Is this effect "acheivable" on VBE .NET Thanks keehun Nam Well, that too, but if I did that, that could make pain in the butt for the user if something that they are supposed to click is behind the form. Anyways, I think that's all i'll do... But from the question, I wanted to do a lot more ...Show All
SQL Server How to do recursive select in SQL Server 2000
Suppose there's a table named [Category], which has 2 columns: CategoryID int, ParentCategoryID int Each category, except the top most, has a parent category, it's a 1-to-n parent-children relationship. Now I want to write a stored proc./function that accepts a CategoryID input parameter, and output all the descendent CategoryIDs (son, grand son, ...). How to do that in MSSQL 2000 You could write a single SELECT statement if you know the number of levels. But this will probably be hard to read and maintain. Best is to write a multi-statement table-valued function that takes the CategoryID as input parameter ...Show All
.NET Development Determining a user's home directory
I know in windows the home directory is "[SystemDir]:\Documents and Settings\[username]", however I do not know how to determine what the username or systemdir in windows is. Any suggestiong to get to the current users someone's home dir to store information Unfortunately , the methods above do not show info that is being used while a user is using a TS session and there are settings in the Terminal Services Profile page of the user's AD properties. The methods above show the regular profile settings, not the TS profile settings. I need to find the profile path and the Terminal Services Home Folder-Local Path shown on the Ter ...Show All
Visual Basic Word.Application
How can i identify which is the actual page and actual line. I need to know, because the window is invisible. Tks.. Off the top of my head I dont know But the application your trying to do is a word automation project and you are looking for assistance with the methods/properties of word rather than anything specific to the VB Language There are a few better resources on the specifics on developing office automation application Office Automation: office.developer.automation newsgroup http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.automation&lang=en&cr=US Working with t ...Show All
Visual C++ Function to escape a string
Is there a function or samplecode somewhere to escape a string... like char my[128] = { "Hello my *"} escape(my); thanx Soren I just mean that if my string is: "hello'*'" then it becomes \"hello\'\*\'\" ...Show All
Microsoft ISV Community Center Forums Charts.Add method causing error
I needed a macro to add a chart with a very specific format. I created a macro that usually works, but I am getting an error that I don't understand. Here is a snippet from the macro: Set chartRange = Selection Charts.Add ' This line results in a "Type Mismatch Error" the first time it is run ActiveChart.ChartType = xlXYScatter ActiveChart.SetSourceData Source:=chartRange, PlotBy:=xlColumns '... When I open a new sheet, and put some data in and run the macro, I get a type mismatch error for the Charts.Add line. When I abort the macro and try the very same thing again it works fine for as long as I have the workbook open. Then, if I close t ...Show All
Software Development for Windows Vista Using infocard without installing certificates on the client?
According to http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=311594&SiteID=1 it should be possible to use InfoCard without installing the service certificate on the client, but if I change the wsFederation InfoCard sample by removing the identity tag from the client endpoint configuration I get the error "The incoming policy could not be validated." (Without this change, the sample works correctly). I want to do this because I want to use InfoCard in a ClickOnce deployment scenario without having the need to burden the ClickOnce deployment with certificate installations (see my question http://forums.microsoft.com/MSDN ...Show All
.NET Development Table Adapter Wizard Configuration
Is there any way to change the default behaviour the TableAdapter to use SQL over Stored Procedures. Also change the default name from Newxxxxxxx for the procedures to a user prompted prefix Thanks, Mike ...Show All
