AndyB1979's Q&A profile
.NET Development Help! UnhandledException stuff dont work! .Net is broken (lol)
I have: .Net Framework 1.1.4322 with all patches Visual Studio 2003 a VB.Net Web Application I want to set the unhandled exception page on Page_Load: Me .ErrorPage = AppSettings("ErrorPage") Me .Page.ErrorPage = AppSettings("ErrorPage") OR I want to do: Dim currentDomain As AppDomain = AppDomain.CurrentDomain AddHandler currentDomain.UnhandledException, AddressOf Me .objExceptionPublisher.AppExceptionHandler Well, when I press a b ...Show All
Windows Forms read CSV or an easy way to convert to Access
I have to import files into a database, and i have that capability but i would like to do some checks before this takes place, such as verify that the appropriate columns are present, verify that the number of rows are a certian number,&nb ...Show All
Visual Studio Express Editions Question about variable decleration
This maybe is a stupid question. Sometimes I see variables declared like int _Counter; What is the _ stands for can someone give me an example why you have to declare it like that. Thank you. Hello Oguz, Obviously you can name a variable just about anything you'd like. Some people prefer to use the _ prefix to denote a private variable. This way you know the variable is private in scope just by l ...Show All
Visual C# How to get system icons and descriptions
Hi, Would anyone tell me how to get the system registered icon and description of a file For instance: *.doc (Word document, [MS-Word icon]) with tanks. Yes, I did. But beacuase of 2 reasons i don't like to use them: 1- I prefer a .NET way 2- ExtractAssociatedIconEx() gives me an icon Handle which is not usable in .NET component. I don't know how to use this handle in a list view for example. ...Show All
.NET Development Failed to load viewstate
Hello: Ive got a UserControl (data Entry form). Within it ive got HTML Tables all of which have questions . I want to bring the questions that were missed up on top of the html table. Alls working fine if its an .aspx. The code to do the row manipulation is fione,But i get the above error message (in the subject) when its in a control .ascx which is being loaded in a page. Pls advise how to tackle this situation. Thank you Is your user c ...Show All
Windows Forms How do I fix InvalidDeploymentException (ManifestLoad)?
I'm trying to get ClickOnce working, but I'm getting the error below associated with one of the assemblies that my application is dependent on. I used the Publish wizard to post it to a web site. I've tried to read through the documentation and can't find anything that tells me what I'm doing wrong. If someone knows what I'm doing wrong, or a good reference in the documentation that is relevant, I'd appreciate it. Thanks. ERROR DETAILS Follow ...Show All
Software Development for Windows Vista accessing member variables
I have researched this topic on here and have found some useful information but nothing directly related to exactly what I am doing. It is simple really, I have a private member variable declared similar to this ... namespace myWorkflowLib { public sealed partial class myWorkflow : SequentialWorkflowActivity { private string svId; ... There is a whileActivity that contains a sequenceActivity which contains ...Show All
SQL Server SQL Server Mobile tutorial and getting proper mobile DB installation
Hi folks, I'm new to Windows Mobile progamming, and new to this forum. Apologies in advance if I'm asking a boneheaded question, but I've done searches and can't find anything directly applicable to my problem. I'm currently walking through the published MS tutorial in setting up an SQL Server 2005 Mobile application that subscribes to a publication on SQL Server 2005 to exchange information. I've gotten almost all the way through... successful ...Show All
SQL Server "product level is insufficient" message during flat file import
I'm using the import wizard to create a new table from a flat file source. The table gets created but no data gets copied. What's wrong Here's the report: Operation stopped... - Initializing Data Flow Task (Success) - Initializing Connections (Success) - Setting SQL Command (Success) - Setting Source Connection (Success) - Setting Destination Connection (Success) - Validating (Error) &nbs ...Show All
Visual Studio adding submenus
i'm trying to add the same command to two different menus (a custom submenu on the menu bar and into the solution explorer context menu). the first add goes through just fine. the second call to Command.AddControl(CommandBar, int) crashes with a "Catastrophic Failure". as usefull as that error message is, can anyone give me a bit more info Catastrophic Failure is the error message returned when a crash is found, usually because a N ...Show All
Smart Device Development "ActiveSync cannot recognize this device" error....
When I connect to the emulator and cradle it,I get the following error: " Microsoft ActiveSync cannot recognize this device for one of two reasons: ... ... " It was ok before but doesnt work now...what is the reason Hello, Please try clear save state and then connect to device emulator again and then try cradling the emulator. Hope this helps. -Thanks, Mohit ...Show All
Windows Forms Jumbling 30 picture boxes - challenge to you all
A small challenge for those interested: Who can create the easiest way of jumbling 30 (small 76,72) picture boxes in a 6X5 layout at the press of 'button1' so that they all swap position and this process could be done again and again to swap pictures around randomly each time Picture boxes are named. pic1, pic2, pic3 .... pic30 and the positions of these picture boxes from left to right are as follows 12,79 94,79 178,79 261,7 ...Show All
Visual Studio 2008 (Pre-release) How Can I Benefit From LINQ?
Hi! I'm modest C# programmer. What does LINQ has to offer me people like me. Any guidance would highly appreciated. Thanks Alternatively (not that Miha's suggestion isn't good -- it's recommended), here's a short answer: To date, there's been no good, unified, low-maintainance way of searching querying graphs of data -- whether objects, lists, or trees. Linq is a pattern which attempts (rather successfully, I think) to do so, a ...Show All
SQL Server Handling Poison Messages Sample Code in BOL wrong?
In the "Example: Detecting a Poison Message" section, it reads: This Transact-SQL example shows a simple, stateless service that includes logic for handling poison messages. Before the stored procedure receives a message, the procedure saves the transaction. When the procedure cannot process a message, the procedure rolls the transaction back to the save point. The partial rollback returns the message to the queue while continuing to hold a lo ...Show All
Visual Basic How to Use MailMessage to Send MHTML?
I'm attempting to send an MHMTL document out as an email and am having issues getting it to do so. What I've done is created a windows service to poll reporting services for a "Web Archive" report (read in as a string or byte array via System.Net.WebClient) that I then want to send out to a set of people via System.Net.Mail.MailMessage. I'm aware that reporting services has subscriptions built in, but the situation is a little more c ...Show All
