frk's Q&A profile
Visual Basic Capitalize a string
I want to ask if is there any way to capitalize an entire string, so that a string looking like QweRtY can be automatically changed into QWERTY Thanks a lot!! http://msdn2.microsoft.com/en-us/library/53e2ew8a.aspx Seems like next time i should searcha bit more before posting... Thanks anyway ;) ...Show All
Windows Forms LinkLabel - AutoEllipsis on and automatic tooltip
I wanted someone to confirm this for me before I go nuts. If I put a LinkLabel on a standard form, set AutoEllipsis to true and AutoSize to false and make the Text of the LinkLabel larger than the supplied region, the text is shown with an ellipsis and a tooltip will automatically appear with the entire text when the pointer is over the control. If I do the same on a UserControl instead of a standard form, the tooltip does not automatically appear when the text is too large. Is this by design I'm assuming that the standard form might be supplying addional services to the LinkLabel control. I wouldn't be so up in arms about this but, I have LinkLabels in UserControls and they do not automatically tooltip so I have to figure ou ...Show All
Visual Studio VS.NET 2005 debugger hangs
While debugging a .NET 2.0 app, VS.NET 2005 UI becomes unresponsive and then attempting to break the execution results in the error message "A fatal error has occurred and debugging needs to be terminated. For more details, please see the Microsoft Help and Support web site. HRESULT=0x80131c08. ErrorCode=0x0.". The debugging session has to be terminated. This happens at different times during the debugging session and it happens while stepping through the code when I try to continue the execution when I try to step out of a function I tried to debug this application in CLR debugger and noticed the same problem. I read about an issue with ContextSwitchDeadlock MDA and disabled it to see if it would have any effect. I was of no u ...Show All
Visual Studio Express Editions printing items from database
I am attempting to print items from a database. I have added the items as objects to an array list. When I click print preview, the items show exactly as I intended them to be. The final calculation in the preview is correct. However, when I do the actual printing, the calculated number (TotalPremium) doubles Sometimes, the items print more than once. Why is the print preview correct, but the actual printed page is not. Please see attached code. Thanks for your help. Dim RatingFont As New Font( "Tahoma" , 8, FontStyle.Regular) Dim LineHeight As Decimal = RatingFont.GetHeight yCoord1 = e.MarginBounds.Top xCoord = e.MarginBounds.Left yCoord2 = yCoord1 + LineHeight yCoord3 = yCoord2 + LineHeight yCoo ...Show All
Visual Studio Express Editions run method from a different class - oop issue :-(
I'm struggling to get my head round OOP properly - please help! On my Form1 i have a button. this button calls a method "launchmMenu()" which is written within "public partial class Form1 : Form" in regards to the first option (non events) basically, you pass the object (current form instance) into the other class. When this object exposes public properties/methods, you can access it from the other class, when it has a reference of this object. Lets do an example shall we :-) for simplicity sake, lets have 2 classes, class1 (main) and class2 class2: private Class1 theMainClass = null; //constructor Public Class2(Class1 mainClass) { this.theMainClass = mainClass; } private void DoLaunchMe ...Show All
Visual Studio Team System TFS Not sending emails anymore
Everything was working fine and then no more emails were being sent. This is the message in the Event logger: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 9/6/2006 6:44:32 PM Machine: DALENG01 Application Domain: /LM/W3SVC/3/Root/services-2-128020418508424285 Assembly: Microsoft.TeamFoundation.Server, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: w3wp Process Id: 6760 Thread Id: 7184 Account name: JDA_DOMAIN\tfsservice Detailed Message: TF50282: Could n ...Show All
Visual Studio 2008 (Pre-release) The Including() operator
Hello, How would I sub-query the child collection in an including clause to limit the number of child objects that come back. For example, when I do the following: from c in Customers select c).Including(c => (from o in c.Paychecks where (o.OrderDate >= startDate && o.OrderDate <= endDate) select o)); An exception is thrown that states "Including expression must refer to an immediate property". Is there a way to do the above I have a problem with this. When Including got a null refrence it didn't crash, now i get a contstraint error. My db model has zero to many references but Linq doesn't get them Edit: here is a simple versi ...Show All
Visual Studio modifying parameters for crystal reports
I am trying to set or modify a parameter for a crystal report that I am opening in a .NET .exe and would appreciate any help on this issue. Thanks. Please read my post at URL below, hope it's help you out. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=805447&SiteID=1 ...Show All
Visual FoxPro Persistent Connections...
We have a Windows VFP 8.0 app that uses persisent connections to SQL Server. Everywhere says to not use persistent connections and use Connection Pooling with SQL Server, that "resources" will be used up. Can someone give with a list of what these "resources" are I know about Connection Pooling and memory, but our SQL Server server is a 8-way 64-bit processor machine with 64 Gigs of ram running WinServer2003 64-bit with 64-bit SQL Server 2000. There is never more than 51 gigs of ram used. Thanks, ThomBeaux You may find something about persistent connections in paragraph Connecting to Database Servers at: http://www.microsoft.com/mind/0299/foxpro/foxpro.asp You also may find about pooling & pe ...Show All
SQL Server Application unable to connect Sql Server 2005
Hi, We recently installed Sql 2005 server and it was working fine. But today one of our user reported that they could not able to connect the sql server 2005 from the application. When I checked the error log, I found the following error for every one minute. We restarted the sql service on this sql 2005 instance but still we are getting the same error. SSPI handshake failed with error code 0x80090311 while establishing a connection with integrated security; the connection has been closed. Could any one help us on that Regards, Sankar Hi, SanKar Is your computer in a Domain If so, it seems the problem that no KDC can be contacted. Suggest: 1) Disjoin the domain and rejoin your com ...Show All
Visual C++ How to change the console title programmatically
Hi All, I have a C++ console program. Recently, I have a requirement to change the console title (DOS window's title) programmatically at runtime. Is there a way to change the console title during runtime of the console program Can someone provide a sample code Thanks in advance ...Show All
Visual C# Do Loops in C#
Im new to C#, just busy moving from Visual Basic. I find the language nice, and have been coming on well so far, however at the minute i wish to use a loop; I was wondering, does C# not support the 'until' specifier when 'do looping' If possible I would greatly appreciate anyones help, maybe you could explain a little to me about loops in this language Common mistakes maybe ... Also when using a 'while' I have and error explaining something within the function cannot be void, however I am not at my own PC right now and do not have the exact error message to hand. Thanks for any help. JWH Try this: 1) do/while Loop Runs atleast once, because condition is checked in last! int i = 1; do ...Show All
Windows Forms Late binding issue
Hello, I've got a tricky little problem. I have a 3 forms that are very similar and I want to check 10 textboxes to see if the numbers entered in them are out of bounds or not. Now, only one form can be visible at a time and I only want to check the visible one. The code tend to be quite long but I give a short example, here's some code: Private Sub D0Limits() If Form1.Visible Then If Convert.ToDouble(Form1.textbox1.Text) < incISOLow Then Form1.ListBox1.Items.Add( "Value too low" ) Form1.textbox1.BackColor = Color.Red ElseIf Convert.ToDouble(Form1.textbox1.Text) > incISOHigh Then Form1.ListBox1.Items.Add( "Value too high" ) Form1.textbox1.BackColor = Colo ...Show All
.NET Development calling a webservice from classic asp - what are the limitations?
Hi, I am trying to call a webservice from classic asp. So far, I can successfully communicate from classic asp to a hello world webservice using the MSXML Parser or the SOAP toolkit. But what I really need to do is call my webservice with complex objects (defined in the web service) as parameters. So, In ASP.NET, I would do the following: [Code] 'set up an instance of my web service Dim objService as new webreferencename.servicename 'create an instance of an object within my webservice project Dim objTest as new objService.clsTest objTest.blah = "wah" 'pass this object into my call to the webservice objService.MyMethod(objTest) [/Code] but how do I achieve the bits in bold in classic asp Many than ...Show All
.NET Development Exception: DataTable internal index is corrupted: '5'. on ...
Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually. Another error I caught is the one that you can see as the subject of my post. I do not know why i have that message when I try to change the property of ((DataRowView)mybindi ...Show All
