mrayyan's Q&A profile
.NET Development Handling .NET Exceptions in VB6
Hi, I have a question regarding how VB6 handles Exceptions raised from a .NET component. This is the scenario: I have a legacy VB6 app where I am writing some new functionality in a managed assembly and accessing it through COM. Now in the VB6 code is used On Error GoTo extensively and there are places where it is responding to data access errors - the kind that come from a SqlServer stored procedure. Specifially an SP performs a Raiserror(50000,16,1) and the VB6 code (inside the error routine) handles the Err.Number when it is 50000. My .NET component replaces this direct call to the SP but I wanted to keep the VB6 code as it, i.e. still re ...Show All
Visual Studio Express Editions SQL Server express managment console ceased to work
I installed all the 2005 express languages and Visual web too (including SQL server). Then, some days ater, when available i installed the managment console that worked fine. But some days later the managment console ceased toi launch. I only get 2 seconds of hourglas cursor and nothing moore. The only i see in events log is a message about sql browser that tells me suceso: Advertencia Origen del suceso: SQLBrowser Categoria del suceso: Ninguno Id. suceso: 3 Fecha: 04/12/2005 Hora: 01:47:30 a.m. Usuario: No disponible Equipo: TOSHIBA-USER Descripcion: The configuration of the AdminCon ...Show All
Visual Studio 2008 (Pre-release) Changing ProxyGenerationParameters in a Service Reference?
I've added a reference to one of my application using the Add Service Reference... feature (since it's much faster and easier than running svcutil constantly), but I was wondering if I could customize how it generates the proxy in the same manner that I can adjust svcutil. Specifically, I would like it to reference another assembly (like svcutil's /r) and generate async methods (/async). The XML file ServiceName.map seems to have some options in the ProxyGenerationParameters element, but I can't seem to find any documentation on what they are. Thanks for the post and the suggestion. We are looking at ...Show All
Visual C++ How to Convert a UnManaged class to a managed one?Or the oposite?
The project process is: C# -->C++/CLI -->C++'s DLL(Exporting some classes) There is a parameter of Class Type in the DLL. How to use it in C# What will be done in C++/CLI Thank U! Does it just contain data members, or does it also contain code If just data members, then you can look at www.pinvoke.net for examples on how to marshall structs between C# and C++. ...Show All
Visual Studio Team System how to enable project code analysis?
For projects, how do I get the "Code Analysis" tab to appear on the properties We have Team System for Developers installed, and we can use the source control portion and set the policy to do code analysis on check-in, but the actual property to enable the code analysis seems to be missing. Thanks. Hi, cristof, Please, see 'Properties' for the project you want to configure(View -> Property Pages.. menu item). You can find the 'Code Analysis' Tab on the left side of the window. The easiest way to do this is ... select and highlight a project node you want to configure and th ...Show All
Visual Studio Express Editions Problems with controls Position
Hi I am new with VB Express. & for .NET Environment. Please Leave this post if it is silly. I tried to place three buttons in the form. I Placed it, compiled it and ran the form, and it worked properly. After I tried adding another button in the form. I rearranged the buttons to a new location. saved, compiled and when executed, the three was still on the old location , and the new button in the new position. I tried re arranging the again and again . but still the three buttons were on the old location only and the new button in the new location. I also tried to accomodate the new button with the three button itself. I ...Show All
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Develop a console program that calculate and displays the charges for each customer who parked a car in this garage yesterday. ...Show All
Visual C# using "user controls" on webpages
Hello All, I recently made a user control using c#. I want to know if it posible to put it in a webpage. Actually the problem is this user control is not registered on the system. I do not know how can I register this user control. I do not want to use IIS also. To summaries my problem: I want to put a user control in a web page directly. Hi, You can host Windows Forms Control within IE. Here is a sample below and some links that explain the concept Sample with explanation: http://samples.gotdotnet.com/quickstart/winforms/doc/WinFormsIeSourcing.aspx More resources: 1.] http://www.devhood.com/tutorials/tutorial_details.aspx t ...Show All
Visual Basic Updating a Access Database from Visual Basic
Hi. I'm havng trouble with updating my Access database from Visual Basic. There are no problems when populating datasets from the database, but as I try to update it after some changes, nothing happens.. Anyone got an idea Hege Hi Could you paste the code you are using for the update Thanks ...Show All
Visual Studio Express Editions datagridview delete row
I have a datagridview control that is bound to an access database. At the “ BindingNavigatorDeleteItem_Click “, I have some validations. In some situations, as a result of these validations the program has to stop the delete process. How can I stop the delete process In the bindingnavigator's properties set its deleteitem equal to none. This cause the bindingnavigator to use your code instead of the built in code. In the deleteitem click event I would check if it is ok to delete then call the bindingsource's deletecurrent method of delete the record. ...Show All
.NET Development Repeater control and post back
When I use the grid view etc they write nice quick select update commands. If I want to execute an update on a post back I have to write the entire (error prone) select insert command. Is there a way I can do this automatically Thanks Herb Rabe hi, Is this an asp.net question If it is, please post your question to forums.asp.net. You'll have better chance of getting an answer there. hth, Michael Castillones ...Show All
Smart Device Development Visual Studio 2005 Beta 2 - Emulator problem
Hi! I've got a problem and wonder if anyone else has it (and has resolved it ) My problem is as follows .. I create a new device application and try to run in in emulator.. the emulator starts just fine, but it won't connect to it! At all! The error is "Connection failed. The system cannot find the path specified." Thanks in advance, Tadej I had the same problem so from a previous tip for vs.net 2005 beta 1 I added the service Virtual Machine Network Services to my network connection. I still got the same error so then I saw this tip and deleted the CoreCon directory and it worked fine. (I tried removing ...Show All
.NET Development Oracle 10g connectivity with ASP.Net
Hi, I have a wierd problem. I have in my development enviornment, a Windows 2003 Machine installed with Oracle 10g (both DB and Client on the same machine). The same machine is being used as web server. On this I have a ASP.Net Application which connects to an Oracle DB and this application works fine. I had to deploy the same sceanrio for my client. At the client, the testing enviornment has a Windows 2003 OS insatlled with Oracle 10g (both DB and Client on the same machine). This machine is also a Web server which hosts my ASP.Net application. My Problem is when I try to access data ( for instance, say just validate the user nam ...Show All
SQL Server Deleting Databases in SMO for C#
Hey all, I was trying to write a C# function that would delete everything in the old database before doing anything new. The following is the code I tried to use for the deleting part. I tried "Killdatabase" but it doesn't seem to be working. Anyway, is there a way to reference the database in the server and send commands to it The compiler gives me a error message saying that srv.Databases("Name") is wrong because I am using a property as a method. p.s. Someone posted a similar question the other day and they solved it in visual basic by introducing a local variable. It didn't work for me on C#. Many T ...Show All
.NET Development Clearing textboxes
Is it possible, and if so how,to clear every single textbox on a form without having to set every one to textbox.clear when a button is pushed or menu item selected thx Sure, something like this void ClearAllTextboxes(Control parent) { foreach (Control c in parent.Controls) { TextBoxBase t = c as TextBoxBase; if (t != null) t.Clear(); if (c.Controls.Count > 0) ClearAllTextboxes(c); } } ClearAllTextboxes(this); ...Show All
