Answer Questions
daname Fatalexecutionengineerror was detected
Hi I am trying to save the chart(MS chart control 6.0) as an image(bitmap) file. Its working fine in Visual Studio 2003 but when I try to run the same program in VS 2005 the following error is thrown up at runtime. Fatalexecutionengineerror was detected The runtime has encountered a fatal error. The address of the error was at 0x7a005c3d, on thread 0xfdc. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. Here is the sample code that i am working with. Private Sub Button1_Click( ByVal sender As System.Object, ByVa ...Show All
emad roohi ActiveX component can't create object
I have an ActiveX dll written in VB6. When using the dll in a VB.Net Windows application, it works fine. When using it in an Web application I get the above error; e.g.: Dim myObject As Ns.Object = New Ns.Object() Dim result as String = myObject.Test() '--ActiveX component can't create object I have tried (based on Google and other searches): Giving anyone and everyone Full Control in the directory with the ActiveX dll Updating the IIS configuration to all operations in the virtual directory Creating a .Net dll to wrap the ActiveX dll and installing the dll and interops into the GAC. I have seen this question posted elsewhere but I haven't seen a solution posted. Any thots pjp ...Show All
Joel McCormick How do I use Team Build/Team Explorer
The long and short of the whole problem is this: I can't find Team Build. I have Visual Studio 2005 Team Suite installed. Team System is all there. I need to be able to set up an automated build, involving several different build projects, need support for local builds, and I need to have logging done by Team Build (most importantly it must record any errors encountered during the build process down to the line of code). But I can't do any of that because I have been unable to find a way to open Team build, or access its functionality through Visual Studio 2005. Despite the fact that it shows up as an installed component in Add/Remove programs, has it's own directory full of installed components, and can detect already installed components ...Show All
gobby74 Error connecting to SQL Server 2005 local instance using VB 2005 app
I am trying to create a Visual Basic 2005 app and connecting it to SQL Server 2005 Express Edition (bundled with VB 2005) but i am getting errors I just want to know if there is any configuration that i need to perform on SQL server before attempting to connect VB 2005 App with SQL Server 2005 My sql server 2005 configuration is default.. that is i am only listening to local connection (remote connections, piped and tcp/ip connections are disabled). I am running 512 MB ram, 160 GB hard drive, Windows XP SP2 with all the updates Please help.. Asim Zeeshan The server is started, i have confirmed it from SERVICES... still same error msg. Well i figured out the problem... When you install VS 2005 with SQL ...Show All
Thomas Hirte Please help
Write a program to provide information on the height of a ball thrown straight up into the air. The program should request the initial height, h feet, and the initial velocity, v feet per second, as input. The four options to be provided by buttons are as follows: a) Determine the maximum height of the ball. Note: the ball will reach its max height after v/32 seconds b) Determine approx. when the ball will hit the ground. Hint: calculate the height after every .1 second and observe when the height is no longer a positive number c) Display a table showing the height of the ball every quarter second for give seconds or until it hits the ground. d) Quit The formula for the height of the ball after ...Show All
HForcelledo OpenFileDialog
I am using a OpenFileDialog and i have the InitialDirectory set to a drive available on my network but I want to build in a catch so that if someone doesn't have access to the network drive then it will default to their "My Documents" folder. How would I go about this rslaise wrote: Hello, on a similar topic. I want to use OpenFileDialog to view file paths in addition to the 'My Docuuments' folder. Maybe the root directory of the device. I'm not so creative as to figure out how to. Any suggestions. To view and select file paths you would probably want to use the FolderBrowserDialog rather than the OpenFileDialog. Hello, on a similar topic. I want to use OpenFileDialog to v ...Show All
ofer ebert output array to excel
I need to output an array (datarow.getchildrows) to excel. Dim XL As Microsoft.Office.Interop.Excel.Application Dim xlwb As Microsoft.Office.Interop.Excel.Workbook Dim xlsheet As Microsoft.Office.Interop.Excel.Worksheet XL = New Microsoft.Office.Interop.Excel.Application xlwb = XL.Workbooks.Open( "C:\tryout.xls" ) xlsheet = xlwb.Worksheets(1) XL.Visible = True Try Dim ds As DataSet = RcsDataSet Dim pPK As DataColumn = ds.Tables( "Customers" ).Columns( "CustomerID" ) Dim cFK As DataColumn = ds.Tables( "InvoiceDetails" ).Columns( "CustomerID" ) ds.Relations.Add( "customerinvoicedetails" , pPK, cFK) Dim rel As ...Show All
Ion101 about socket's accept method in vb 2003?
hello, method accept of class socket in vs 2003 will block execution. how do i set up a time out please...... thx a lot. and let me try it first...... Hi I'm not american either and your english is fine. Maybe something along the following lines is what you are looking for ..... Lets create a new class that will abstract all the logic away for us ...... we need a module level variable for the listening socket. Private ReadOnly mListener As Net.Sockets.Socket Now, in our ctor we need to set up the listening side of our server. mListener = New Net.Sockets.Socket(Net.Sockets.AddressFamily.InterNetwork, Net.Sockets.SocketType.Stream, Net.Sockets.ProtocolType.Tcp) mListener.Bind( New Net.IPEndPo ...Show All
Alex2200 YOU ARE A GENIEUS--Reed Kimble --THANK YOU SO MUCH Just a Minor Ajustment to make it work MAKE E.CANCEL = FALSE ---
I have this code whre I want to open a new window within browser1 of my form8 Instead I loose control of the browser and by loosing my session Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow e.Cancel = True Form8.Show() 'Form8.WebBrowser1.Name = what goes here I am not sure what to do here 'Here I am forcing the opening of this specific website/I want to open whatever url is clicked Form8.WebBrowser1.Navigate( http://www.accountingonline.us/invoice/index.php page=open ) ' Form8.WebBrowser1.Navigate(sender) this did not work End Sub This one was kinda tricky, but I think I've got a ro ...Show All
rivi replacement for quick-console
After some time thinking I was crazy because I couldn't show a quick console I did some searching of posts to find out that quick console has bee removed in 2005 :(. It seems that a few people have asked what to do in its absence but have received no answer. I will see if I have better luck, because I really need its functionality. Without quick-console, what is the easiest way to quickly display text for debugging purposes without interrupting program flow I have tried using system.diagnostics.debugger, but have had no success and the docs aren't so great. SteveJ Thanks to both of you for the help. This will save me a lot of time. I was faced with the thought of having to build my own thread-safe dialog for troublesho ...Show All
Cla82 SQL STATEMENT Select, where * problem
I have what appears to be a simple query but I have having major problems The Query that works is: SELECT * FROM Mutual WHERE (Ticker = 'axiax') When I change it to the following it does not return any results: SELECT * FROM Mutual WHERE (Ticker = 'ax*') I think I have tried every combination of "" and spaces and can't get anything to work. I am running Visual Basic 2005 Express Edition, SQL Server 2005 Express, and it is a Access 2003 database (.mdb) Please help. I guess it's just that different data providers require different handling... So depending which database are you working with, things can be a little different. Andrej Beautiful, perfect thanks! I was ...Show All
xlordt How to upddate a progress bar while parsing a .csv file
I want to update a progress bar while parsing a .csv file. My problem is that I don't know how many records the file contains in advance. So, I can't set the maximum propety to to the number of records and increment the value by one after processing each record. I can determine the file size in bytes, but then I don't know the byte size of each record. So, I cant increment the value porperty with the record size after each record. I dont really want to determine each field size and add that to the value propoerty, because it seems so inefficient. The file is quite large and speed is an issue. Is there a better way (BTW, if i say I don't know ... I realy mean I don't know how to ... .) Thanks in advance. Have a look ...Show All
Norbert.Bender VS 2005 Macro to change control names
Hi All, Does someone have a VS 2005 Macro to change control names in design view e.g Change tbxMaterialCode to tbxResourceCode, tbxMaterialId to tbxResourceId. I've never done a VS 2005 macro before, and am looking for a head start i.e. examples on how to reference controls etc. Is this possible All of the examples that I have seen (very few) seem to be talking about Code view, not design view. Thanks, Carl Thanks for that DMan1, I'd forgotten about the designer - it's not as obvious in 2005 as in 2003. I guess that the find/replace is the only way. I've had problems with very simple manual editing of the machine generated code, and I was a bit scared of running a macro over it. Regards, Carl ...Show All
hsm13 Open a form and show a particular record
Hi, I have a stored procedure that returns a record dependant on a value sent to it. I have created a form that shows the detail view of the Dataset from this stored procedure. How / where do I send the form the parameter (from another other form) so that the form opens on the right record Ta. John Sorry, should have told to some of the other options! You could create a property on the datadisplay form and set that property from the main form. The set statement of the property might take care of executing the fill using the parameter. You could also have the main form call the fill method of the tableadapter (providing it is accessible) and pass the value at that time. You've ...Show All
Pratyush [OTP] VBA: Projects, objects and modules.
I started learning VBA in MS Word today. I have some programming experience in C++ and Java. I am trying to understand how the environment is structured and what Projects, Objects and Modules represent. For example I recorded a few macros using the macro recorder and then opened the VB Editor to see what was created. I notice that under "Project" (which represents the entire document I assume) are 3 folders. One is named "Microsoft Word Objects". Within this folder is what looks like a file named "This Document". What does "This Document" represent What is the difference between "This Document" and the "Project" Also under "Project" is a folder named "Modules". Within this folder is what looks li ...Show All
