Sarath.'s Q&A profile
Internet Explorer Development png colors not rendering correctly in IE7.
I generated a 24bit png file with transparency using photoshop cs2 the solid color was #373737 with a transparent gradient at either end. I then used this css: background: #373737 url(image.png); when viewed in firefox all was well and good when viewed in IE7 the solid color was no longer #373737(r:55 g:55 b:55). It was #242424 (r:36 g:36 b:36) When ever I change the solid fill color in the image I get a linear shift in the color interpretation in IE7. I was able to shift the fill color up and get it to match the 373737 background color but it no longer matched in any other browser. :-( So, clearly there is something wrong with IE7's color interpretation with regard to png images. There is a consitant color shift t ...Show All
Windows Forms Raising events in inheritance forms
I have two forms that inherit one from another. In both of them I have implemented the Form_load event (with the same method name) and on the ancestor form I declared the method as virtual and in the child form as override. The thing is the event raise twice in the child form (in the examle i will see ( "form3" twice) . Why's that See code for example – public partial class Form3 : Form2 { public Form3 () { InitializeComponent(); } public override void Form_Load ( ...Show All
.NET Development How to know the path of the programfiles directory
What is the procedure to know the path of the program files directory in C#. In VB the syntax is as follows Dim pathprogramfiles As String = My.Computer.FileSystem.SpecialDirectories.ProgramFiles i have added the reference Microsoft.VisualBasic dll also but that couldn't help me. Is there any other way You can get the Program Files path in any .NET language by using the Evironment.GetFolderPath method. For example in C# you have: string path = Environment .GetFolderPath( Environment . SpecialFolde r .ProgramFiles); ...Show All
.NET Development Avaya CTI Screen popping in .NET
Hello everybody, We are working on a web based application for a call center, my task is to develop a page that displays the incoming phone number on an agents computer. They have a Avaya phone setup installed here. After reading a few documents I learned that the Avaya has some software that captures the incoming phone number and can be displayed. I had never worked on something like this before. I am not sure how to call this on the .NET page. Any kind fo help on this task is greatly appreciated. Thank you verymuch in advance. You can also use a product like Chrysalis Sonata ( http://www.chrysalis.net/sonata.htm ) that already is integrated with Avaya and Nortel switches and provides a .Net SDK. Chrysalis also provides profes ...Show All
Visual Studio Team System How to pass value of a context parameter to a web/load test via VS command prompt
Hi, I've a web test that has a context parameter (say pageurl). I am able to set a value in the VS and run from both VS and cmd prmt. How ever if I want to run the same webtest for a different value, is it possible for me to set the value @ cmd prmt and run the webtest (I'll not set the value of CP in the VS). This way, I can make my webtest more generic. if this particular webtest is passed as a value for a load test, will it be able to actually hit the page URL I've set via cmd prmt Thanks in advance. Thanks Josh, I'm able to set the context variable "URL" from command prompt. Need clarification about load test. The same web test, if passed to a load test, will the page actually hit in the load test ...Show All
.NET Development Datasets and SQL Server
I'm currently working on a application in VB.NET 2003, with a SQL Server backend. I was asked to make an import function that would allow a user to import an Excel worksheet into SQL Server. I'm aware you can do it from Excel directly to SQL Server, but the clients would like something that wouldn't involve the users of this application touching the SQL Server. I'm using an OLEDB for the Excel connection, and a ODBC connection for the SQL Server connection. Next, I have a button event that would open up a OpenFileDialog window, and a user can choose an Excel sheet. If the Excel sheet is valid, it would go on extracting the data into a dataset: ds = New DataSet ds.Clear() strSQL = "Select HEAT, Practice, C, Mn, P, S, Si, Cu, ...Show All
Visual Studio 2008 (Pre-release) Service development broken?
I'm having a problem with an app that appears broken by the latest (.Net 3.0) CTP. Client side proxies are broken, apparently because System.ServiceModel. ClientBase.InnerProxy no longer exists. Trying to refresh the web Reference failed, because of a missing entry point - I think - in the 3.0 CTP. I uninstalled the Orcas extensions to VS and downloaded the latest. This refuses to install because of a missing prerequisite - the WinFX Beta ! Is there supposed to be an update for the Orcas beta to go with the .Net 3.0 CTP Here http://wcf.netfx3.com/content/BreakingChangesbetweenVistaBeta2andJuneCTP.aspx says that InnerProxy has been changed to Channel Ch ...Show All
SQL Server Unable to install full text search
After installing SQL Express via the executable provided by MS successfully, I tried to go back and add full text search as well as replication. After going through the steps of add/remove - change ..... and being able to select both features after I hit next it then gives me an error trying to find use source: e:\b6f60166c6128881c04ed9e6c64e75\Setup\sqlrun_sql.msi no big deal if I had the .msi but since it was installed via the .exe I don't have that file. I also did a search on all drives for that file. I also tried just selecting the full text search option. I looked on microsoft.com to see if I could search for the .msi there but no luck. Any advice/ideas would be appreciated! Thanks, Ryan ...Show All
Visual C++ Loading registry values from a DLL
Hi, I was attempting to load registry values in my native C++ DLL. Right now this DLL is the driver for a form-based application and will eventually be the driver for a Windows service. In any case, I could not load registry values in my DLL. However, using exactly the same code I was able to load the values in the form-based application that it was driving. I can't figure out exactly why that is, since I was using the exact same code in both cases, the only difference is whether it was in the DLL or the application itself. Does anyone have any suggestions as to what I should do Are there any odd flukes about the way that registry values have to be loaded in a DLL I am using Windows XP, Visual Studio 2005, and native C++ for both the ap ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Parameters for content processor
Is there currently any way of providing parameters to the content pipeline For instance, if I had a huge terrain that I want to convert into blocks within the pipeline, it would be nice to set a parameter for the block size within the IDE's properties panel for the asset, alongside the ContentImporter/ContentProcessor settings. If not I guess I'm going to have to create an XML file to describe the terrain, and import that instead. Not half as nice. Shawn Hargreaves - MSFT wrote: Resolved just means that we've moved the bug across to our internal database. The two aren't terribly well integrated, unfortunately. Does that mean the votes for it will still be looked at at a later date, or not ...Show All
Visual Studio F1 Help error
Hi I have Visual Studio 2005 professional installed and installed the MSDN that came with it in the box. When I highlight a keyword and press F1 I get the following: A Runtime Error has occurred Do you wish to Debug Line 98 Error: Could not complete the operation due to error 80041001 Thanks Steve I see this behaivor everytime I try to access certain topics such as XML. It's not about boots I think it is about missing information or an inability to find it. george gslockwood@gmail.com ...Show All
Visual Basic IO.FileStream Issues
I have done some searching and found a class module to convert rtf to html at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=143137&SiteID=1 and I am implimenting it but I have an issue, i got this code Private Sub Button28_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button28.Click Dim RtfText As String = RichTextBox1.Text Dim objStrbdr As New System.Text.StringBuilder() Dim Rtf2HtmlConvert As String = Me .Rtf2HtmlConvert(RtfText) Dim tmpfile as System.Environment.SpecialFolder = Environment.SpecialFolder.CommonApplicationData + "/App/Temp/File.htm" objStrbdr.Append(Rtf2HtmlConvert) If IO.File.Exists(tmpfile) Then IO.File.D ...Show All
Visual C# Manipulations on directories.
Hi, I want to write a generic program to get the directory and all the sub directpries under it. The code which I have with me works only till next immediate sub directory Like string strDirName = @"E:\Cirrus" ; DirectoryInfo di = new DirectoryInfo (strDirName); if (di.Exists) { DirectoryInfo [] subDir = di.GetDirectories(); foreach ( DirectoryInfo dirInfo in subDir) { Console .WriteLine(dirInfo.FullName); DirectoryInfo [] nestDir = dirInfo.GetDirectories(); foreach ( DirectoryInfo info in nestDir ) { Console .WriteLine(info.FullName); } } Console .ReadLine(); } So this will display next 2 levels of directories But let say I have Test/Test1/T ...Show All
SQL Server SQL 2005 breaks writeable multi-table views
Hi, I have some simple views that bind to an Access forms for use in the detail side of Master/Detail forms. The views are of the style: SELECT *.OrderDetails, Products.TotalUnitsInStock AS UsefulReferenceInfo FROM OrderDetails LEFT OUTER JOIN Products ON .......... Using a database in SQL 2000, opening the view to directly insert values into the OrderDetails columns works perfectly, and Access correctly determines that there is an IDENTITY column that is the Primary Key. Insert works perfectly, form work perfectly. Using the same SQL script to build a database in SQL 2005 the view doesn't detect that the column is an IDENTITY column so any attempt to insert data fails with the error "Invalid input parameter values. ...Show All
Windows Forms Label character spacing runtime/designtime
I have put a label on a form and given it the following property values: this .lblPublicHeader.BackColor = System.Drawing. SystemColors .GradientInactiveCaption; this .lblPublicHeader.Font = new System.Drawing. Font ( "Microsoft Sans Serif" , 8.25F, System.Drawing. FontStyle .Bold, System.Drawing. GraphicsUnit .Point, (( byte )(0))); this .lblPublicHeader.ForeColor = System.Drawing. Color .White; this .lblPublicHeader.Location = new System.Drawing. Point (5, 8); this .lblPublicHeader.Name = "lblPublicHeader" ; this .lblPublicHeader.Padding = new System.Windows.Forms. Padding (5, 0, 0, 0); this .lblPublicHeader.Size = new System.Drawing. Size (304, 33); this .lblPublicHeader.TabIndex = 7; this .lblP ...Show All
