B Langston's Q&A profile
Visual Studio Express Editions Wavy underlines in RTBs
How can I format selected text in a richTextBox with a wavy underline ...Show All
Smart Device Development Slow form loading on startup
Hi All, I would like to ask about the form-loading issues in Compact Framework 2.0. Currently, my application is very slow in displaying the "splash-form" from the time user clicks the executable shortcut. It takes about 7.5 seconds to display the form. I did put a performance-timing though, start from static void Main until the MainForm_Load (code below), it says the total time is only 2500 ms. Can anyone please help explain to me where the issues might be considering there are 5000 ms difference from my measurement Our application have splash form and the code looks like this (it's more complicated, but, the process is same): Thank you in advance for any replies. static void Main() { -------> start pe ...Show All
Visual Basic Can't Get VB6 Serv Pak 6 to install in Vista RC1
Has anyone gotten VB6 Service pack 6 to install in VISTA RC1 I tried and it errors out with some cryptic error about a missing file and quits. VB shows no sp installed and programs that were created with SP6 installd on XP will not run in the API on Vista RC1 with an error message "Component missing". Has Microsoft a fix for this We have lots and lots of custom written programs that we will have to maintain and support on VISTA (if installed) and there seems no way to do it because the service Pack 6 can't install. Chris, I now have VB6 SP6 installed on Vista. When I ran the VB6 install, I did not run it as an Administrator. I then, by hand fix the peices of the install that did not work during my install. Th ...Show All
Visual Studio Team System work items are not publishing from project professional
Dear all work items are not publishing from project professional,This is the scenerio what i work out I open the project profession and added necessary resouces to the new document. Then i connect to team project server and selected the team project Then i enter the necessary details for work item like Title,task type,assigned to, area,iteration ,etc when i tried to publish to TFS , It shows validation rule failed for Title field of work item ,which i already entered ,but when edited the workitem for title through option presented in validation rule failure.it was publishing to TFS To solve this i even gone through the field mapping options between Project professsional and TFS.But it is not solve can any one ...Show All
Windows Live Developer Forums Robot Invaders - The Bonus Round!
Robot Invaders “The Bonus Round!” Build a Robot by next Wednesday and you could be one of 5 people to win $200.00 Who Will Win The 1st 5 people that submit their valid robot entries, which means: Submitted between today 8/29 and 9/6 11:00am PST This is for new Robots, those that have already been submitted will not be considered Your Robot must be integrated with the Messenger Activity window and 1 other great Windows Live service! Download the Activity SDK here Pick another great Windows Live service, please see http://dev.live.com or http://ideas.live.com for a list but some ideas would be ( Search , Alerts , Spaces , Virtual Earth , or Expo ) Your robot must be submitted correctly, whic ...Show All
Visual Studio 2008 (Pre-release) Problems with building the ADO.NET October CTP sample set
Prior to the October ADO.NET CTP (vNext) install I installed the VS 2005 SP1 Beta on a system with the May LINQ CTP. I downloaded and installed (on XP) the (1) samples and (2) the vNext October CTP. I was NOT ABLE to COMPILE all the samples. Of the six samples I was able to compile. 2. WebAppSample - OK 3. Model - OK I was not able to compile 1. EntityClient - NO 4. NorthwinLib - NO 5. ObjectServices - NO 6. WinAppSample - NO The error messages, on compile, I was getting are; ---The type or namespace name 'DataClasses' does not exist in the namespace 'System.Data.Objects' ----(are you missing an assembly reference ) I looked for System.Data.Objects in the GAC using gacutil and got: C: ...Show All
SQL Server Msg 2801, The definition of object 'xxx' has changed since it was compiled.
1. Create table and 2 triggers with script below (*) 2. Run the following script: use testjrl ; begin transaction ; update testtable set workphone = '333' where id = 1; rollback ; Get following error message: (1 row(s) affected) Msg 2801, Level 16, State 1, Procedure trgTestTableInsertUpdate, Line 7 The definition of object 'trgTestTableInsertUpdate' has changed since it was compiled. The statement has been terminated. 3. Change trgTestTableInsertUpdate trigger to alter table TestTable disable trigger trgTestTableDelete select 1 alter table TestTable enable trigger trgTestTableDelete 4. Run the script from step 2 again - works fine. Questions: a. Why does first error occur ...Show All
SQL Server Can I use 4 Gb memory for each instance of Standard Edition?
Hello! I have installed SQL Server 2005 Standard Edition on 64 bit Windows 2003. My question is if I can use more than 4 Gb Physical Memory Can I install another instance of SQL Server 2005 Standard Edition and use another 4 Gb Physical Memory for that instance Is the limitation of 4 Gb memory usage for the whole SQL Server or for each instance Yes if its a 64 bit then need not use AWE settings. Check on SQL Server properties about the memory settings to see how much is allocated, also run SYSMON to capture the resource usage. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotating a bounding box
I have a game with a bat of which you hit balls with. in terms of collision detection im looking at a bounding box. The bat is long and thin, and can be rotated, however there doesn't seem to be a way to rotate a bounding box. It would be very obvious if the bat was at 45 degrees but surrounding by a square bounding box. Is there any way to rotate the box, or is there a different collision detection method i can use The Xna BoundingBox type represents an axis-aligned bounding box (often abbreviated AABB), which cannot be rotated. We don't have any oriented bounding box type in the framework, mostly because those are far more complicated and expensive to check against, so they don't make such good "basic primitive" bu ...Show All
Visual C# multithreading and locking best practices
Hello! Suppose I have an object (instance of my own class X) that is used by class A in AppDomain 1 and class B in AppDomain 2. These classes methods can be run in many different threads. Among properties of class X is a generic Dictionary object. I need to provide thread-safe access to this Dictionary (reading, writing and iterating over). I could create a wrapper class for the Dictionary with modified methods for changing its elements, and use locks there, but what about iterating over the collection using foreach loop If class A uses foreach, lock should be placed there, and locked object must be the same as in the wrapper class - that means visible outside class X. This can cause problems, as class B can lock the Dictionary in class X ...Show All
SQL Server How to Validate Parameters
Hi, I am designing a report using SRS 2000. I want to validate parameters before executing the query. Suppose if user gives a random number for parameter (say Emp ID), i want to display a error message in a textbox "There are no records for the given employee ID" and stop executing query to display employee details in the table. I tried using Visible expression for table IIF(Fields!EmpID = "", False, True). But when I run the report with a random number, an error populated saying "You cannot query a record for no data..." Please suggest me a work around. Regards, Hi, from your description you retrieve all data within one dataset, right So there are two approaches achieve your goal as the NoR ...Show All
Visual Studio Team System Error while testing classes
Hi all, My team is using Team System for testing our codes. Our tests were working fine and passing until we encountered the following error: Test method SMUHPMATest.ControllerTests.StockManagerTest.addStockRequestTest threw exception: System.ArgumentException: The member specified (addStockRequest)could not be found. You might need to re-generate your private accessor, or the member may be private and defined on a base class. If the latter is true, you need to pass the type that defines the member into PrivateObject's constructor. What could be the possible cause of this error and how do we set it right Thank you Hi .NETBloake, Try opening your dev project, right click on a me ...Show All
Internet Explorer Development too many tabs disconnect my internet. any fix?
If i open too many tabs, too quick, in internet explorer 7 it disconnects my internet. what is causing this thanks alot, tyler ...Show All
Windows Forms how to centered aligned MDI child window when maximized
when child window is in normal mood, it could be centered screen, but when it is maximized then it is not centered, is there any trick i could centered it even inmaximization moode. Thanks Thank you, when child window maximized then no control is moved, so i put all control in a groupBox and applied your code, which moved groupbox to my desired location, if you could suggest me any improvement then it would be too much good for me. Thanks once again. groupBox1.Location = new Point((this.Width - groupBox1.Width) / 2, ((this.Height - groupB ...Show All
Internet Explorer Development IE 7 RC1 Breaks Scripts
I just installed IE 7 RC1 and my application scripts stopped working. An example: Dim IE, doc, pics Set IE = CreateObject("InternetExplorer.Application") IE.navigate "about:blank" Do until IE.ReadyState = 4: WScript.Sleep 50: Loop Set doc = IE.document doc.write("test test <img src='abc.jpg'> test") set pics = doc.all.tags("IMG") pics.length now returns 0 Help! Help! What should I modify Thanks in advance kk PS: It was still ok in the beta before RC1 Prabs Chavan wrote: Not sure whether it's' relevant to your problem, but try doing this: Create and set the following registry key: HKLM\Software\Microsoft\Internet ...Show All
