NB2006's Q&A profile
Software Development for Windows Vista web service - response/fault
I got a workflow that is activated by a WebServiceInput, calls some other WebServices during it's runtime and responds with a WebServiceOutput to the original caller - I guess a most common scenario for these kind of web services. But how do I handle errors in here The web services invoked can under circumstances return a SOAP exception containing a detailed error description. I do not want to handle these exceptions in my workflow, but just ...Show All
Visual C# Windows Forms application works fine on XP; falls over on Windows 2000
We have a C# Windows Forms application using the December 2005 CAB that I can't get to run on some of our customers Windows 2000 machines. The error is 'Exception has been thrown by the target of an invocation' falling over at the System.RutimeTypeHandle.CreateInstance method call. On the xp machines when we are running the Client we only install the Dot Net framework 2.0 and the client runs with no problems. Any ideas where we shoul ...Show All
Windows Forms Graphics.drawString() looks terrible
I have SmoothingMode set to AntiAlias... all the lines and polygons come out nice and smooth, but the text is not antialiased, it looks terrible. I'm creating a new bitmap, and getting the graphics object off that. I have noticed that if you load&nb ...Show All
SQL Server Converting Dates as paramters
Hey guys, Hoping i can get some help with this one.. Problem: Data source has a datetime format as YYYYMMDD I would like to have my users enter a date in the format of DD/MM/YYYY and in the background have it convert to the YYYYMMDD so i can filter my data according to the data ANy ideas on how i will do this thanks scotty Use Format function and convert the date parameter to required format. Format(Pa ...Show All
Visual C# Label Justify text
hi i was wondering how can i create a label with the text justified .... i need this becasue im making my own messagebox control, so the text is variable and i need to justify it so it looks pretty, does anybody have an idea im using window application with .NET 2.0 ,,,, mig16 You can make a labels text centred, but I don't think you can make it justified. It's a property on the label control. Of course, you nee ...Show All
SQL Server Conversation Group Question
I'm trying to use Service Broker to relate a set of messages together and was trying to use a related conversation group id. From what I can gather (looking at other threads) I can't use this..... Basically, my ideas was.... I have several tables being updated within a database transaction. These tables will have triggers associated with them which send a message to a SB queue detailing the table that has been affected and the key information ...Show All
Visual Studio 2008 (Pre-release) PeerNet support for server OSs?
What's the story on getting PeerNet support for server operating systems like Windows Server 2003 The more I look at PeerNet, the more I like it--not for consumer Napster type applications, but as a great way to provide publish-subscribe communications for the enterprise. But if it's only supported for client OSs, that's going to be a setback. Is there (or will there be) a download of PeerNet available for server OSs David David, ...Show All
Visual Studio Express Editions SubString Count routine
Is there a simple way to count the occurences of a string within a string or stringbuilder maxlines=bigstring.count(",") Something like that or do I have to write my own function Or is there a function out there that someone can point me to Thanks. You're going to have to write this one. :( The good news is that VB and Dot Net has incredibly powerful string handling functions. ...Show All
Smart Device Development ControlBox
How would I execute code when the user clicks the controlbox (little x in the upper-right corner). for an example, if i wanted to display a form that prompts im the user really wants to exit when the x is pressed; or if i wanted to end the program instead of just closing the form when its pressed Well, you haven't specified a language. Are you using the compact framework, or is this in the wrong forum The e ...Show All
Visual Basic Need help to troubleshoot if statement error message
Hello, I'm trying to validate user input in a text box with an IF statement and I want to limit the number of characters to 60 or less. Initially this seemed to be working fine, but now I get the error message no matter what I enter in the text box: Private Function GetLine( ByRef validLine As Boolean ) As Boolean validLine = False 'check to see if the user has entered anything in the txt box If Not (txtEnter ...Show All
Visual Basic Object reference not set to an instance of an object.
I'm receiving this error: "Exception Details: System.NullReferenceException: Object reference not set to an instance of an object." In regards to this line of my code: ElseIf Request.Cookies("userid").Value = "" Then and if I comment out that line it also gives me the error in regards to this line: UserID = Request.Cookies("userid").Value Here is my code behind: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Partial Class ...Show All
.NET Development an datetime problem, please have a look:)
I have a simple select command issuse, I am using sqlExpress 2005 server, when I try to use following select count(*) command: SqlConnection1.Open(); DateTime dt = DateTime.Today; SqlCommand cmd1 = new SqlCommand("SELECT count(*) FROM ClinicTimeTable WHERE ClinicDate >= '" + dt + "' ", SqlConnection1); int count = (int)cmd1.ExecuteScalar(); SqlConnection1.Close(); MessageBox.Show(count.ToString()); count a ...Show All
Visual Basic stop watch using vb.net 2005
how can i create a stop watch using vb.net 2005 i am performing a data extraction job using windows forms and want to display time elapsed on the form. how can i do it Thanks Dear Lot i suggest to use a Timer control from the toolbox and display it on a label to the user ...Show All
Visual Basic Relase the Fix for Visual Basic Compiler Error &H8013141e&
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to res ...Show All
.NET Development How to expose native function to C# COM class?
Here is my situation. I have a C# class library with interfaces and classes which is used by a native C++ application with no ATL. I import the tlb and create objects, very simple stuff. I need some mechanism to implement callback functions, events, connection points, or what ever. The end result must be that a function in the native C++ application can be called from the C# class. Can someone please explain what the best and ...Show All
