Senthil.P's Q&A profile
Visual FoxPro Valid event
Hi, I need to put a validation to a textbox field. I put some code in valid event. But when users enters a wrong value appears a message generated by visual fox pro: "entrada no valida"; How can I disabled this system message and use a messagebox to display my own messages . When user enters a wrong value, I write that valid event return false. Thanks, You may put (berfore or in form init): ON ERROR * and you will never receive a message error from system or use: ON ERROR [ Command ] Command may be a small error handler with a messagebox included... ...Show All
Visual Studio Express Editions Installation of VB Express fails
I am trying to install VB Express on my computer, after deinsatlling all the previous beta versions I followed the advice of first installing framework 2 The installation of VB express crashes at different points (different each time) because of error in writing to directories in C:\Program File\Common Files\Microsoft Shared\.... and the, subdirectories like Help 8, DevHelp, and others.... Can I get a hint on that thanks Have you made sure that you are using an account that has the correct access to the system directories, Also have a look at the setup log files to see what is happening, You can find these under %temp% and they are prefixed with "dd_". Also how are you installing, are you us ...Show All
Windows Forms OracleClient with Clickonce Deployment
I am trying to deploy an application using Clickonce. I previously was using OleDbConnection to connect to an oracle database. However i would like to use the System.Data.OracleClient namespace instead. Upon publishing the application the users get an error when they try to connect to the database. Do i have to install the oracle connectivity files manually on the user's computer Is there a way to distribute the needed files as prerequisites Thanks for your help. In your case I think you just have to install the oracle client software on the client. In the end I used OleDb instead of Oracle to get past my problem. ...Show All
SQL Server Decryption Problem
I wanted to configure Report Server and publish my reports. I configured report server 2005 on win 2003 os. I prepared few reports and deployed them. When I tried to view this report thru ReportServer ( http://localhost/ReportServer ) from my local machine, I got the following error message:- The encrypted value for the "UnattendedExecutionAccount\Password" configuration setting cannot be decrypted. The report server has encountered a configuration error. See the report server log files for more information. Can anyone help me in solving this! I will highly appreciate it. Thanks in advance, hemal I have the same problem having setup and installed the AdventureWorks samples I g ...Show All
Visual Studio Team System Is there any way I can disallow regular user to delete solution projects from TFS Version Control?
I would like my regular developer group to have rights to read, check out, check in and lock the files from TFS Version Control, but I don’t want this regular group to have right to delete the solution projects from TFS Version Control. It looks like to me that Source Control Explorer does not provide the interface to disable project “delete” menu. You're correct, there is no separate 'delete' permission. The only way to stop regular developers from deleting *.sln/*.proj files is to remove the PendChange and/or Checkin permissions on those files...but if you do that, they won't be able to make any changes to them at all. ...Show All
Visual Studio 2008 (Pre-release) Change backcolor of disabld control
Can we change the backcolor of textbox control in Xbap application in framework 3.0 if yes How.... You can change the template in the style, for ex. in the following when the textbox is disabled, background will be yellow and foreground blue < Style x:Key = " Style1 " TargetType = " {x:Type TextBoxBase} " > < Setter Property = " SnapsToDevicePixels " Value = " True " /> < Setter Property = " OverridesDefaultStyle " Value = " True " /> < Setter Property = " KeyboardNavigation.TabNavigation " Value = " None " /> < Setter Property = " FocusVisualStyle " ...Show All
Visual Studio 2008 (Pre-release) Video in 3D environment
Hello, Can Anyone tell me how to display a video inside a viewbox or a viewport3D in XAML code THX Actually it would appear the the Rectangle is not responsible for the reflection. If you look at the MeshGeometry3D declarations you can see that they each have 6 texture coordinates (enough to display the texture once, and once mirrored within a single MeshGeometry). - Doug ...Show All
.NET Development Pragmatics of using IDbComand for direct manipulation of sql statements vs DataTable,DataSet and DataView.
I have a few WindowForm apps which work with my own database where only i have access to. I am doing daily updates where less than 1% of the main table affected and weekend update where I truncate 2 main tables, drop their indexes, completely reload them and rebuild indexes. Naturally I am directly manipulating SqlComand.Text and using SqlComand. ExecuteNonQuery(), SqlComand.Execute Scalar(), SqlComand.Execute Reader(). Does it make sense to use DataTable,DataSet and DataView only in case of small datasets with relatively insignificant updates with multiple users accesses You might want to check out this article for some recommendation of using DataSet: http://msdn2.microsoft.com/en-us/library/8fxztkff.aspx ...Show All
Windows Forms how can I change mouseHoverTime property?
I use the mouseHover event to switch the visibility of two panels. The default delay for this event is too short and the MouseHoverTime property is read-only in SystemInformation. How can i change it You'll find the required declaration at www.pinvoke.net . SPI_SETMOUSEHOVERTIME = &H67. ...Show All
.NET Development How to call a legacy COM collection by IEnumerable interface
I have one legacy COM, after I imported it into one C# project, it expose three function: _NewEnum, item, Count Now I can not walk through its items by foreach( ... in ... ) clause, it seems that _NewEnum function returns one " EnumeratorViewOfEnumVariant " object instead of IEnumerable instance object. How can I deal with this the COM has only one dll file and no TLB/IDL file exist now. I found it is the right DISPID you refered here. please see metadata shown in VS2005 below: [ Guid ( "24A57450-3F6C-11D1-B2C0-00A0C9851B52" )] [ TypeLibType (2)] [ ClassInterface (0)] public class OAdQueryDefsClass : IOAdQueryDefs , OAdQueryDefs { public OAdQueryDefsClass() ...Show All
Game Technologies: DirectX, XNA, XACT, etc. debug drawing
hrmm how are people handling not being able to draw lines Previously i've extensively used line drawing (in opengl at least) for debugging purposes, but now dx10 is all shader driven i cant do this can i what methods are you using for debug drawing currently i load up the opengl version of my engine to see debugging then load up the dx10 version to see what it looks like under dx10, but this is annoying :-/ I am not sure about what API feature you are talking here. Line drawing is still supported as primitive topology ( D3D10_PRIMITIVE_TOPOLOGY_LINELIST and D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP) If you want to see the wireframe of your objects you have to create a second set of rasterizer sta ...Show All
.NET Development Dynamic Definitions
I have data in 2 data stores, a SQL Server and a Visual FoxPro container and I would like to dynamically get the connection and adapter based on a variable. In other words, the following code: if (dataOrigin == "SQL" ) { string strConnection = proProperties.SQLConnection; SqlConnection hConn = new SqlConnection (strConnection); SqlDataAdapter oAdapter = new SqlDataAdapter (lcSQL, hConn); } else { string strConnection = proProperties.VFPConnection; OleDbConnection hConn = new OleDbConnection (strConnection); OleDbDataAdapter oAdapter = new OleDbDataAdapter (lcSQL, hConn); } try { hConn.Open(); } catch ( Exception ex) { return rtnDS; } The com ...Show All
Visual Studio Express Editions Updating Data, take 3...
I am amazed at how difficult it has been trying to figure out how to update data. Please help me!!!!!!!!!!! Here is my attempt to update a data table with an update command: Dim oCon As New OleDb.OleDbConnection( My .Settings.FantasyConnectionString) Dim oCommand As New OleDb.OleDbCommand Dim oAdpt As New OleDbDataAdapter oCon.Open() If IsBench = False Then strSQL = "UPDATE Table1 SET Field1 = 1 WHERE ID = 1" oCommand = New OleDbCommand(strSQL, oCon) oAdpt = New OleDbDataAdapter(oCommand) oAdpt.UpdateCommand = oCommand oAdpt.Update( Me .DataSet1.Table1) dt = me.DataSet1.Table1 I put a break just after the last line up there to see if my changes were made ...Show All
Visual Studio Express Editions Icons from a dll
How can my program get icons from a dll, not neccessarilly shell32.dll. I tried using "extractassociatedicon" function but i want to refer to an icon using an integer, eg (in english) extract icon Number 43 in shell32.dll, then picturebox1.image = icon. How do i write that in vb2005 I usually just grab the icons outside of VB. http://www.jsware.net/jsware/zips/iconex.zip Is a VB script. Just load it and drag the dll/exe etc. into it and it will extract all the icons. If you need help, just open up the script in notepad and read all the options/help. ...Show All
SQL Server Cannot use the special principal 'sa'
Hello, I am starting to use SQL Server 2005. I am having trouble connecting remotely. I tried to enable the 'sa' user and got this error: Cannot use the special principal 'sa' Is the 'sa' user no longer valid for remote connections Thank you Also, after you follow the directions above, you will also need to explicitly enable the sa account as well. In the same place as before, go to Security->Logins. Right-click on the "sa" account, select "Properties". In the list on the left, select "Status" and under "Login" on the right, make sure "Enable" is selected. [edit] - nevermind, looks like you got it working :) Sung ...Show All
