AllanJ's Q&A profile
Windows Forms form close reason
Hi! I would like my form to be hidden when the use clicks on the window close button (the X button on the top-right corner). The e.CloseReason does not provide a value to determine that this particular button is the reason that is closing the form. This was very simple in VB6: Private Sub Form_QueryUnload(Cancel As Integer , UnloadMode As Integer ) If UnloadMode = vbFormControlMenu Then   ...Show All
Visual Studio Express Editions newbie to c++
when i first started programming i wanted to learn c++ so i started reading up on it(this was about 2 years ago). i learned the basics and then i got pulled into the java programming language. though i was new to the java programming language, suns site had a tutorial section(that starts after the basics) and explains advanced features like GUIs and whatnot... im actually quite good in java now and ive hit a problem that i know i can fix in c++. ...Show All
Visual C++ TargetInvocationException
Hello, my application was compiled and linked without errors but when I ran it I got the following message: --------------------------- Microsoft Visual Studio --------------------------- An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll Additional Information: Exception has been thrown by the target of an invocation. --------------------------- Break Continue --------------------- ...Show All
Visual Studio Addins and Macros missing from VS2005 after Visual Studio 2005 SDK install
I installed the latest (RTM) bits of VS2005 and then installed the Visual Studio 2005 SDK. Since that time (I think) no matter what AddIn I install or create it only shows up in the Experimental environment, never in the 'normal' one. Macros also started behaving strangely: the 'samples' macro project is missing from the 'normal' environment but is present in the Experimental one. I fixed this by exporting and then importing the appropriate regi ...Show All
Windows Forms Form lost objects in design window
I am working on a windows application in Visual C# 2005 Express Edition. So far every thing has worked OK, but today when I open the project the cs [Design] window only shows an empty form with no controls on it. All the system generated code in xxx.Designer.cs and other files is there, and build (F6) reports no errors. But running the application just shows an empty form like the design window. Any explanation for this and any tricks to get ...Show All
SQL Server time out expired error
Hi all, I am so glad to find this discussion forums for SQL NS. I’m badly stuck and need help. Background: I am currently working on an VB.NET + ASP.NET + SQL 2000 + SQL Notification Services based application. I maintain / enhance it. The application uses Notification Services to send automated emails to the users. (Event based subscriptions only). My application has two notification services running, one of them started failing about a week b ...Show All
Visual Studio Team System Using Custom Fields from a Custom Work Item Type in Reports?
I was playing with reporting tool and noticed that I did not see any of the custom fields I added to the new work item type I created called feature.xml (DelekVision.Feature.xxxx). It looks like there is something that needs to be done ‘build data sources ’ Such that the reporting tool lists all of the entities/fields. Any ideas Thanks Scott One possible reason, may be that the reportable element in ...Show All
Visual FoxPro table buffering mode
On a statement like this: IF NOT initTableEmpty TABLEUPDATE () ENDIF I get an error: This operation requires table to be opened in buffering mode . SQLBUFFERING is set to ON before the table is opened. It does not help. Actually the error happens once in a while for no reason. I cannot understand what triggers it. Most of the time the statement works. The USE command does seem to have no option for buffering either. Is any h ...Show All
Smart Device Development Print the routing table? Is there software similar to cmd: route print?
Anyone have any suggestions here I need software with similar functionality to route print and I've tried VXUtil with no luck. Thanks! See the following post on places where you can post non VS 2005 questions http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=223605&SiteID=1 ...Show All
Visual FoxPro Return values from SQL Serv
Please let me know: 1. Can I receive a return value from SQL Server (Ex: when I update some data to SQL Server by using a SQL's stored procedure, the return of the stored procedure is whether the primary key exits or not) 2. How can I do that Thanks a lots. Chinh Nguyen 1) yes.. 2)http://portal.dfpug.de/dFPUG/Dokumente/Partner/Hentzenwerke/ClientServer%20Apps%20with%20VFP%20and%20SQL%20Server%2 ...Show All
SQL Server Database tables etc vanishing?
Hi I create a database in SQL Express using the Microsoft SQL Server Management Studio Express, with tables etc. I connect to it from my VB Express .NET application. Any changes I make, like adding a new table from VB .NET Express causes all the tables to 'vanish' when viewing the Database in the Microsoft SQL Server Management Studio Express, the database is still listed there. Does anyone know why Also it cannot be edited there again it ...Show All
SQL Server Login failed for user ''. The user is not associated with a trusted SQL Server connection.
Hi all, Can someone explain it to me why I am getting the following error when I try to connect SQL server express with .NET 2.0 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated wi ...Show All
Windows Forms Help dealing with nulls
I was interested in the proper way to deal with null objects. I have a Contact Class that contains an Email Collection class. In certain circumstances the email collection will contain no emails. When i do something like: lvContact.SubItems.Add(contact.Emails[0].EmailAddress); ...Show All
Visual Basic How can I change the language or design of default download form !!
I'm using clickonce technology, about the download form ... (the form which comes if there is a new version) how Can I change the culture or the design at all my defualt language is Arabic .. and it is english !! how Can I change it to Arabic You can check the Arabic langpack 2.0 on http://www.microsoft.com/downloads/details.aspx familyid=39C8B63B-F64B-4B68-A774-B64ED0C32AE7&displaylang=en . Select Arabic from the list of ...Show All
Smart Device Development infrared!
Hi. I want to be able to send data (hex codes or whatever) using the infrared ports. I have imported the System.Net.Irda reference and able to access the IR classes. However, I do not wish to connect to a device but rather send data. The device I am sending data to will be a dumb device really, just as a "reciever"... this can be a remote control recieving box or a TV IR reciever for example. IS it possible to do this how I cannot seem to find a ...Show All
