B.Young's Q&A profile
Visual Studio 2008 (Pre-release) Access sub-properties in <Setter/>
Hi, Suppose I have: public class CustomPanel : StackPanel { public Image Image { get { return _image }; } } And I have this style: <Style TargetType="{x:Type CustomPanel}"> <Setter Property="Image.Width" Value="100"/> </Style> That seems to set the width of the panel rather than the width of the image. How can I specifically target the image width and set the panel width separately I tried this but it gives a compile error: <Style TargetType="{x:Type CustomPanel}"> <Setter Property="(Image).Width" Value="100"/> </Style> Thanks, Kent Boogaart We're looking at it, but no plan ...Show All
SQL Server The error code is 2380. Error opening file for write: 5. GetLastError: SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup.
I get the following error message when I install sqlserver 2005. TITLE: Microsoft SQL Server 2005 Setup ------------------------------ The installer has encountered an unexpected error. The error code is 2380. Error opening file for write: 5. GetLastError: SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup. For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=2380&EvtType=sqlca%5csqlsecurityca.cpp%40Do_sqlGroup%40Do_sqlGroup%40x5 ------------------------------ BUTTONS: &Retry Cancel ------------------------------ Anybody got an idea Thanks Hi ttfo, Are you remotely installi ...Show All
Visual Basic for loop to cycle trough objects ?
How can I automate this. I have 81 imageboxes and they are all enumerated like this. Pict1,Pict2 ,...,Pict81 Is there a way to do something like this for i=1 to 81 pict[ i ].creategraphics Next So that I can automate a lot instead of making over 3 times 81 lines of code for nothing Thanks in advance For ix As Integer = 1 to 81 Dim pic As PictureBox = Me.Controls("Pict" + CStr(ix)) If pic IsNot Nothing Then ... End If Next ...Show All
.NET Development Ftp Upload File
This is my code snippet for file upload. The problem is after all the bytes are written on the server, while doing requestStream.Close() I get error as underlying connection was closed. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri); request.UsePassive = false; request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential("xyz", "xyz"); Stream requestStream = request.GetRequestStream(); const int bufferLength = 2048; byte[] buffer = new byte[bufferLength]; int count = 0; int readBytes = 0; FileStream stream = File.OpenRead(fileName); do { readBytes = ...Show All
Visual Studio Express Editions How can I get the current Browser URL?
I have the need to automatically get the current page's URL for the user, how can I do that in VC++ 2005 express please DOSrelic wrote: I know very well about the capabilities of the browsers to save .mht files but if you try to do that in IE7 and there are any spaces in the path it substitutes %20 for each space making that file inaccesible! Besides whith with the amount of ASP.NET infiltrating the web it is impossible to save the pages without IIS and probably the initiating server's input too! These 'poor' people you speak so disparagingly about have scrimped and saved to upgrade their operating system are not stupid but cannot afford broadband as well! I do not believe you have saved a .mht with IE7 because 50% of t ...Show All
Visual Basic String without terminator "
Hi there, I was using an array of chars to take chars from a serial port buffer. But, when I do a cast to a string, for some strange reason, my string becomes something like string="haskjdh Without the last " !! I think this is really strange, did it happen to any of you P.S. Now I use the ReadExisting method that returns a string directly, but I really curious about the reason for this strange error :-) Thx Code: Dim buf(100) As Char If (Me.SerialPort1.BytesToRead > 0 And Me.SerialPort1.BytesToRead > 100) Then Me.SerialPort1.Read(buf, 0, 100) ElseIf (Me.SerialPort1.BytesToRead > 0) Then Me.SerialPort1.Read(buf, 0, Me.SerialPort1.BytesToRead) End If dim st as string=buf ...Show All
Visual C++ Microsoft Visual C++ Runtime Library error question
I am new to this as of today. I am posting my concern because I nomally work on mac's. I have design software on windows xp and all of the sudden Dreamweaver wont work. I get this " Microsoft Visual C++ Runtime Library error ". I don't understand why! I have seen this error message all over the internet but I can't find a fix for dreamweaver. If you could help me I would really apprieciate it, thanks, Julie aka design girl I thought so, but I have re-installed several times and no luck. Most of the time the program just acts like it is going to open and then it closes. But sometimes it will give me the error message. ...Show All
SQL Server Word Wrap database query results
In Visual Studio 2005, when you are looking at the results of a database query, or table (show table data) etc., how can you make the results field values wrap like we use to be able to do in VS 2003 and in Visual Interdev. If the field values were longer then what was display in the grid output results, you could expand the column width and row height and the field values would wrap to fit. If I try to do the same thing in VS 2005 or in sql enterprise manager 2005 the field values don't wrap, they remain displayed in one long line and they just get cut off after a specific number of characters. If the problem is what I think, you have a default lenght for non xml data to retrieve to grid, of 65535 ch ...Show All
SQL Server Digest Authorization on HTTP Endpoint
I need to enable digest authorization on an HTTP endpoint, because the integration tools for some java code that needs to connect to it does not support NTLM or kerberos - only digest and basic. I setup a test endpoint in order to test only digest authorization (as opposed to the final endpoint which needs both digest and integrated), but I can't even get that to work - when I point my browser to it to see the wsdl it pops up with the login box, but the login always fails. I have the feeling I'm missing some very minor piece that will just make the whole thing work. Below are some log entries as well as the script to create the test endpoint I'm hitting. Any ideas are very welcome, I've banged my head on this one for far too long. ...Show All
Visual C# Writting to a file
I was wondering if it is possible using streamwriter to make some of the text you write to a file bold I have been trying to figure this out, and have no luck in searching various websites if it is possible. What I am trying to do is, write to an .rtf file and have for example: "Name:" in bold and then the person's name normal style afterwards. If you can't using streamwriter and there is a way, any help would be appreciated. Thanks in advance. Yeah, this might not be the best way to write to an rtf file, but it seems simple enough. I did notice that the header part is required though. To figure out what parts are necessary and what parts aren't, create a new text file in notepad and save it as a ...Show All
Visual Studio Express Editions Text Problem...
i am having a problem with a form the text is all blurry and sometimes doesnt show up.. What fonts, colors etc are you using. Does this only occur on VB forms in this application or all forms in any VB application. ...Show All
Visual Studio Team System Cannot connect to sites web service for team foundation
When right clicking on my team project the 'Show Project Portal link is grayed out'. I have tried to access it through 'http://tfsserver/sites' url but recieve this error: HTTP Error 403 - Forbidden: Access is denied. Internet Information Services (IIS) I do have administrative rights for tfs so I don't believe it is a permission issue. It was working previously after I first installed vsts but during the process of getting everything configured for the team I somehow screwed it up along the way and it is no longer accessible. Thanks Joe, I downloaded the TFS Admin Tool but when I try to connect I recieve this error: Unhandled exception has occured in your application. If you click Continue, the applica ...Show All
SQL Server Can i Send query string to reporting services 2000 ?
I would like to build the query on my code behind and send it as is not to send params and use a build query on the R.S Can i do it how can i do it Hi, what do you mean by "build query" If you just want to open a report you can go with the URL Access syntax which can be found in the BOL. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server SQL 2005 upgrade
Hi all, We need to update our SQL 2000 to 2005. We plan to use it on a computer with 2 processors. Actually we update 2 servers that form a cluster, running web applications. I think there is no update version from 2000 to 2005. So we have to buy 2 full versions of SQL 2005 For our case it's probably best to buy SQL 1CPU version But we have 2 processors on each server. Is there a CPU license Do we have to buy 2 SQL 2005 1CPU plus 2 licenses for 1 (more) CPU Sorry, I am not so familiar with SQL. I am not the guy making the upgrade. I just have to order the correct version and licenses. Ok, I found out that there are processor licenses. But strange is that I don't find them in the online shops. (We are in Sw ...Show All
Visual Studio Microsoft DST for VSS 2005 with multiple repositories
I have 150 repositories and I really dont want to go into each repository and open the Timezone tab. My question Is can I just change one line in the srcsafe.ini Below are the instructions for the DST patch for VSS 2005. VSS 2005 All clients and servers require the Microsoft DST patch. It is not currently know if this patch will be applied automatically or will need to be installed manually. Visual SourceSafe 2005 administrators must perform the following task after all server and client computer operating systems have been updated: 1. Start Visual SourceSafe Administrator. 2. On the Tools menu, click Options. 3. In the Options dialog box, click the TimeZone tab. 4. Click OK, and then exit Visual Sourc ...Show All
