Macca's Q&A profile
Visual Basic VB6 to VB.NET Migration
Hi, I am trying to migrate VB code to VB.Net. At the time of migrating a form(the VB project contains so many Forms)it is showing following error. Run-time error'-2147467262(80004002)': System Error &H80004002(-2147467262). No such interface supported Can anybody tell me where exactly the problem is... Thanks, Ravi Varma. Sup Ravi... When you start the wizard, does it migrate any other forms I had a proble ...Show All
Visual Studio How to set compartment's default expanded property to false?
The compartmet's are expanded by default when the shape is added to the diagram How can I set the default behaviour to collapsed Thanks. You can collapse just the compartments within a Compartment shape on its creation with the following code customization: namespace CompanyName.ProjectName.Language27.Designer { # region Using directives using System; using System.Collections.Gen ...Show All
.NET Development How do I temporary override .NET system security configuration?
I have an application installed on my local disk. This application runs with FullTrust privileges. I'm trying to load an assembly giving it FullTrust (same privileges of the loader assembly). My assembly to load is located on a network share. I'm actually using this code but I get a security exception: An exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll and wasn't handled in the appdomain it was thrown from Additional ...Show All
Windows Forms Suspending Paint Event
In the paint event of a control I'm using at work, we end up drawing some rectangles with GDI+ calls. Unfortunately, each time the rectangle gets drawn the paint event ends up firing again, thus it get's repainted 20 times. Is there a way ...Show All
Visual Basic Serial input trigger control mscomm
I want to hook up a 8 bit encoder to my serial cable and then thru vb be able to monitor the 8 seperate inputs on the encoder as off or on and then have events triggered by those inputs turning on. Does anyone know what I need for code to do this or how I can do it Thanks, Ryan If you want to use the Serial Port http://msdn2.microsoft.com/en-us/library/30swa673(VS.80).aspx Should detail the SerialPo ...Show All
.NET Development Integration with Active Directory
Sample application: EmployeeList Requirements: This application presents a list of employees to a user. The list should only display those employees that the user has access to. The employee data is stored in an Employees table in a database. Administrators must be able to define which users can access each employee record by specifying active directory users and groups. The application must be able to handle up to 100,000 ...Show All
Visual Basic MSScriptcontrol And VB 2005
When i try to do an addobject through the Microsoft Scriptcontrol like... Scriptcontrol1.addobject("Form",Me) Scriptcontrol1.addobject("Form",Me,True) Scriptcontrol1.addobject("Form",ctype(Me,Form),True) it just makes an "Specified cast is not valid" i would realy appreciate some help i fell like i have tryed everything posible to make it work Thanks it worked fine! Does anyone here have insight ...Show All
Visual C# Paint
You know in common paint programs, there is a white like square where you do all of your drawings and editing and so forth, I'm new at most of this so I was wondering what that white screen was called and how to make one and also to make the tools, I realize that is a big question that would take a lot of time and probably a lot of code also but I was just curious because I would like to create a sort of Paint program, just a basic one until I g ...Show All
Windows Forms Delete multiple directory in file system
Is there any way we can delete multiple directory at the same time without cleaning the children I have over 200 folders on the project and I don't really want go one by one to delete the content inside the folder before deleting the folder itself. When I'm trying to delete it is saying: Cannot delete folder, folder is not empty or it might contain excluded files, which are not shown. I can't beleive I will need to do one by one.... ple ...Show All
SQL Server Can't put an array into an object variable
Hi, I have the following code in a script task: Dim items(0) As String ReDim items(response.HierarchyItems.Length - 1) For Each item In response.HierarchyItems items(count) = item.AreaId count += 1 Next Dts.Variables( "User::AssetIdMaster" ).Value = items Which works fine. Then I have this Private Structure ...Show All
SQL Server how to get rid of old records
I have a patient reviewing database Master: ID, Name, Address, etc. Detail: ID, Interviewing date, symptom, etc. And I collect info monthly. When I want to count how many patients have suffered from the symptom and classify them by period, which I only need the latest info, lots of old records of the same ID emerges. I am new in TSQL and have trouble in retrieving the up-to-date info. PL Help me! Thank u. ...Show All
Visual Studio ReportViewer error
I have SQL Server 2005 and Reporting Services installed on my development machine. I have successfully created and deployed a report using Visual Studio 2005, and I've viewed it using both URL access and the SOAP web service. I just tried adding a ReportViewer control to an ASP.NET web form on the local IIS server, but after I enter the parameters and click the "View Report" button I get the following message: Unable to connect to the remo ...Show All
.NET Development DataGridView + DataAdapter Edit Weirdness
Hello, I originally posted this thread in another forum but someone suggested I repost it here: I have a DataGridView setup with a DataAdapter. There are a few fields on a couple of rows that I update programatically which causes the DataAdapter to want to update the data in the database every time I run the DataAdapter's Update method. Is there anyway to set the status of the row to NOT update the database (at least until a user e ...Show All
.NET Development Time Verification
Hi. I am developing a VB .Net app for computer rentals, which are saved in an access db. Four of my fields are Date, StartTime, EndDate and PC. My problem is verifying if the StartTime is bigger than the EndTime. It all works ok, but when I enter per example from 23:00 to 01:00, 1 isn't bigger than 23... But this is correct. Is there anyway to ccorrect this problem Thanks, Pedro Querido 01:00 is less than 23:00 if they are o ...Show All
SQL Server Custom Report Manager
Hi, We are deploying reporting services solution for a client but we do not want to use the out of the box report manager and still need all the functionality like subscription, my reports, security management etc of the report manager. Has anyone done something like this or is there a way we can twik the report manager to give our own flavor because the report manager does not have any source code Thanks ...Show All
