Dundas D's Q&A profile
SQL Server Viewing Foxpro table
I have a view which select a foxpro table which connect with linked server. Once I show the view content, it shows an error 'OLE DB provider 'MSDASQL' for linked server 'ORS' returned data that does not match expected data length for column '[MSDASQL].cprodname'. The (maximum) expected data length is 30, while the returned data length is 60.' Any idea on it Thanks in advance. ...Show All
Windows Forms Problem Setting Control Width in FlowLayoutPanel
I've created a custom UserControl, WidgetFlowLayoutPanel, that inherits the FlowLayoutPanel. Its purpose is to contain one or more custom WidgetControl controls. When a WidgetControl is added to the WidgetFlowLayoutPanel, I want to set WidgetControl.Width to the ClientSize.Width of the WidgetFlowLayoutPanel. I've tried this two different ways, neither of which works: First, I did an override of OnControlAdded , and added... ...Show All
Visual C# SortedList<> best conversion
Hi, what I'm trying to do is cast SortedList<int, int[]> into SortedList<string, int[]>. I have the function of int-string conversion (eg. (int+1).ToString()), so I thought I would be able to use Array.ConvertAll<>, however I haven't managed to do that way on SortedList. The second Idea was casting the list into SortedList<object, int[]> and manually go through the Keys collection, arr.Keys[ i ...Show All
Visual C++ Need simple steps to port vc++6.0 to vc++2005 express
here are the vc++6.0 codes from a graphic training book: MainFrm.h and MainFrm.cpp: // MainFrm.h : interface of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRM_H__58CBEE29_854F_11D8_B394_00E04C391319__INCLUDED_) #define AFX_MAINFRM_H__58CBEE29_854F_11D8_B394_00E04C391319__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class C ...Show All
Visual Studio 2008 (Pre-release) TargetName Does not work for me.
I have problems getting the Targetname property in ANY setter to work (inside a datatemplate). How Do i access specific elements within a datatemplate to change/animate with a animation/property trigger Does that technique allow the use of targetnames in the storyboard ...Show All
Visual Basic C# style documentation in VB
is it possible to do c# style documentation in vb ie: ///<summary> ///This is a class ///</summary> public class . . . as far as I know, you can't do it in vb as it comes out of the box. there are some third party add-ins, i believe - don't ask me where they are.Another thing you don't have in VB is on the fly refactoring. but don't worry, under the hood, they're all the same thing. . .you just have ...Show All
SQL Server Latest RDL Specification?
I read in someone's blog somewhere that the RDL Specification was changing for SSRS 2005 ( http://blogs.msdn.com/gsnowman/archive/2005/10/12/480328.aspx ). I went to the MS Reporting Services website and this version of the specification appears to be old ( http://www.microsoft.com/sql/technologies/reporting/rdlspec.mspx). ; Can someone either confirm or deny that the spec located at http://www.microsoft.com/sql/technologies/reporting ...Show All
SQL Server IReportViewerMessages sample
Hello, Can you give me complete sample of using your own class implemented IReportViewerMessages interface in ASP.NET Application I have problems with this task. Thanks! Samples are provided on MSDN: Winforms: http://msdn2.microsoft.com/en-us/library/ms255036.aspx Webforms: http://msdn2.microsoft.com/en-us/library/ms254250.aspx -- Robert ...Show All
Windows Forms AllowMerge in ToolStrip don't work in .NET Framework v2.0.50727
When I used previous version .NET Framework v2.0 Betta 2 it woked fine. But today I intalled NET Framework v2.0.50727 and in MDI parent window ToolStrip from Child window don't merge! Where the problem Example: using System; using System.Windows.Forms; namespace Bug { public class MainWindow : Form { public MainWindow() { this .IsMdiContainer = true ; ToolStripButton tsb = new Too ...Show All
Visual Studio Express Editions Databases!!!
Hello, I have a problem trying to connect to an Access Database, the problem is that I want to make a working project without thecontrols, I only need the source code to do that. I would like to know about working with databases without using the bindingnavigator, how can i do that. I don't know, please help!!!:D Hey thaks for the reply the message error is this: "Error de sintaxis en la clausula FROM ...Show All
Windows Forms Menu Items query
I'm doing a simple C# program putting a 'check' mark next to a menu item, in VS2003 I would simply use menuItem10.Checked = isBolded ....etc But on VS2005 it won't let me use the same syntax. Do I need to be using ToolStripMenuItem instead of just menuItem, because Intelisence does not seem to recognise menuItem10.Checked Also how do I differentiate between the the menuitem number menuItem10 etc Any ideas would be great! Many t ...Show All
Software Development for Windows Vista Receiving message through window
Hi, I hope I am posting to the right forum. I want to perform some specific task when the system returns from hibernation. I found out from MSDN that I need to make use of the WM_POWERBROADCAST message that is generated. http://msdn.microsoft.com/library/default.asp url=/library/en-us/power/base/wm_powerbroadcast.asp It says that a window receives this message through its WindowProc function which has the following prototype: LRESULT ...Show All
Windows Forms PreferredColumnWidth is overruling my TableStyle in code
I have a VB.Net Windows program, which has a lookup form that appears when the user clicks on a command button. This lookup form gets populated by a dataset created in code during the Page_Load event.Here is how I create and fill the Data Adapter: strSQL = "SELECT DISTINCT ProductCode, ProductName FROM Products" strSQL = strSQL & "WHERE ProductName IS NOT NULL ORDER BY ProductName" MyDataAdapter= New SqlDataAdap ...Show All
Visual C# SetWindowsHookEx
Spent all day get this one working... no luck .. Im trying to hook up to another window using SetWindowsHookEx but it just doesnt want to work from c# .. It doesnt throw an error.. just doesnt hook .. i tried to hook to the c# window and it hooked up.. but I need it to hook to another window .. btw, GetLastError returns no error .. WinAPI .SetWindowsHookEx( WinAPI . HookType .WH_CALLWNDPROC, hook, Marshal .GetHINSTANCE( System.Reflection. A ...Show All
SQL Server Consume HTTP EndPoint
Hello, I have problems consuming webservice, I was following this page. http://codebetter.com/blogs/raymond.lewallen/archive/2005/06/23/65089.aspx but in the intelisense the method returns an array of objects[], So I have a problem with this line. localhost. GetEmployees sd = new localhost. GetEmployees (); sd.Credentials = System.Net. CredentialCache .DefaultCredentials; DataSet ds = ( DataSet )(sd.EmployeeList() ...Show All
