Ekta's Q&A profile
Windows Forms TabControl - Disable/Enable tab page
I have a tabcontrol with 2 pages. OnLoad the 2nd Tabpage shall be disabled (grayed out and not selectable). Later with code I need to enable the 2nd tab. Any Ideas how this can be done please. /Morten You can't disable a tab as such, but you could mimic it. You could do something like the following: 1. Add a TabControl with 2 pages 2. Set DrawMode to OwnerDrawFixed 3. Attach the TabControl.Selecting event t ...Show All
Visual Basic How to disable a single warning?
I like the new warning system which makes people produce better code. But as project grows the number of them rises. I am looking for an option to say "hey I have approved this warning instance as acceptable". All I can find in the help is hints to disable the warnings at all or to disable a single warning type. What I am looking for is to disable a single warning instance as there might be other places where this type of warning is a mistake by ...Show All
Smart Device Development Form focus
Hi, I have two forms in my application designed for WM5 Smartphones. I displays the second form by running "form2.ShowDialog()" and all that works nice. But, when I'm closing the second form (using "this.Close()" and "this.form1.Show()") the first form shows without focus. There is a listview at the first form and i can't navigate in it, which means that the form has no focus, or Anyway, what can I do to make it work correctly Happy new 2006! ...Show All
Visual C# Query Commands
Ok. I am trying to use the query command "LIKE", but its not working. I have a row with the name Ben Stuart - A moment inside. When I use the following code: SELECT * FROM TableName WHERE Title LIKE ' e*'; and its not working, it just shows a blank table. But when I use the following code: SELECT * FROM TableName WHERE Title LIKE 'B%' ..then it works just fine. I know the first block of code is to match the criteria to the second letter, and the ...Show All
Windows Forms Last Event to be fired in an Install?
I am using a visual studio setup project to deploy an application. I have a check box on my last user interface screen that I want to show a read me. What is the last event to fire that I can access with the installer class Is there actually one that runs after the Close button is clicked Thanks ...Show All
Visual Studio URGENT: Error with Microsoft.Reporting.WebForms.LocalReport.InternalRender
Brian We are experiencing some internal errors with the reporting services engine in the local mode. It seems to be working fine on all our dev boxes but seems to blow up in our production sites. Here are some messages found in the System Event log. Let us know if something pops up as you see the message. Basically, the code does the report render is given below. Call me stupid, i must have put a try/catch around the render method as it is ...Show All
Visual Studio Express Editions So how do We deploy?
If VC++ express doesn't include an installer project, then how can I distribute the files needed Is there a free installer wizard that supports .NET or has someone created an Installer project Can I just create a batch file or exe that runs .NET runtime install and copies my dependencies or is there a better way any help appriciated. Take a look at the following threads that discuss similar issues: http://forums.microsoft.com/MSDN/ShowPo ...Show All
.NET Development Best Practice on two applications talking to each other
What is the best way to expose a local application feature to other applications I want to expose a static class over multiple applications: ApplicationA.exe consumes StaticClass ApplicationB.exe consumes StaticClass StaticClass is unique in the user machine. Should I have a .Net remoting implementation over a Windows Service or a .Net executable Should I move into AppDomains How can I do that Thanks To my und ...Show All
Visual C++ Problem in setting PATH,LIB and INCLUDE environment variables through script for 32 and 64 bit plateforms.
Hi, I'm using Visual Studio 2005 Professional Edition. I have a script file (batch file) to launch the devenv by using /useenv. Through this script some environment variable are being set for both 32 and 64 bit plateforms. if, I need different values for both 32 and 64 plateforms,I use two variables in the script e.g. A32 and A64 otherwise only one environment variable. This is required, So, that I can c ...Show All
Software Development for Windows Vista IndexOutOfRangeException when creating new StateMachineWorkflowInstance
I am trying to populate a grid with the current states of several state machine workflows. To do this, I am iterating through a collection of SqlPersistenceWorkflowInstanceDescription objects and adding the items to the grid then to a dictionary called stateMachineInstances. The variable _swps is a reference to the SqlWorkflowPersistenceService. // Get a collection of all persisted workflows IEnumerable < SqlPersistenceWorkflowIns ...Show All
.NET Development Parameterized queries
When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @Stre ...Show All
SQL Server IIS Internet Info Services
Hi, I'm trying to install SQL Server 2005 Enterprise edition. It is telling me that I don't have IIS installed and that it may cause some problems. I can't find where to install from add/remove components nor can I find it in any of my network connections. Does anyone know where to install this from Thanks in advance. Newbie.......Eric IIS comes with XP Pro, it is not available with XP ...Show All
Game Technologies: DirectX, XNA, XACT, etc. read and write to the mesh vertexbuffer in Directx october version Microsoft.DirectX.dll version 2.0.900
how do i read and write to the mesh vertexbuffer in Directx october version Microsoft.DirectX.dll version 2.0.900 using Microsoft.DirectX.Generic; // old code this code will scale a mesh protected void ScaleMesh() { int numVertices = MyMesh.NumberVertices; EvoMeshTypeVertex[] data = (EvoMeshTypeVertex[])MyMesh.VertexBuffer.Lock(0, typeof (EvoMeshTypeVertex), LockFlags.None, numVertices); for ( int j = 0; j < numVertices ...Show All
Windows Forms Please… urgent help about the BeforeNavigation2
I tried to use this BeforeNavigation2 event and apparently it neither fires in my VB application nor in my C #code! I tried the resolution claimed by Microsoft at: http://support.microsoft.com/default.aspx scid=KB;EN-US;Q311298&ID=KB;EN-US The example in this article is designed ...Show All
Visual Studio VS2003 +IE7 Beta2 crashes...
With IE7 Beta2 installed on my machine, the help system crashes VS2003 frequently when the internal help option is used. DocExplorer crashes sometimes when used as an external viewer. Also, some entries lose all formatting and display as black text on a white background. Is anyone else having these problems I haven't tested this with VS2005. I could uninstall the IE7 beta but I'm hoping there is some way to force DocExplorer to use a diffe ...Show All
