CharlieD's Q&A profile
Visual J# Array of ArrayLists
In the program I am creating I have an array of arrraylists declared as such: ArrayList[] arr = new ArrayList[2]; This compiles with no problem by itself. Then later in the program I have the following code: arr[0].add("Test"); This compiles no problem as well. It isn't till I actually activate the code does it finally throw an error. The error reads NullReferenceException was unhandled: Object reference not set to an insta ...Show All
.NET Development How to access objects from another thread...
I modified this example to output to a textbox on a windows form. So instead of Console.WriteLine I used Textbox1.AppendText. Unfortuantely this won't work being that async sockets work in a seperate thread and I get an exception stating the control "textbox1" cannot be accessed from a thread other than the one it was created on. How do I take the data from the receiv ...Show All
Visual C# textbox event handler?
i have a window form which have 3 textbox. I would like to ask for the coding when the user click the third textbox, it will sum up the value of textbox1 and textbox2 and display the total in textbox3. What event handler can be used in this case You can use Click event for your textbox3. Code inside the click event would look something like: double value1, value2; if (!double.TryParse(textBox1.Text, ...Show All
Windows Forms cancel DataGridView RowLeave Event?
I want to force the user not to change a row. Can I do this inside the RowLeave Event...Setting the position there seems not to work. Maybe I can workaround the state of a row eg. new,dirty,... Thanks Peter Thanks for your answer! Maybe this is correct in another situation. When I catch this event I receive an: System.Data.NoNullAllowedException before this Event is triggered. I have a datagridview and a ...Show All
Visual Studio Visual Studio 2005 Beta 2 Breaks MSDN/HTMLHelp2 Searching!
The Problem: * After installing Visual Studio 2005 Beta 2, HTMLHelp searches do not work correctly. This affects existing installations of the MSDN library (which uses Document Explorer 7) as well as the Visual Studio 2005 Beta 2 MSDN library (which uses Document Explorer 8). Both of those use HTML Help 2, which leads me to believe that it is the HTML Help 2 that is somehow broken. * The Symptoms: (1) Go to the "Look For" search field. (2) T ...Show All
Visual C++ need help with c++
hi, im having trouble with getting a certain program to work. Its probably a really simple problem, but i just can't get it to work! I'll seriously pay someone like $5 to do this in c++ by tonight =D just give me yer paypal! white a program for... (Airline Reservations System) A small airline has just purchased a computer for its new automated reservations system. You have been asked to program the new system. You are to write a program to as ...Show All
SQL Server DBMail permission error
I am using DBMail to send an email notification at the completion of service broker process and have been getting the following security error: Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1 EXECUTE permission denied on object 'sp_send_dbmail', database 'msdb', schema 'dbo'. I have given the userID used to run the Service Broker, databasemailuserrole in msdb as per instruction in the msdb. I have also given it execute p ...Show All
Windows Forms Looking for a good ASP .Net book
Hello, I have been searching for a good book to learn ASP .NET using C# and VS .Net. One book I came across was "Asp .Net Unleashed, Second Edition". The reviews at Amazon said it was a very good book but many people complained that&n ...Show All
Visual Studio Team System Problem with SharePoint when creating a project in TFS beta3
Hi, After installation of TFS beta3 and Sharepoint 2.0SP1 I have problems with accessing Sharepoint. During installation there were no problems, as I have reinstalled twice, I especially looked at the sharepoint part. At the end of sharepoint installation the "Configure Administrative..." opens at it should. After installation of TFS, I try to access the Sharepoint Central Administration from Administrative tools. I'm logged in as TFSSETUP (with ...Show All
Windows Forms Application Specific File Extentsions
A lot of applications I use create file extensions that are application specific. That is, other programs cannot access the file. How would I go about creating my own application specific file extensions. Thanks in advance. B Rad Hey ...Show All
Visual Studio Team System Reporting Services not started or not installed message stops Setup
I can't get TFS setup to recognize that reporting services is installed and running. A couple of variables: I am using a named instance of April CTP. Is TFS install on a named instance possible with beta2 I changed the reporting services virtual directory names using the rs config manager to remove the instance name ($YUKON). I've since tried changing them back to include the instance name and even reinstalling rs thinking I s ...Show All
SQL Server using SQL for small apps
I’ve been programming against Access databases under VB6 for a while, but since everyone is talking about moving to the latest and greatest of .NET, SQL, etc. I’ve been trying to learn these new technologies, however, I’m unsure if they’re right for me. My database programming has been on a small scale, using databases for personal applications, for example, the way Adobe Photoshop Album uses an MDB file to keep track of all th ...Show All
Windows Forms Making child controls of UserControl editable
I have a UserControl subclass, CompanyInfo, with various controls (Labels and Textboxes) on it. When I'm designing this class, I can edit the controls, move them around etc., which is fine. However, when I build CompanyInfo into a DLL, then add it to the Toolbox and drop it onto a form in the Designer, I can no longer edit and move the various controls that CompanyInfo encapsulates. I have tried setting these controls to public access, but that ...Show All
Visual C# get duration form WMA & WMV
hi all, how can I get the meta data for wma or wmv files like (duration). can any one help thanks Hi This blog entry should answer your question: http://blogs.msdn.com/tims/articles/100730.aspx Michael ...Show All
Visual Studio 2008 (Pre-release) Animate background color on all text boxes ?
Hi, I finally started my WPF project today, and it's been interesting. Right now, I want to animate all textboxes in my form on mouse enter and mouse leave events. In the book I bought, this sort of thing should do it: <Style TargetType="{x:TextBox}"> <EventTrigger RoutedEvent="TextBox.MouseEnter"> <BeginStoryboard> <Storyboard> <ColorAnimation Storyboard.TargetNam ...Show All
