Alex2200's Q&A profile
Visual Basic Unexpected exception occurred during upgrade engine operation
Hi, During a every conversion of a 'VB6 project' to 'VB 2005 Express', I'm always getting folowing error: --------------------------- Visual Basic Upgrade Wizard error --------------------------- Unexpected exception occurred during upgrade engine operation: Kan niet aan de bron binden (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE)) --------------------------- OK --------------------------- My System : Windows 2000 SP4 (Clean Install) - Visual Basic 2005 Express ed. Any ideas howto resolve this Thx. Hi, I've searched the whole register for 'Wow6432Node', without luck. There are no 'Wow' keys under 'HLKM\Software\' at all. Any other ideas what could causing this ...Show All
Windows Forms Scrollbar scrolling down to make last listbox item visible. ?
I have a list box and once I enter a couple of list items, the scrollbar moves up and the lastest list items are not viewable unless I scroll down. Does anyone have a solution or suggestion on how I can have the scrollbar move in the opposite direction making the lastest list items viewable Thank you... Hmm, check your event handlers for that listbox. Changing the SelectedIndex property causes the SelectIndexChanged event to run which, in turn, may add items, which may cause the event to run, which may add items, ... you get the idea. The generic solution is to add a boolean flag field to your form that indicates that you changed the SelectedIndex property, not the operator... ...Show All
Visual C# How to display MS word document to the print preview control.
Hi, Any one can you advice me how to display the MS word document to the Print preview control and how to get an bitmap image from the document diaplays to the print preview control using print document control. Thanks, I suggest you to start with Tip of the day on DevX (the day is August 7, 1999 language is VB, author - Dino Esposito :) ) I use this actualy in VB applications to achieve this... hope this helps ...Show All
SQL Server Distinct and grouping problem
can someone look at the statement for me, it's not giving me distinct names, SELECT DISTINCT TOP 10 leaderboard.name, Last(leaderboard.date_cr) AS date_cr, Last(leaderboard.handicap) AS handicap, Max(leaderboard.total) AS total, Last(leaderboard.cpsa) AS cpsa, Last(leaderboard.rbss) AS rbss, Max(leaderboard.visible) AS visible, Last(leaderboard.score) AS score FROM leaderboard WHERE (((leaderboard.visible)=True) AND ((leaderboard.rbss)=True)) GROUP BY leaderboard.name, leaderboard.total ORDER BY Max(leaderboard.total) DESC , Last(leaderboard.date_cr); if I take the second grouping off, I get distinct names, but the information isn't correct. i.e. the date, handicap, score, is from different record than the total field. any help mu ...Show All
Visual Basic compacting database
Is there any way to compact an access 03 database using VB I want to compact and repair the database each time my application closes. I would think that it would be something like this: private sub Form_closing(byval sender as object, byval e as system.windows.forms.formclosingeventargs) handles form.closing '--compact and repair the database end sub I just need to know the code that would performt he compact and repair. As always, thank you in advanced for any help offered. I think this is what you need: How to compact a Microsoft Access database by using Visual Basic .NET - http://support.microsoft.com/kb/306287 Or: How To Compact Microsoft Access Database Through ADO - http://support.microsoft.com/default.aspx/kb/230501/ ...Show All
SQL Server Working with local reports .rdl
Hi, I would like to save a report (.rdl) and work offline with it. Is there a way for doing this without having to install reporting services. Like Adam said What do you need to change on the report distributing to other users for what purpose formatting etc... This information can help us help you... ...Show All
SQL Server Location of default instance SQL server 2005 files
I have just installed SQL Server 2005. I was not given a choice during installation (that I remember seeing anyway) about which drive I wanted to place the default SQL instance on. It ended up on C: and I needed it on D:. So my questions are: Is there a way to move it to D: that is easier than the way you had to go about it in SQL 2000 Is there a way to do it during setup so I can avoid this in the future Most people think that SQL Server setup is just about copying files and writing some reg keys. While it's true it's only a small fraction of what setup does. Here is a small sampling of the other things SQL Server setup does. SQL Server setup checks the configuration of ...Show All
Visual C# Convert TimeSpan to format DD:HH:MM:SS without the milliseconds
Hi I have an application that needs to display duration time which is calculated with the TimeSpan class. The representation should be formatted as: D:HH:MM:SS (D=days, HH=hours, MM=minutes, SS=seconds). When applying the ToString method of the object it yields out the exactly what we need (including negative values). Quote from MSDN: "A string that represents the value of this instance. The return value is of the form: [-][d.]hh:mm:ss[.ff] Items in square brackets ([ and ]) are optional, colons and periods (: and.) are literal characters; " The issue is the optional decimal second fraction, we don't need it. Please advice how can we eliminate this milliseconds optional representation. Thanking you in advance Ilan ...Show All
SQL Server Sql Server Help
Hi I have to model the following hierachy in T-SQL, Parameters -passed to -Query -used by> Query -> Source for DataGridView I have looked into Views,Stored procedures and User Defined Functions. I would appreciate your input on this issue. I am confused on this matter. Thanks Ashish Hi Umachandar I am doing a sales program, remodelling their current access program into C#.net using Sql Server 2000. The predicament I am faced with are -- Queries are run on tables and then queries are run on these queries(after passing parameters which corresponds to the values selected by users) and they become source for a DataGridView. -- In some situations there are queries based on 4 or fi ...Show All
Windows Forms DataGridView frustration
I have been searching for the past couple of days for articles on the CheckBox in a DataGridView and I haven't found anything that is remotely helpful (at least to me). I want to allow the user to check the CheckBox in the first cell of a row. Then, when a button is clicked, I want the app t loop thru the rows in the GridView and when a CheckBox has a value of checked, the code will update the values of two other cells in that row. I hit the "last straw" when I went to this site (MSDN) and thought I had finally found a solution. But nope, the C# example shows how to perform a foreach loop on the rows of a DataGridView control http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewrow(VS.80).aspx So ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No news about XNA 2?
It has been a long time (feeling instead of real time) since XNA 1 released. I've been waiting for news about the next big thing. But it seems it's rather quite; no early info is out. What will be the next exciting things I can only guess... 1) Maybe it's an XNA Game Studio Professional which works with VS Pro version. But I'd rather like an XNA SDK to work with any IDE. 2) Maybe it's great enhancement to the framework. Many more D3DX stuff come into XNA, lifting XNA to the same level as MDX/native DX in functionality. Hmm...I hope the functionalities are not dropped just because they're not supported on XBox. JLarkin wrote: XNA GSE has only been out since 1/3 into December in 06. Version 1 isn't to ...Show All
Visual Studio 2008 (Pre-release) WPF Memory Usage
Just wondering.... Is a compiled MSbuild WPF app supposed to be 20mb resident. - I find this tobe ridiculously huge considering all I have on the screen is a window and a button - without any styling. I understand that my exe is only 50Kb -probably cause it's only a script. I mean I added a couple of extra controls and something with a Tab interface with two pages loaded rises upto 50Mb resident. If I could pose to any-one that could inform me of a way of removing the clutter - could I perhaps limit the necessary object instanced to save on runtime memory. ,eg. use onover images as butons instead of the SVG buttons. -I understand that this is not what WPF is supposed to be all about, but If I am to make an app that runs on existing hardwar ...Show All
Visual Studio Express Editions Combo to display name from second table instead of ID from first table
Ok, here's another noob question. I'm a convert from Access/VBA and learning how to work in Visual Basic. Problem : Displaying names and not IDs from member table in a combo box that is referred to by its ID in the Program table . Ok, that needs some more explanation. Here's the setup : Tables: Program Member Times Program is related to Member by its foreign key ProgramMemberID (which is MemberID in the Member table). Times is related to Program by its foreign key TimesProgramID (which is ProgramID in the Program table). So far so good. Now I create a form with the above mentioned tables and relations as its DataSet. Each form entry is one program, that also has one member selected from the Member table and mu ...Show All
Visual Studio textchanged event on texteditor
How can I intercept the event triggered by the texteditor/textbuffer's text changing The VSPackage I'm working on is similar to the SynchronousXmlDesigner sample. If the user changes the xml from the codeview I want to know about it! Implement IVsTextLinesEvents interface which includes a method called: OnChangeLineText This method will be called whenever the text on any line changes. Once you implement this interface you jsut need to hook up the class that implements this interface with your text buffer doing somethign like this: IConnectionPointContainer connptCntr = (IConnectionPointContainer)vsTextLines; Guid riid = typeof(IVsTextLinesEvents).GUID; IConnectionPoint cp; connptCntr.FindConnectio ...Show All
Visual Studio Micorsoft Reporting ReportViewer Click Event
Hi Friends, I am not able to add Click Event of ReportViewer Controls in Winforms. Please help me. I tried the below code. but its not responding to any event. void reportViewer1_Click(object sender, EventArgs e) { MessageBox.Show("SSS"); } void reportViewer1_MouseMove(object sender, MouseEventArgs e) { MessageBox.Show("Move"); } void reportViewer1_MouseClick(object sender, MouseEventArgs e) { MessageBox.Show("SSS"); } void button1_MouseDown(object sender, MouseEventArgs e) { } ...Show All
