HarryKye's Q&A profile
Windows Forms DataGridViewColumn.Format
Hi I have DataGridView control where I bind DataSource from one DataSet. Data in DataGridView can be modified. All Columns are Strings however in one column a user should input only digits. When I set Format property of this column to "N" it doesn't work. User still can input e.g. letters. What can I do in order to allow users put only digits in particular column I do not want to create my own class. I hope it is not the only solution. Thanks for hepl in advance E. Hi, You can check out the Int32.TryParse Method (String, NumberStyles, IFormatProvider, Int32) method. It can help to ensure that your numbers conform to the right format. What you can do is place a code ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Starting 3D from 2D
I come from a 2D background and figure that XNA is a perfect chance to start making some 3D programs, one problem: the math and terms involved are becoming too much for me. I'm looking for a resource to simplifiy the 3D process, I went through the nice video tutorials and got my ships moving and rotating; even got them rotating/moving on all three axis (axi ), albeit with some weird behavior. Terrain terrorifies me, I have no idea on any of it. I'm looking more so for explanation rather then code, I followed reimer's tutorials but I found them incredibly confusing; they seem more angled towards someone to play with the code rather then learn from the explanations. Anyway, please if you have any resources share'em with me because I'm con ...Show All
Visual Studio Express Editions Automatically enter Text from one Text box to another as you type.
I would like to setup a Text Box that pulls the Textbox.text from 2 separte text boxes and then displays them in this textbox. For Example... TextBox1.Text = "Jimmy" TextBox2.Text = "Taylor" TextBox3.Text = "Jimmy Taylor" But the kicker is I want it to add the "J" in TextBox3 as I type it in TextBox1 ect. I tried a number of places but I am not sure how to describe this and I am not coming up with very good examples. Thanks in advance for any help. Overwrite the TextChanged event like so: Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged TextBox3.Text = TextBox1.Text + " " ...Show All
Software Development for Windows Vista taskbar tooltips - please fix!
In Windows XP, if you put the taskbar at the top of your screen, as I do, the taskbar button tooltips appear on the taskbar and obscure the buttons - very annoying! Of course, if the taskbar is at the bottom of the screen you don't have this problem, the tooltips appear above the bar, no matter where the exact position of the pointer is. The fix is to always display the tooltip below the taskbar if the bar is at the top of the screen. I like the feel of Windows XP, and I'll probably like Windows Vista too, but this minor point about taskbar tooltips is actually quite important because it affects my experience constantly. Thank you! Taskbar tooltips are a lot different in Windows Vista: you get live ...Show All
SQL Server Help to write query...
Hi ! There is one table tCustomers. It has following columns: ID, Name, Code... By the mistake in this table has appeared incorrect records (duplicates). How can I write the query to find them I tried: Select c.ID ID1,s.ID ID2, c.NAME NAME1,s.NAME NAME2, c.Code C1, s.Code C2, From tCustomers c, tCustomers s where c.Code=s.Code and c.ID <> s.ID But the result is not that I expected Hi, If only the ID field constain duplicates, you can use the following query: SELECT tCustomers.ID, tCustomers.Name, tCustomers.Code FROM tCustomers WHERE (((tCustomers.ID) In (SELECT [ID] FROM [tCustomers] GROUP BY [ID] HAVING Count(*)>1 ))) ORDER BY tCustomers.ID; If all the fields are duplicated, use the followi ...Show All
Visual C# Command Line arguments make me say arrg
Issue I have found a scenario where the command line arguments recieved by an application will fail and three arguments will be concatenated into two... Say one has written a console application and duitfully checks the arguments passed in. One of the arguments targets a path instance. Now the user who is tech savy knows that he/she must enclose in quotes any path that has a space in it or it will be perceived as two seperate arguments. So c:\Program Files needs to be "C:\Program Files" and passed in accordingly. But what happens when a user, say leaves a \ on the end of his/her path Such as "C:\Temp\Dir1\" I will tell you, instead of interpreting it as a literal, the command line parser interprets it as an escape . ...Show All
Visual C# Combobox inside datagridview
Hello. I have an application that is reading data form Database, and my user has to bee able to change ordrestatus in my datagrid view. that is why I thought it would be easiest for me to implement An combobox where that status cell is. I need help with: I use stored procedures to display my information in datagridview. How can I change so only one cell in my gridview is combobox and its source is One table from database In the background I can run 3 storedprocedures thar run depending on the value in that comboxcell...But problem is how to make it a combobox cell with source from my database... Thanks guys Take a look at this article : How to add selection controls to your Dat ...Show All
Smart Device Development Add VScrollbar To Panel
Hello Experts, I have a Panel for which I have specified a dimension. In runtime, I am adding child panels within this panel. I have also added a vertical scrollbar to this panel. All I want is to scroll through the contents of the parent panel, such that it displays the generated child panels. Right now, I am able to render the child panels within the parent panel but can't make it scroll. How to do this I cant find any panel property which can be used to repaint the visible area of the panel while using the scrollbar so that it can be made to scroll. Please help me as soon as possible. I am badly stuck. To earn points, you can also post your answer at: http://www.experts-exchange.com/Programming/Wireless_Programming/Pocket_PCs_All/Q_2 ...Show All
SQL Server Dynamic Logging Properties in MS SQL DTS packages
Since I can't seem tofind the Microsoft SQL 2000 forum, I will post this here: I currently have logging enable on several of my packages. However, we are still in development of our packages and are reaching upwards of 100 and logging will eventually need to be active on all of them. In production, there will still be a development server and a production server, both with different server names and user id/pwd. I am looking for a way to dynamically change the logon information for the logging so that we do not have to have someone go through and manually change the options. I have tried using Dynamic Properties Task, but this only works on the 2nd run of the package. ----- As a second question: can anyone explai ...Show All
SQL Server Using SSIS packages to process SQL Server 2000 OLAP Objects
Can a SSIS server, i.e. staging server be used to create packages that update SQL Server 2000 Analysis services objects on another server running SQL server 2000 OLAP It appears that the OLAP connection manager ion SSIS supports only connections (and thus updates) to 2005 OLAP objects. I work for a company that has a huge investment in a 3rd party DW that uses Analysis Services 2000. the DW tool vendor will not support an upgrade to SSAS 2005. We wish to extend the DW from other data sources. My thought was to use a staging server with SSIS, used solely as the ETL tool for all new development (thus no more DTS development), and to update the sql server 2000 operational data st ...Show All
Windows Search Technologies Can Not install Windows Desktop Search on Windows XP service pack2
I am trying to install Windows Desktop Search and keep getting an error Windows Desktop Search Setup could not backup registry key HKLM\SOFTWARE\CLASSES\INTERFACE......" if I select ignor it continues for about 3 more keys and then aborts. Make sure that you are installing the latest version of WDS 3.0 from: http://support.microsoft.com/ kbid=917013 . Also you might want to try to update permission of those registries to full access as described in http://support.microsoft.com/kB/919163 . Let me know if this solves your problem, Thanks. David Peng (MSFT) ...Show All
Visual Studio File conversion help
Hello all, I currently use visual studio and would like to know if it is possible to create an application as a ".exe" file. Whenever i publish my work on visual studio it always creates whatever i have done as a ".application" file. If you can help me with this i would greatly appreciate it as this problem is causing me quite alot of trouble. Thank you :0) ...Show All
SQL Server SQL Server Remote Connection
I am trying to connect to the SQL Server 2000 installed on Windows 2003 Server using VB .Net SQL Connection Class. I am getting an error Error: An error has occured while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Since you are using SQL Server 2000 additional possibility encountered frequently is firewall, specifically Windows firewall on the server machine. If that's the case you can grant a firewall exception either to the SQL Server process or to the TCP port yo ...Show All
SharePoint Products and Technologies SharePoint error when editing documents with custom content types
Hi, We have these weird problems with standard MOSS workflows. We've created some publishing pages in the Pages document library using custom content types with al sort of site columns (about 20+). Now, when we attach a standard approval workflow to the list and start it manually, everything is ok and the workflow is started. When we want to edit the document however, we check it out and click the edit page or edit properties. If we do this, sharepoint returns an error: Value cannot be null. Parameter name: s Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Sy ...Show All
Windows Search Technologies Writing Protocol Handlers using Managed Code
Is there a sample showing how to add your own store (essentially write your own protocol handler) with .NET (I am aware that there might be issues with different .NET Fx versions...) Thanks, Neno Neno, take a look here: http://www.codeproject.com/aspnet/AspxProtocol.asp ...Show All
