jcb1269's Q&A profile
Visual Studio Express Editions combobox problem
Hi. I want to assign values from one column in database to combobox. My database has two columns. That's the code that I'm using: ComboBox1.DataSource = MaintenanceDatabaseDataSet.MachineTable.Machine_nameColumn However it generates error: Complex DataBinding accepts as a data source either an IList or an IListSource. what should I do You probably set the property to column object. Use column name instead, either by hardcoding it ("Machine_name") or by accessing through data table's column name property (MaintenanceDatabaseDataSet.MachineTable.Machine_nameColumn). Andrej ...Show All
Software Development for Windows Vista VMR9 and DirectX 9
Hi, I tried to use VRM9 with DirectX on Win32 proyect. In microsoft documentation they specified that the qedit.h will not support the Direct3d 7 or later. Is there any other way to use vmr9 - I got the following errors when i included d3d9.h, qedit.h and vmr9.h - Ther code works fine wihtout this includes, because i'm not implement yet, any code about VRM9. c:\dxsdk\include\vmr9.h(188) : error C2143: syntax error : missing ';' before '*' c:\dxsdk\include\vmr9.h(188) : error C2501: 'IDirect3DSurface9' : missing storage-class or type specifiers c:\dxsdk\include\vmr9.h(188) : error C2501: 'lpSurf' : missing storage-class or type specifiers c:\dxsdk\include\vmr9.h(358) : error C2146: syntax error : missing ';' before id ...Show All
.NET Development problem converting string to datetime datatype
This code has been working for 2-3 mnths; now when we have moved both the site and the backend to a new server it throws this error... "Conversion from string "29/02/07" to type 'Date' is not valid." Dim username As String Dim reqrddate As Date = Format(CDate(txtrequireddate.Text), "dd MMM yyyy").ToString Dim nhi As String Dim eventnum As Integer Dim accnum As String = "" Dim reqstdate As String = txtrequestdate.Text Dim delivery As String '= "" Dim ward As String = txtward.Text Dim i As Integer Dim Item As String = Nothing Dim j As Integer Dim acclength As Integer <--more code --> Dim sql As String = "insert into requests ( [User_name ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA with Windows Forms - Game does not stay active
I programmed my own FormsGraphicsComponent like this: public class FormsGraphicsComponent : IGraphicsDeviceService , IGraphicsDeviceManager , IDisposable { public FormsGraphicsComponent( Game game, IntPtr renderWindowHandle) { ... } ... } Then used a standard windows form as a base, placed a Panel on it, that I exposed as a property of the form. Starting with almost a standard game, I modified the main program to this: MainForm form = new MainForm (); using (MyGame game = new MyGame(form.RenderPanel)) { game.Begin(); form.Game = game; form.Show(); while (form.Created) { Application .DoEvents(); &nb ...Show All
Visual C++ mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
I create a project by 'ATL Project' wizard. Then I set 'Dynamic-link library(DLL)', 'Allow merging of proxy/stub code' and 'Support MFC'. I don't add any code in it. I can build it first time. But after close it and reload it, I get a link error: mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) My VS is: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41984 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0000007-41984 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 77626-009-0000007-41984 Microsoft Visual C ...Show All
Visual C# Layered transparency
Hi, Are there any way to do the following: I have a form with two PictureBox components. Both pictureboxes have a semitransparent png image as their image property so that you can see the form background through each of the pictureboxes. My problem is when the PictureBoxes overlap. Beneath the topmost PictureBox I can only see the background of the form, the overlapped part of the other PictureBox is not visible (It's not that easy to explain, but I can provide a image if my explanation is not clear). I need this to work with other components that PictureBoxes also, but this makes for an easier explanation of this problem. Thanks in advance. Oyvind FYI, In the early days of Windows, cont ...Show All
Visual Studio 2008 (Pre-release) FlowDocumentReader IsHyphenationEnabled and non-English fonts
I am developing an application that allows comparative analysis of the same text in multiple languages. I have two FlowDocumentReader controls side-by-side in a two column grid. The control that shows the text in English is properly hyphenating the words and breaking only on spaces. However, the control that shows the text in a non-English font does not hyphenate or break on spaces. The font I am testing with is the Symbol font for displaying Greek text. I have an XML file that contains the actual text and convert it to a FlowDocument representation through an XSLT. (This is almost exactly the way the "Rich Reading Experiences" HOL does it.) When I convert the XML to the FlowDocument, I explicitly set the IsHyphenationEnabled ...Show All
SQL Server Including SQL Server Express as a nested MSI install
I'm working on an MSI-based install that installs a suite of applications. One of the applications requires SQL Server 2005 Express to be installed or already on the machine, but if the user doesn't want that app installed, I don't want to have to bother with the SQL Server issue; however, if that app is to be installed and SQL Server is not already installed, I want to be able to have it installed automatically during our install in order to make it easier for our end users. The obvious answer to this is to launch the SQL Server Express install as a nested MSI install at the appropriate point in our install. Since the SQL Server install is so complex, I was wondering if this would work if I were to launch the SQL Server install's setup.ex ...Show All
Visual Basic non-modal error
hello, I have a C# application that calls a VB form in a referenced DLL. The problem is, when I try to run the application on its own, I get an error about how non-modal forms can't be displayed. However, if I have the VB file open and run the dll, the error doesn't come up. Does anyone know what could cause this to happen thanks for any help I'm using frmConnect.Show vbModal, Me to show the form. The error I'm getting is "Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page. The error in C# comes when it tries to do something with the object that cannot connect because the form's error stopped it. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animation Tutorial
Is there an update on when the sample code for animation will be released Is it something that will be released in a week or so, or will it be more than a month I know there have already been some questions about this, but I would like to know how soon I can progress on my project. Thanks. leclerc9 wrote: In the mean time, I started a codeplex project for an animation component: http://www.codeplex.com/animationcomponents The component is only in the alpha stage and the current release has a bug with specular lighting (fixed in the source code though), so I can't recommend using it in a serious project yet, but the next release should correctly animate most .X files (current release can only do matr ...Show All
Visual Studio Tools for Office Outlook Addin On Windows 2000 Terminal Server
I created an outlook 2003 addin and it works on my machine and other users machine. But when I tried to install it on the Windows 2000 Terminal server it is not working. Actually, addin is not loading. I do not see any registry entries as well as I do not see addin under add/remove programs. But the .msi says after installationi addin sucessfully installed. But I can see that the addin .dll is installed under local drive. The necessary prerequisites are installed on the machine. (1) .NET Framework 2.0 (2) VSTO 2005 Runtime I have used SetSecurity project as well as custom actions to make sure that addin has been granted full trust. The Custom action data has been changed to load addin for allUsers. Any idea why addin is not ...Show All
SQL Server Whats better for Ad Hoc reporting, Relational or AS Cube
My company is trying to decide which one would be better, creating a report model off of relational tables, or using an AS cube. right now, I use Visual studio for report development. but a big part for the users is Ad-hoc reporting. What are the ups and downs of both (AS cube and Relational table, report model (Ad-hoc). And what would you suggest Any info would be helpful. Thanks! Hi, This question is difficult to answer without knowing the type of database you are connecting to. Cubes give advantages when you need to have a lot of drill down functionality and when a lot of calculations needs to be done. This is because cubes contain precalculated values so that when the user performs a query, not all ...Show All
Visual Studio Tools for Office Will VSTO 3.0 managed global add-ins support...
...interaction with the document actions pane in Office (Word) 2003 We want to create a managed add-in for Word that will support both Word 2003 and 2007. Ideally, we'd like to create a core assembly that contains the main functionality, and then create a separate DLLs for 2003 and 2007 that implement UI specific stuff (i.e., menu code for 2003, riboon code for 2007, etc). With 2007, we'll be taking advantage of custom task panes. We'd like to have the same sort of interaction with the actions pane in 2003 (just like we do now with VSTO 2.0 document level customizations). Are there any plans to support add-in level interaction with the actions pane in 2003 with the release of VSTO 3.0 Thanks! I think there was a mention ...Show All
Visual Studio Team System System.MissingMethodException
Hi all, I have a problem with vb.net but i think it is a problem with visual studios rather than teh code itself. I am inheriting AxSHDocVw.AxWebBrowser and trying to use the Navigate method. Th code works fine but i am getting a missingmethodexception as shown below An unhandled exception of type 'System.MissingMethodException' occurred in MTController.exe Additional information: Method not found: Void AxSHDocVw.AxWebBrowser.Navigate(System.String). The code used to work and only stopped working recently. I have researched into why and it appears it could have been beacuse of a windows update - is this possible and is there a way to fix the problem Thanks is advance Don't worry, prob ...Show All
SQL Server intermittent replication issue
Hello, I currently run a nightly replication from a windows server 2003 machine with sql server 2000 sp3 to a windows 2003 server machine with sql server 2005 sp1. I run a snapshot replication as merge is not supported from 2000 to 2005. 2 out 5 snapshots weekly fail with the following error: 2006-08-09 17:00:06.97 Message Code: 10054 2006-08-09 17:00:06.97 2006-08-09 17:00:06.97 [0%] The replication agent had encountered an exception. 2006-08-09 17:00:06.97 Source: Replication 2006-08-09 17:00:06.97 Exception Type: Microsoft.SqlServer.Replication.ConnectionFailureException 2006-08-09 17:00:06.97 Exception Message: TCP Provider: An existing connection was forcibly closed by the remote host. I have setup the sql server 2005 age ...Show All
