Tom Le-Rademacher's Q&A profile
Visual Basic MaskedEdit: setting the starting point for entering new text at first position
I have a MaskedEdit control in a form. When I click the control in the middle, my cursor is in the middle of the control. but I want it to be at the begining of my control even if I click in the middle of my maskedEdit text box. What poroperty should I use. I tried: MskEditControl.SelStart=0 but it still goes to the middle of the box if by accident, I click in the middle. It only goes to start of my control if I click at the begining. Thanks Hmm, sorry, I don't. I can't find one (if it exists) in VS2002/2003. However the CodeProject.com has some code to make your own. Depending on what you are doing, that may benefit yo ...Show All
SQL Server SQLExpress ASP3.0 Permissions and Connectivity
I'm teaching a class where the curriculum uses ASP 3.0, I thought it would be a good idea to introduce the students to VSNET 2005 web express as an editor and SQL2005 Express for a database. I'm having second thoughts since I can't seem to get ASP to successfully access the database (No problems with ASP.NET) OS: XP pro I've created the following in the Database: A simple database using managment studio ASQL login for the IUSR_ (annonymous) account and the IWAM_ (IIS) account Added (IUSR, and IWAM) as database users granted datareader and datawriter permissions created a simple stored procedure I've created the fol ...Show All
Visual Studio 2008 (Pre-release) FaultException with InnerException
Hello, I'm having difficulty to use FaultException<Exception> which the exception objcet which is used as Details for the FaultException contain inner exception. It's must be confusing because of all this excpetion inside exceptions, the drawing is as follows: [FaultException<Exception>] + [Exception] + InnerException = Another Exception When I throw FaultException<Exception> in which the exception object which is used as Details does not contain inner exception, but just message everything is working great. Thank you, Ido. Hi Ido, I suspect that you're running into a problem where the ...Show All
Windows Forms Strong naming an assembly not working...please help
Hello All I've added a reference to an assembly in my vs .net project but for some odd reason it doesn't have a strong name. All the other references all have strong names except for this one I added. I've created a key pair and even signed the project with it in the assemblyinfo.cs file "[assembly: AssemblyKeyFile(@"..\..\key.snk")]" but I a ...Show All
SQL Server Scheduling through sql agent
I have just moved an old sql 2000 database over to new hardware and sql 2005. I had a few dts jobs that ran on the old server and I have converted them over to SSIS. In VisualStudios the packages run just fine, but when I try to schedule it on Agent, It just fails and says step 1 failed. I have looked at it for hours and still have nothing. Anyone got anything i can try to get this working In order to get it working you have to diagnose why its failing. 1. Use logging in your package to see what is failing 2. Follow the instructions here: http://wiki.sqlis.com/default.aspx/SQLISWiki/ScheduledPackages.html to get more info ...Show All
.NET Development Publish app and other files
Ok, I have gone through and made a sample application and now I want to publish it. The app has several ASCII text files that it uses and I need to get these files published with it. The clickonce publish seems to get the app installed ok, but I also need to get the text files published out as well. How can I do this You need to add the files to the solution and in each file's properties pane select Content and Always Copy. Note: You also might need to check your Application Files under Publish to make sure that they are included in the list of files to be published. ...Show All
Visual Studio CRC error when installing Beta 2
ERROR:Error 1331.Failed to correctly copy vcredist_IA64.exe file: CRC error. ERROR:Error 1331.Failed to correctly copy vcredist_x64.exe file: CRC error. The install said it completed successfully, but with warnings. I looked in the error log and found the about two lines. Any ideas about what is going fail, if anything, due to the above errors -Russ Yes, I installed from the same DVD. It does look like I will have to use an MSI editor to get around this..... Not extremely happy to do that. ...Show All
Visual Studio Express Editions Starting (loading) the form from just above the system tray of task bar
I have to load an alerting form (just like the new e-mail alert from MSN/Yahoo Messenger) from just above the system tray of the task bar irrespective of the screen resolution of the system where the application is running. How to go about it Also, how do I find out the screen resolution of the system where the application is running This info too would be handy for me. Appreciate your help!! Best Regards, Aravindh R Thank you very much for the responses. Mattias, I just want to know if the code available in the KB link will work on C# or should I write an equivalent for C# -Aravindh ...Show All
.NET Development Explain .ConnectionString Mechanism
I am interested to know how the ConnectionString line of code works. It appears to search machine.config, app.config and web.config. Anybody have any background on how this process works Does it really search all three files and in what order Protected Function DB( ByVal DatabaseName As String ) As String Return ConfigurationManager.ConnectionStrings _ (DatabaseName).ConnectionString End Function Plankton, one thing you can do is load an appDomain and I believe that will let you retrieve those settings. You are right that it does probe, star ...Show All
Visual Basic Strings
Hi, I am just starting to learn programming with Visual Basic.NET 2003. I am trying to create an application, where the user enters in 6(minimum) or 7(maximum) characters. The format for what the user can enter is as follows: LNLNLN (6 characters with no spaces, and where L is a letter, and N is digit between 0 and 9) or ...Show All
Microsoft ISV Community Center Forums outlook code modification
the following code executes in the some machines..but it fails in some machines...please help and point out the line to be modified var app= new ActiveXObject("Outlook.Application") nameSpace = app.GetNamespace("Mapi") var AddLists = nameSpace.AddressLists var AddEntries = AddLists.Item(1).AddressEntries var AddEntry = AddEntries.GetFirst for(i=1;i<AddEntries.Count;i++) { alert(AddEntry.Address); AddEntry = AddEntries.GetNext; } Per our support engineer: There is a little problem: for (i=1;i<AddEntries.Count;i++) this is the problem. If there is only one record in outloo ...Show All
SQL Server SQL SERVER EXPRESS 2005
Hello i don't know if its the right place to post, but here is my question: Can I use Sql Server Express 2005 for commercial use , since its a free one Absolutely - from the license agreement: a. Installation and Use. You may install and use any number of copies of the software on your devices. There is no limitation on using it in production versus test versus development environment. Cheers, Dan ...Show All
Windows Forms controlling color of datagrid cells at run time
Hi, I have a datagrid that is bound to a dataset which contains excel sheet data. I have got 8 columns in my datagrid and all of them except one has strings values, one column has numeric value in it. I want create coloring scheme, such that same values in a column are in one color. So that If I have following strings in my column " ...Show All
SQL Server SQL 2005 Database Engine setup failure
I am having a problem getting the databse service installed. My SQL Beta version did not uninstall smothly and I am trying to get the production release to uninstall. I keep getting the install to fail with: "C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe" finished and returned: 1603 I have been able to install everything from the SQL 2005 suite (ie. reporting services, workstation components, etc) but I can't get the database engine to install so I can run databases locally. Has anybody ran into this I have looked everywhere but no suggestions have helped. Thanks! The meaning of 3 ...Show All
Visual C# radio button's "selected" event
am using 2 radio buttons in my form. rAdmin and rDesigner. < input type =radio id =rDesigner runat =server name =userType onserverchange ="rDesigner_ServerChange"> < input type =radio id =rAdmin runat =server name =userType onserverchange ="rAdmin_ServerChange"> when the user selects either radiobuttons, data is displayed based on which radio button is selected. where should i write the code for displaying these data there is no onserverclick event available. i tried to write the code in onserverchange event. protected void rDelUsers_ServerChange( object sender, EventArgs e) ...Show All
