Kenny Voon's Q&A profile
.NET Development server error when using Parameters.Add function...any suggestions?
Hello, I'm a bit new to DB programming and the .NET framework but I think I am picking it up fast. I've been handed an application that has been working for some time now until recently when the system was upgraded to the latest version of IBM DB2. I've tracked the error down to a line of code and was hoping that someone could give me some suggestions as to what may be the problem. I have a function that takes an Object ByVal. In the function all I am doing is checking to see if the value passed in is 0 or not and then adding parameters to a DB2Command class variable. This function is called twice. I'll try to outline the code and remo ...Show All
SQL Server Backup and Restore Databases Through XML in SQL Express 2005
Can we backup to XML file and restore from XML file in SQL Express 2005 Thanks in advance. No, you can't. Best regards, Eugene Kogan, Technical Lead, Microsoft SQL Server Engine --- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Studio Express Editions Making DLLs with Visual C++ 2005 Express Edition
Hello, I've been coding in C++ for long using other compilers. But I have recently installed Visual C++ 2005 Express Edition and I would like to know how to compile a DLL using multiple CPP and H files with this program. Hello Maikel H and welcome to Visual C++ 2005 Express. I assume you're already quite proficient with making DLLs, and just need to know what extra steps are required for VC++2005. Before continuing, you should install the Platform SDK . Important Microsoft headers such as windows.h, winnt.h, commctrl.h, winuser.h are no longer included in the installation of Visual C++ (well, they aren't ...Show All
Windows Forms Ticker Control
Hi, I am developing a Ticker Control. It is not a smooth ticker but rather a vertical scrolling ticker. Let's assume the control fills the form and the form is as follows (assume that '.' = space): --------------------------------------------------------- | 10:00 Item 1 .. Item 2 .. Item 3 .. Item 4 .......| | 10:01 Item 5 .. Item 6 .. Item 7 ..&nbs ...Show All
Windows Forms attempt to center a picturebox
I did several searches before asking this elementary question. attempt to center a picturebox I was doing it the old fashioned way, as we learned in vb 4+ This was just the beginning of my code. I will eventually make it dynamic, loading the images one by one. Dim fx As Integer = Me.Width Dim fy As Integer = Me.Height Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim p1x As Integer = Me.P1.Width Dim p1y As Integer = Me.P1.Height ...Show All
SQL Server Why can't I see my Web Developer Express database from SQL Server Management Studio Express?
Hi, I'm completely new to SQL Server and ASP.NET, so please bear with me on my learning curve! I've installed Visual Web Developer Express and SQL Server Express (on the same PC). I then used Web Developer Express to successfully create a new database with a couple of tables in it. So far so good. I then installed SQL Server Management Studio Express on the same PC and tried to connect to my new database. The connection to the SQL Server instance appears to work OK (using Windows Authentication) but I can't see the database I previously created. All I can see are the System Databases. Does anyone know what the solution might be ...Show All
.NET Development generating a form using a schema definition
Hi, This maybe impossible, but I was wondering if it is possible to dynamically generate a form using a schema definition Thanks in advance! That looks promising, although I only gave it a quick scan. http://windowsforms.net/articles/wfml.aspx Actually I gave it a better look there and correct me if I'm wrong but is it already apart of .NET framework v2.0 ...Show All
Visual C# synchronizing picture.Left and progressBar value
I have this progressbar and a running mouse gif under it. I want whenever a green sqare appears in the progressBar, the mouse to take its value and stay exaxtly under it. The problem is that sometimes the progressBar graphical presentation increments itself by 1 sqare, sometimes by 2.Somehow the graphical representation of the progressBar leaves my mouse image behind. Is there any way I can synchronize my pictureBox movement to the right and the value of the progressBar I tried using picturebox.Left = progressbar.Value But it is not giving me the desired result. Hope you can help me! PictureBox.Left = p ...Show All
Visual Studio Strongly named objects
Hi all, Has anyone tried to use strongly named objects (signed with a key) as data sources for Crystal Reports I am doing that and I run into a load exception because my objects are signed with a key and apparently Crystal Reports is unable to load them. Is there a way to get around this without having to unsign my objects Thanks. ...Show All
Software Development for Windows Vista persistence service
Hello! I'm new with Workflow Foundation and I have some questions about Persistence Service. I want to develop an application that will be crash proof...so I guess I need to use Persistence Service(crash proof=if my machine for one reason or another fails, I want that each unfinished workflow to resume) I would also like to know the status of each running workflow...how can I do that How can I use persistence service to save each step in a workflow Can anyone tell me how this service and tracking service do function Hi, You want to do two different things here : The persistence service ...Show All
Visual Studio Team System Mechanism to see Work Item Queries actual SQl Statement
Is there a mechanism to see Work Item Queries actual SQL statement without needing to do a witexport There's no mechanism to see the SQL statements corresponding to a work item query. However, if you are referring to the WIQL (or Work Item Query Language) for a query, you can see this by doing a Save As... from VS on the query. Save the query as a .WIQ file and open the file in notepad to see the XML with the embedded WIQL query. To learn more about WIQL, download the VS 2005 SDK October edition from http://affiliate.vsipmembers.com/affiliate/downloadfiles.aspx and view the Team System section. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA on Windows XP ??
Hi people. This is my first post in MS forums, so please, don't make me alone in this thread :) I found on Wikipedia that "The XNA Framework is based on the .NET Framework 2.0. It will also include a version of the Common Language Runtime, which is optimized for gaming requirements. The runtime will be available for both Windows XP, Windows Vista and the Xbox 360." Does it mean, and it is true, that some version of XNA will be made for Windows XP I know that DX10 is Vista only, but I was hoping that some version of XNA, (I assume XNA will have DX9 support too ) would be running on Windows XP too, so my ...Show All
Visual Studio 2008 (Pre-release) textbox properties
Hello how can you make when you tab to a textbox that the text in that textbox is automatically selected(highlighted) thanks in advance ...Show All
Visual C# Replacing Nulls in database table
Hello, I experience the following problem: I have a data table in the database, which includes float and smalldatetime columns. These columns can accept nulls. However when I load the table to the application and fill it to datagrid I do not want the user to see that annoying word "null" in the table. I tried to replace it with empty string but it is impossible since the type of the field is double or datetime. Does anybody know how to solve this problem Thanks. You can set the DataGridColumnStyle.NullText to set the text that is displayed when the column contains a null reference. DataGrid ...Show All
SQL Server How to retrieve data from query and link the data to a data number?
i'm doing a project on SQL Server 2005, i'm stack in searching the data and can't link the data in the data number.. can someone help mi with the programming code as i can search for the words in the table but i can't link with the data number.. What's wrong with this It will return all the data you could hope for. Do you want to generate new IDs, unique to the query and not in the DB ...Show All
