DJTomKat's Q&A profile
SQL Server checking length and triming the value at ','!
Hi all! I have a record coming from the database having of F_name,L_name, and M_name being concatenated and separated with comma. In an expression of a textbox control value I would like to check the length of this record and if it is more than 12 only to take the first values till the comma’,’ which appears prior to the 12 th character and truncate the rest. For example: Record from the database= FirstName,LastName,MiddleName 1) GAUTHIER, JEFFREY, Jane D esired result GAUTHIER, b/c if Last name is added it will be more than 12. 2) Jane, JEFFREY, GAUTHIER D esired result Jane, b/c if Last name and first ...Show All
.NET Development make ver 2.0 default on iis5
i install framework 2.0 on my server windows 2000 server. all my websites still configure to use framework 1.1 and i can menualy change each website to use framework 2.0. the problem is that each site i change to use framework 2.0 couse my iis5 to restart it self which is a big problem too me. in additon, all new website i configure on my server is set to use framework 1.1 by default and i need to manulay change it to framework 2.0 (iis restart again) is there any way to make my iis5 use framework 2.0 as default framework, so all the exiting web site will use it and every new website i configure will use framework 2.0 by default ...Show All
.NET Development AutoUpgrade
I'm searching for some idea one how to make an auto upgrade for an application. I've looked at the AutoUpdate project: http://www.codeproject.com/vb/net/autoupdate.asp Is this a good way of doing thing or are there better ways (My application is small, 2mb. The upgrade will be made on the net.) For people reading this and using .net 1.x, I found this by following your link: http://msdn.microsoft.com/library/en-us/dnpag2/html/updaterv2.asp frame=true (Updater Application Block) ...Show All
Visual C# dynamic testing, casting and instantiating generic types
I'm trying to understand how to manipulate generic types at runtime but can't seem to get at what I'm looking for. For example: object obj = new Dictionary<string, object>(); So I now have generic dictionary object. How do I test obj to determine it is indeed a generic dictionary Is there something similar to: if (obj is Dictionary < what goes here > ) Then once I know this object is a generic dictionary, how do I create a typed reference to it Dictionary< what goes here > typedReference = ( Dictionary <What goes here >) obj; I want to be then be able to add items to the dictionary typedReference.A ...Show All
Software Development for Windows Vista SDK problem
Hello, I had used november CTP more times without any notable problem. I will install february ctp version. I've uninstall previuous veersion, download runtime and sdk. I've install runtime and also sdk. But after, nothing work. old applicaion cannot b compiled. I don't found dll for .NET as presentationframework.dll. XAMLPad isn't installed. Only C++ library and help file is installed. What is the problem Thanks for your help. Do you have the current WinFX installed on your machine The SDK doesn't install the runtime; you'll need to download the runtime seperately . ...Show All
Visual Studio Team System Code Coverage
Does anyone know how to enable Code Coverage There used to be an options button on Test Manager to do it, but this button is no longer there. Please help if you can. :-) My understanding is that blue means that line was partially covered (So, possibly in an assert, only the condition was executed and not the assert itself. I may, of course, be wrong. ...Show All
Windows Forms printing text
I am trying to print a text file and am using the examples provided by Visual Studio. The following line calculates the number of lines per page in the PrintPage eventhandler: lpp = ev.MarginBounds.Height / printFont.GetHeight(ev.Graphics); The problem is that lpp calculates a number of lines but the printer is printing past the margins and I miss 2-3 lines per page. If I subtract 4 from lpp this works but why isn't the calculation correct The event is listed below: //Event fired for each page to print private void pd_PrintPage( object sender, PrintPageEventArgs ev) { float ...Show All
SQL Server Data Sources
Why do the data sources appear in Report Manager when deploying reports. How can they be hidden from the users In the properties window - choose "Hide in list view" - it will not be seen in the list view. If you want to actually secure them - change the permissions to the data source to not include your end users. Only report publishers need to have access to the datasources. Tudor ...Show All
.NET Development How to delete a line from a text file using C#
Hello all I am developing a little app where I need to monitor a file that is update by several machines. I need to gather each line wrote by each machine so I need access to a specific line number and take that line, store it into a DB table and delete that line. I really don't know how to delete the line without parse the information into a string variable and rewrite the file. This can lake the app because the file can contain up to 1000K lines... :-O... Any suggestion will be appreciated. ________________________________ I think I deleted the Internet... Well, finally my code stays like this... This i ...Show All
SQL Server Failed to generate a user instance SQL Server Express 2005
Hello, I get the following message after updating to sql server express 2005 advanced. Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed. I noticed that in my C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Template Data I have not databases How do I get them back I also had to add back the aspnet to the permissions and the network and network service to the app_data folder. Can any one help Thanks Tom With User Instances the database files are not created in the old data directories, they are nor ...Show All
Visual Basic form inheritance
I want show the keyboard accelerator keys in all my forms, so I create a base form with that functionality, then I have other forms inherit from this base form, the base form does not have any control on it, when I step through the code, it works, but after removing the break point, it stops working. I have to add a control (such as a button) on the base form and the Visible Property of the control must be true to make the functionality work for other forms, which is not desired. I am stuck here, any suggestion will be greatly appreciated. ...Show All
.NET Development Can I install Visual Studio 2005 on a machine with Visual Studio 2003?
can i safely run vs2005 beta2 on the same dev machine as vs2003 enterprise edition and not currupt the vs2003 libraries And What about the CPU usage ...Show All
Visual Studio Express Editions Controlling 2 Rich Text Box with 1 scrollbars
I am developing a simple text editor with C# , and i am required to show line number on the left side of the rich text box. So i inserted 2 rich textbox in my forms...1 for the editor and 1 for the line numbers. My problem is i need these two rich text box to be scroll with a same scrollbars.... Hope this article might help you http://www.codeproject.com/csharp/linenumberingapp.asp ...Show All
Visual Studio Team System How to use own Work Item Type "Feature" in Query
Hallo, we created a custom Work Item Type called Feature. Everything works well. The WI-Type is imported in TFS (witimport) and we can use it. Now i wanted to create a query that returns all features asigned to me. In the querydefinition I would like to select the "Feature" als value for the field "Work Item Type" but i can't select it. I am just getting Bug, Risk and Task for selection. (So Quality of Service Requirement is also missing!) The server is refreshed. We are using TFS Beta 3 Refresh, MSF for Agile as Template. How can i use the custom WI-Type as value in the query Kind regards, Matt ...Show All
SQL Server Configuration files and variables
Hi .. I need some information on the package configuration files. i.e how to set the configuration parameters from outside the packages. Pls provide me some detailed information along with examples. I want to make my packages to read paramaters from the configuration files as we have in .NET(web.config)//// Secondly I want to know how to play well with variables.. i.e setting a variable.. reading a variable.. passing a variable in the SSIS package dataflows and datatasks.. respectively. Please provide some infomation and a good exam[ple on it I need sam_idea wrote: Hi .. I need ...Show All
