Justin Baker's Q&A profile
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
.NET Development POST fails on larger messages/slower connection
I have a webservice receiving encoded strings of a size usually between 1k and 20MB which will be sent by a special application. When the application is started, it sends about 1000 of these strings to to the server, checking response and sending again, if necessary. Im using Framework 1.1, no additional stuff (like WSE) installed. Only known users are allowed to access the webservice. The server is configured to handle these bigger requests by adding maxRequestLength="40960" and executionTimeout="3600" to its web.config httpRuntime-Node. To reduce the number of requests sent by the client, i set the PreAuthenticate-prope ...Show All
Visual Studio Team System Source Control doesn't do an automatic get latest on checkout?!
We've been using the new source control for about a month now, and it seems everytime somebody goes to check-in there code there are all kinds of issues with stuff being out-of-synch. And it seems the code on the source control server never seems to compile, but of course the local copy of everybodies machines do. I've been pulling my hair out trying to figure out why everything keeps getting out of synch...today I found out why. It seems that in the new source control when you start editing a file it automatically does a check-out for you, but it doesn't do a get latest version on it. So if somebody has made a change to ...Show All
SQL Server Hierarchical table Functions Vs Hierarchical CTE
Recently I was in need of a hierarchical tree data. I learned about CTE and how they can be used to build hierarchical data with simple syntax. I used CTE and was through with the task. Later during free time, I tried to compare CTE approach with the traditional SQL 2K Table Function approach. It was surprising to see the query costs when I ran both the modes at one go... Query Cost (relative to batch) : 0.49% Query Text : Select * From fn_GetTree(8); Query Cost (relative to batch) : 99.51% Query Text : with treedata (id, parentid, status, prevStatus, lvl) as (select ...) What does that indicate Does it mean that the Table Function ...Show All
Visual Studio Team System design models in MSF
i'm in designing stage and following MSF but a li'l bit confuse about my designing model can anyone give me template which can i follow in logical; conceptual and physical design I can't give you a template, as I don't have the "TEMPLATE" hehe, but I would recommend you to visit the part of MSDN about patterns & practices, and the architecture section, and maybe you can find more information there, I don't know if you are planning to use SOA or another kind of architecture, but I would recommend you, if you are planning SOA, to check the tools in VSTS Architect Edition. ...Show All
Visual J# how can i remove the security warning in VJ#
Hi i have a web application which is code behind html ,upgrading from vj++ to vj#.The application uses wfc control to launch it.While trying to run ,it throws a security warning saying"This page contains components that are potentially unsafe,Do u wish to continue".The process proceeds when clicking yes button otherwise it does n t move further. this security warning looks strange ,when come to internet user.So how can i remove or avoid this security warning. regards praveen i tried going to the internet options and advanced and security and there is nothing saying enable - Allow active ...Show All
SQL Server UDF taking too long to run workaround ?
I have written a UDF into which I pass a table name, field name, value of the field, whether alpha characters are valid, whether numerics are valid, and a string of alphanumerics that are valid. I return back a string with all invalid characters removed. Unfortunately when I use this on names and addresses in an 12000 row table, it takes forever to run. Can anyone think of an easy way to do this which isn't so labour intensive. Please see code below. NB CHAR(32) is space, CHAR(45) is -,CHAR(39) is ' CREATE FUNCTION dbo.UDF_RemoveInvalidCharacters ( @sTableName varchar(50),-- e.g. 'Contact' @sFieldname varchar(50),-- e.g. 'Lastname' @s ...Show All
SQL Server Cannot Load SQLSpars.dll
Hello, I have had numerous problems installing SQL Server 2005 on various machine. Most of those problems are related to insufficient rights to various users. But I am baffled by this one: Setup Failed: Could not load SQLSpars.dll Why would this happen I see this message after beginning the SQL Server 2005 Standard setup and making my installation selections and beginning the install. The process stops after about 30 seconds, and displays the above message. My machine is running Windows XP SP2. Any ideas Thank you, Jon500 A few customers have reported this issue but we haven't tracked down the bug or a workaround ...Show All
SQL Server sqlcmd and scripting variables
Hi, I'm trying to use sqlcmd file with scripting variables to build a file path and the issue the OS command MKDIR using that path to create the directory. Something like this: :SETVAR DataDrive "'D'" Declare @DataFilePath NVarchar ( 260 ); -- Data File Processing Set @DataFilePath = $(DataDrive) + N':\MSSQL.1\MSSQL\Data'; !!MKDIR @DataFilePath However, I can't get sqlcmd to resolve the value of the variable in the !!MKDIR string. The folder created is called @DataFilePath in the above case. Using Print you will see that the value of the variable does equal 'D:\MSSQL.1\MSSQL\Data'. Does anyone know how I can get the !!MK ...Show All
SQL Server Error exporting a subreport to Excel!?
Hi All, I have a report sonsisting of two subreports. When I export it to Excel I get an Error!! I played around with it and I found out that if I use ReportItems in my page header it will cause this error! Does anyone have any idea why Is this a bug or there is some work around it! Thanks. We have talked to our Microsoft rep and they have told us that it is a "feature" and that is how is was designed. It is true that a subreport within a table or matrix will not export to excel. The only workaround is to have the subreport outside of the table or matrix, have the report export to pdf instead, or export the first page of the ...Show All
Visual Studio Express Editions vc++ Express side by side install with vs2005?
I'm considering upgrading to vs2005 and have a couple of questions. I'm asking here because, after reading the various pages on msdn on the subject and searching these boards and the web, I have not found a satisfactory answer to my questions. Firstly, I would like to know if there is a vs2005 pro academic version or if the standard version of vs2005 is the only academic version that will be made available. Secondly and perhaps more importantly, I'd like to know if it's possible to keep the vc++ express edition I already have installed as I'd like to keep it for comparison. If it's not possible to have both vs2005 and vc++ express installed ...Show All
SQL Server Programmatically create data sources
Is there a way to do this It does not appear as part of the standard SSIS API. Thanks. The DataSource and DataSourceCollection are part of the SSAS API with the latter having Add and AddNew methods. Not quite sure how to get the project context to create them, but never looked either. They are the same data sources in SSIS and SSAS projects, just do a View Code on them for each project, they are the same XSD etc. ...Show All
.NET Development About License !!!
I want to develop a web site, for my Small Business, using ASP.NET... but my question is, what I have to pay in order to do this Thanx in advantage... Well, thanx... I gone do all my self... then you mean that if I make a Web Site using only ASP.NET, and Web Matrix,... I don't need any license to publish my web site thanx again ...Show All
Visual C++ String ^ to void *
I'm building a managed wrapper in C++/CLI for normal native code. Here is a function from this wrapper that I'm having problems with: ERRORS SetOption( int nOption, String ^strSetting) { return (ERRORS) _SetOption(m_Handle, nOption, strSetting); } The native function accepts a "void *" as it's last argument. This could be an integer, string or even a function callback depending on the nOption parameter. How would I wrap this The problem is that I cannot convert strString to a void *. Would it be possible to use a more "lowlevel" type as the input instead of "String ^" Does something like "void *" exist in a managed version The closes ...Show All
Windows Forms me.name
if I do Protected textBox1 As new TextBox() hiw can I get ; Me.textBox1.ID = "textBox1" I mean "textBox1" the name i gave as a string thank you I know how to add Dynamicly controls, I want to add dynamicly id in the way I am looking for , it works to get a class name as a string Dim ns, nsn As String ns& ...Show All
