Dale Washlake's Q&A profile
Windows Forms How can I capture mouse click on a component at design time?
I have a standard component, I’ve place it on a form, and it appears as any other component under the form, I would like to capture the mouse clicks on this component, is it possible And how can I implement that in the designer Thank you the help I am spending this week and the next week to update the SmartLibrary; the nex ...Show All
Visual Studio Express Editions .Net framework 2.0 question (noob question be warned!)
Hi all, I am actually considering downloading and installing the Visual Studio Express 2005 suite of programs, as I am already been working with .Net for the last 2 years, and the 2005 specs look enticing. I'm a student, and a junior developer for the firm that I work for, and both at school and at work we are still using .Net 2003. Now my question is: Will installing the .NET framework 2.0 (which is required for operating VS.NET 2005) affect my VS.NET 2003 I'm asking this as lately I've been checking the MSDN help for the .NET 2.0, and a whole load of new functionalities seem to have been implemented, some of which were not available with b ...Show All
Windows Forms Overwriting BindingNavigator AddNew
In a form, I want particular things to happen on the form when the user presses the AddNew button in the BindingNavigator . So I want to call my own code in the bindingNavigatorAddNewItem.Click. I put myBindingSource.AddNew in the bindingNavigatorAddNewItem_Click, followed by additional code. When I click the AddNew button I immediately get an error telling me that one of the columns in the table can't be null. Joe Stegman said " The BindingNavigator AddNew button calls BindingSource.AddNew() - there's nothing more to it." That's what I thought all along. So why is the data being validated before I enter anything if I make the ca ...Show All
SQL Server How to change a field's type?
Hi, How could I change the field type through T-SQL I have tried Using the ALTER: ALTER TABLE tblName ALTER COLUMN myID int It didn't work... And also, how could you rename a fieldname cheers, Paul June A. Domag Hi, Sad to say, it didn't work. I searched the BOL of SQLServerCE and the IDENTITY_INSERT switch isn't available. Guess, I'll have to find other means to solve this problem... Thanks a lot Tyler Free and Eisa for your ideas and comments... cheers, Paul June A. Domag ...Show All
Visual C++ Winlogon notifications. Please Help !!
Hello, I'm trying to implement winlogon notifications dll on my windows server 2003 enterprise. I can't make it working. What I'm sure about that winlogon.exe loads Winlogon_Events.dll ( executes DllMain ), I checked that using process explorer and some debug code. But Lock event doesn't fire!!! What i'm doing wrong Please help. Source code ( Winlogon_Events.cpp ): **************************************************************************************************************** int WINAPI DllMain( HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved ) { switch ( dwReason ) {   ...Show All
SQL Server Detach sql2000 msde database using SMO.
Hello, I am trying to detach a database from an instance of msde 2000 using smo. When I call the Server.DetachDatabase function using my valid server object I get the following error. "This method or property is accessible only while working against SQL Server 2005 or later." Does anyone know if it is possible to detach a msde database using the .net smo objects. What I am trying to do is detach the database and then re-atach to an instance of sqlexpress. I thought about just stopping the server and copying the mdf file to a new location but I cannot figure out how to sto ...Show All
Visual Studio Express Editions renameing Visual basic 2005 express projects
Could some one please explain to me how to rename a project in visual basic 2005 express, after it has been saved . I can create and save the original project but after closing it and then reopening it and making changes I can't save it with a new name. What I would like to do is create a project called boilerplate that I can have most of the controls ,textboxes and whatevers that I will use most of the time on the boilerplate form then open it and save it with a new name so that I don't have to start all over again. As it is now I have to start all over from the beginning every time I want to make a change and rena ...Show All
Visual Studio Visual Studio 2005 - Help through proxy server
just started using Visual studio 2005 Annoyingly the help defaults to using online content which doesn't work through an authenticating proxy. ( the type of web access that 90% of all corporate enviornments will have ) so you are forced to trawl the web looking for solutions First impressions 1. The install can be messy if you you want business intelligence also .. and undocumented 2. The interface is slow ( on a fast PC ) 3. Shared datasources do not seem to work for reporting services 4. Once you create a project the interface gives you NO way to delete one.. if you try to overwrite .. it simply says one exists already. So you have to use ...Show All
.NET Development How to use a C#.NET DLL in ASP?
Hi, I've build a DLL to comunicate with ADSI, and it works fine under the .NET environment. My next step was using it with ASP, but I can't register the DLL using regsvr32. It says that the DllRegisterServer entry point was not found. I've tried to use regasm, but it give me the following output: Microsoft (R) .NET Framework Assembly Registration Utility 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. Todos os direitos reservados. Aviso de RegAsm: Nenhum tipo foi registrado Wich, translating to english, it is something like RegAsm Warning: No type was registered. I want to use it like an "usual" COM ...Show All
Visual C++ Weird Debug-Exceptions window question
I want to turn off Native Run-Time Checks whilst debugging using VS 2005. In VS 2003, I would go to Debug-Exceptions, and then for Native Run-Time Checks, make the relevant choices as to turning them on and off. Now in VS2005, I am having some problems. In the same window (Debug-Exceptions), some computers in my network have two columns of check boxes - Thrown and UserHandled Exceptions (the second column being the one you could use to control this feature), and some do not show the second column. How do I get those that are not displaying the second column (User Handled) to indeed do so Thank you very much ...Show All
.NET Development C# How to use Progess bar for writing data to file with multiply lengths
I am trying to figure out how to use a progress bar inside of a loop. Inside this loop a line is written to a text file and I just want to have the progess bar show the progress of this loop so they have some idea how long it will take. But the problem is each time this loop executes a differnt number lines is written to this text file. So Im wondering how could I use the progress bar in this situation Thanks. I didnt really get to test it out a hole lot but from what I did get to it seems it was between 500 - 600. ...Show All
Visual Studio 2008 (Pre-release) Hashtable serialization
Hi, I would like to serialize Hashtable, that is filled with instances of custom made class. Below is an example. // custom made class implementation [DataContract] public class Song { [DataMember] public int ID; [DataMember] public string Artist; [DataMember] public string Song; public Song() {} public Song(int ID, string Artist, string Song) { this.ID = ID; this.Artist = Artist; this.Song = Song; } } // serivce implementation [ServiceOperation] Hashtable MediaCatalogue() { Hashtable HT = new Hash ...Show All
Visual Basic Tableadapter error handling
I have a sinking feeling I'm not going to like the answer to this one. In short, I'm inserting a large number of rows into a database. I want to ignore any primary key violation errors (discard the row) and continue the tableAdapter.Update operation. Is there a way to do this I am using a strongly typed dataset in VS2005. Thanks, Bob ...omg Coach24 I soooooo owe you a beer... Thanks for posting this! ...Show All
Visual Basic Error with my project
Hi! I have nearly formated my pc. And i copyed my project. Then i installed VS.2005 on my new formatted pc and tryed to continiue with my project. I open the project and try to open my main .vb file. Then it comes an error opening the .vb file... I cant tell exactly what it stands right now, because im not on my computer... I write what the error contained later today. If someone understands this without explaining what the error said, it have been nice! Ok the error is: There is no editor available for 'D:\Projects\MyProject\Main.vb Make sure the application for the file type (.vb) is installed. This is weird. It happend on my other c ...Show All
Visual C# Reading Emails using POP3 Server .
hello all, I am searching for a atricle i.e Reading Emails from POP3 Server. any body give me good article or link for this. wll be appriciated. Hi, There are simply too many places to look at. There are really two different problems: the first is to download the email and manage the mailbox (see what messages you have there, delete what you already downloaded, etc). For this, I think the best source of information is still the 10-years old RFC 1939 you can download from www.ietf.org . It describes in detail the protocol and is very easy to follow and implement (after all, you only need a TcpClient on port 110 and ...Show All
