y2ktan's Q&A profile
Visual C# a question
I'm going to try vc#2005, what's the most improvement between 2003 and 2005 Seems a stupid question,:-) The improvements are numerous and compelling, in my opinion. Off the top of my head (just talking about the C#, not .NET 2.0 in general): Generics Nullable types Iterators Anonymous delegates Refactoring Edit and continue A good starting point is http://msdn.microsoft.com/vcsharp/2005/overview/ . ...Show All
Visual Basic MDI Forms
I have a problem. I load MDI child forms from the parent form, but when the child form loads I get objects from the parent form being displayed on the child form (Grid Box with command buttons). Does anyone have any idea how to stop this behaviour Thanks. Hi Rudolph, Make sure that you are not doing any of following Inheriting the child form from the main form and not setting mdi parent property of child form. Both forms are not being inherited from the same class There is possibility the some same routine is being called on both forms startup. Hope this help If not please put startup code of ...Show All
.NET Development Combine Visual Studio with Access
Hi All, I have an app developed in Visual Basic 2005 connected to an SQL Server 2005 database (both Express editions). What I would like to do is create an Access .adp connected to the same SQL Server 2005 database. It seems however that Access (I have 2002) does not support developing against SQL Server 2005. Never mind, I can use Visual Studio or SQL Server management studio 2005 to make changes to the database, and I can connect the .adp file to the database and make data changes. However when i open the .adp file i get a connection error when trying to run the VB app and I need to run both simultaniously. Is this due to some ...Show All
Windows Forms Newbie Question
I come from a java background. I am currently developing a mailer program. What I want to happen is when the application starts the GUI must FIRST display and then the mails must be sent and the GUI gets updated as this takes place. The app is sending the mails but before the gui gets displayed. I think the problem is as follows. In my main method is the following code myMailer.Mail(); Application.Run(myMailer); If I put the Mail myMailer.Mail();  ...Show All
.NET Development Loading UserControl from code without @reference
Hi, I would like to use LoadControl (in ASP.NET 2.0) to load a user control as described in http://msdn2.microsoft.com/library/c0az2h86(en-us,vs.80).aspx , without using the @Reference-directive. Is that possible and how This is because I'm working on a generic framework with a class that describes the flow, loads the usercontrols and sets their properties. So I don't want to use @reference-directives in my aspx-files. Please help! I'm stuck here!! Thanx Bart John Bailey wrote: each web control and page is compiled into its own assembly in ASP 2.0 instead of into the same assembly as it was in 1.1 I didn't kn ...Show All
Visual C++ Knee deep in warnings and errors.
Hi Does anyone know if you can force the compiler to split warning and error messages between two different tabs. I often find that on some projects when there are many warnings/errors and the two are mixed, it can be a pain trying to scroll through so you can fix the errors first. If this is not possible, I think it might be a nice little tweak for a future release. Thanks. MNiM In Visual Studio 2005 you can pick and choose what appears in the 'Error List' tab. Along the top left of the Error List tab are three rectangles showing the number of errors, number of warnings and number of messages. Those thr ...Show All
SQL Server Calculate Median Value
I am converting a report created using Crystal Reports 10 to Reporting Services. The report contains a list of items with dollar values. The original report displays both the Average and Median value. I can easily ( using avg(Field1.Value!) ) determine the average but cannot find a function to determine the median. How can I add the Median to the report Thanks in advance, Greg Thanks very much for that, I managed to get it working. However I was actually trying to get it to work for a graph - any idea where I would place the “ =Count(Code.addToMedianArray(Fields!Total ...Show All
.NET Development white space err when reading in xml data
"Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 8, position 3."} I get this InnerException error when running this code: Dim reader As New System.Xml.Serialization.XmlSerializer( GetType (VESSEL_CURRENT_LOCATION)) Dim aceURL As String = "http://www2.mvr.usace.army.mil/OMNI/ws/OMNIdata.cfm river=MI&rptname=vessel_current_location" Dim myRequest As System.Net.WebRequest = System.Net.WebRequest.Create(aceURL) Dim myResponse As System.Net.WebResponse = myRequest.GetResponse() ...Show All
.NET Development an Exception
I am using SQL 2000 with ASP.NET 2.0. and i am seeing this log from my exception logs. Exception says something about SQL 2005 but i am using SQL 2000. Web server and database server is not the same machine. may be this is becasuse of a network problem but this is being rarely. Any one have some idea in this situation Thanks. System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Exception: An data access error occured, please check inner SqlException error. ---> System.Data.SqlClient.SqlException: A connection was successfully established ...Show All
Visual Studio Express Editions Add New Record Binding Source...
Hi everybody, I new with binding source control and binding navigator control of .Net Framework 2.0. I having problem with adding new record. I have binding source control and bindingnavigator control, it displays the data ok and data navigation between records is ok. But when I try to add data using "+" icon on binding navigator control, it causes error on data type...What is the problem and how can I make it work Thanks. Error Message: System.InvalidOperationException "Objects added to a BindingSource's list must all be of the same type." " at System.Windows.Forms.BindingSource.Add( ...Show All
.NET Development soap:address and how to change
I have a .net 2 Web Service which is only accessibly through HTTPS. When I browse to the asmx file over https it all looks fine and works, however when I try to add a web reference to another project in Visual Studio it throws an error and seems to change the https to http. ie. I enter https://myservice/service.asmx in the url, but the error says it cant download http://myservice/service.asmx wsdl Having a look through the wsdl in a browser all the URLS look fine except the < soap:address element points to http rather than https, even when viewing over https. Is there any way to set this property manually, or how to I get i ...Show All
SQL Server Help with Case Statement
I have the following code in which I need to check something in the ELSE. The problem is how to form it correctly. I could use a cursor I guess to transverse through the records. In the Else, I want to: 1) Check the count of the results of my statement. IF > 1 then check to see if m.original is between lowlimit and highlimit for any of those records found 2) If m.original is between the lowlimit and highlimit, then select Fee1 from FeeScheduleDetails m.original and m.FeeSchedule is out here somewhere, just know this...it's part of the query that you don't see CASE WHEN Len(c.FeeSchedule) < 3 then CONVERT(int, c.feeSchedule) ...Show All
SQL Server Error "Msg 6522, Level 16, State 1" receives when call the assembly from Store Procedure to create a Text file and to Write text
Hi, I want to create a text file and write to text it by calling its assembly from Stored Procedure. Full Detail is given below I write a code in class to create a text file and write text in it. 1) I creat a class in Visual Basic.Net 2005, whose code is given below: Imports System Imports System.IO Imports Microsoft.VisualBasic Imports System.Diagnostics Public Class WLog Public Shared Sub LogToTextFile( ByVal LogName As String , ByVal newMessage As String ) Dim w As StreamWriter = File.AppendText(LogName) LogIt(newMessage, w) w.Close() End Sub Public Shared Sub LogIt( ByVal logMessage As String , ...Show All
Visual C++ required libraries for 64 bit applications
Hi, We have been developing 64 bit apps (straight C++/MFC, no .NET) for some time and now need to distribute executables to non-developers who do not have VS2005 installed. What libraries need to be installed on client machines and how do they get installed Thanks John Avis Create a setup project and this should take care of all the needed libraries for you. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System is it possible to prevent users from check-in SLN files?
hello, i want to prevent from the programmers in my company to checkin the sln files due the policy of the company that says "solution is personal for each programmer", so, it unnecessary to upload it to the source control. (because it save the physical-relative path of the files within the solution and because not all the time you can choose were to put your solution - for example when you open a class library project it automatically creates sln file in the folder where you create the project and then when you do chcek-in, it uploads the sln and the class files to the same location at TFS and i dont want to do that - i want ...Show All
