xw's Q&A profile
Visual Studio 2008 (Pre-release) Simple watermark effect
I'm trying to create a simple watermark effect in my interface using XAML and replicate an effect I used to do in WinForms. The effect is a large 256x256px graphics file that remains anchored to the bottom right corner of the container (with some margin and transparency). I do know there are such things as the ImageBrush to work with pre-set bitmaps, but I need something which won't make the file go beyond its original size when the window is resized. The object I'm applying it to is already hosting functional controls and I'd like to avoid having to somehow layer a canvas in somewhere and mess up the automatic grid's I'm using for everything else. ...Show All
SQL Server Let user choose column in custom component
Hi, I want to recalculate some columns in a custom component, due to a formula using a single column as factor. What will be the best way to let the user choose the single column (factor) beneath the columns to work with. Is there a way to use customproperties other than strings. DropDowns for example. If so, do you know a tutorial oder code snippet Thanks Hi, Thanks. For now it was enough to work with a Ruleset and StringConverter. The PropertyDialog uses the Ruleset as input for a dropdown. ...Show All
Windows Networking Development Problem with QOSQueryFlow
When I use the qWAVE API QOSQueryFlow, a problem occurs. UINT64 rate; ULONG Size=sizeof(UINT64); bool b=QOSQueryFlow(QOSHandle, FlowId, QOSQueryOutgoingRate,//QOSQueryFlowRate, &Size, (PVOID) &rate, QOS_QUERYFLOW_FRESH, NULL); If I set parameters to query the bandwidth with QOSQueryFlowFundamentals, The function succeeds. However, when I wan't to query the flow rate, I always get failed with a return value of false. Then I use "GetLastError();", which returns 87 ERROR_INVALID_PARAMETER Thanks for any help... Short answer about *reservations* is no. Windows does not interact with network elements to reserve bandwidth specified when ...Show All
Software Development for Windows Vista Is there automatic reloading and executing when recovering from a crash?
Hi This may be a stupid question but I really need to know what to do in this case. I'm developing a state machine workflow, I have an EventDrivenActivity with a TransactionScopeAcitivty in which I have activities to save to my data model. If something goes horribly wrong after the persistence point on the close of the TransactionScopeActivity before the persistence on idle (I have this set). Can I expect that when the outside factors are resolved the runtime will take care of reloading this partially complete EventDrivenActivity automatically and finish exection from after the TransactionScopeActivty. Or... am I going to need to somehow check for this situation and load the workflow instance to have it continue exection Any help wo ...Show All
Visual Studio Express Editions Question about Forms
Dear All i have developed an application which has mainForm, form1, form2 and form3, in mainForm.cs i created a button and created form1 using the following code form1 frm = new form1() frm.show() now in form1.cs i created a button and created another form as following form2 frm2 = new form2() frm2.show() now in form2.cs i created a button and created another form as following form3 frm3 = new form3() frm3.show() when i am pressing "Alt + Tab", i watch Four forms. My Question is 1) How to see one application form 2) Is there any way that old form be placeholder of newly created form 3) Or any trick An efficent solution will be appretiated Thanks Hi Just call to S ...Show All
.NET Development HttpWebRequest encoding
Hi, is there a way to control the character set (encoding) used by the HttpWebRequest class I'm having problems with a request that has querystring parameters whose values contain accented characters ("e", for example). If I create the HttpWebRequest from a string they are (correctly) url-encoded, but unfortunately the server I'm requesting from does NOT url-decode the parameter values! I've made the same HTTP GET from IE using both escaped strings and simply typing the accented characters straight into the address bar. I get the correct response only in the latter case. So I tried to construct my HttpWebRequest from a Uri instance instead, using the (string url, bool dontEscape) constructor to avoid url-encoding. Lookin ...Show All
Visual Basic Unable to add SqlDataAdapter to project
I am running the following: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Enterprise I have a simple web page that I want to put a SqlDataAdapter on. It is not on my Toolbox, nor will it allow me to add it to the source. I had to check the option in Choose Items, the toolbox blinks, but it doesn't show the tool. How do I get that tool into my program Bill Public Sub LoadData() Dim ds As New DataSet Using Adapter As New SqlClient.SqlDataAdapter Adapter.SelectCommand.CommandText = "SELECT * FR ...Show All
SQL Server share report
I got the following in my report server log: w3wp!library!1!01/29/2007-17:15:39:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information., SharePoint content service is null. Report Server may not have joined the SharePoint farm, or Report Server service account may not have been granted access to farm.; Info: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information. I tried to make the report server integrate with share point 2007. all servic ...Show All
Architecture Master/Defail entities and architecture problem in ASP.NET
Hi gurus, The company in which I work experiences in developing Windows Forms applications and we have developed a kind of 3-tired architecture for that kind of programs but for some business reasons we have to produce some web applications with ASP.NET and we have problems designing an architecture for these new apps because of the major differences between Web and Windows application models. I have studies some tutorials and articles about the various ways we may implement DAL and BIZ layers but in none of them I could find a solution for Master/Detail entities. In Master/Detail entities some business rules must be perfomed by Master entity over it's details. how can we keep the master entity alive while the end user is editing the it ...Show All
Visual Studio Express Editions Favicon editor?
I have installed Visual C++ 2005 Express. Is there a favicon editor in it If so, where is it, and is there a tutorial If not, what do you recommend for a newbie to make favicons 1. There is no image editor of any kind included in VC++ 2005 Express. 2. There is a good Wikipedia article that also serves as a brief tutorial. 3. You can use an icon editor (search the public software download sites) or you can use any image creation software that allows you to save a small GIF or PNG file. You can even use Microsoft Windows Paint, which is part of any Windows system that Visual C++ 2005 Express Edition runs on. The version on Windows XP Pro will save files in PNG and GIF formats. Have fun, - Den ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need a practical walkthrough for XNA
Hi. Does anyone know where I can find a practical and step by step walkthrough for XNA to create a simple 3D box(cube) I'd be happy if you could also lead me to the source of MS walkthroughs for XNA. The documentation for XNA itself does provide a walkthrough for this purpose, but it seems buggy. I need a fresh one! This is the first Beta, most people have been dealing with this framework for less than a week. There might be a tutorial that simple out right now, but I haven't seen it yet. So you might have to wait a few more weeks for more people to get their feet wet and explore it a bit more. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed Direct3D 10
Since XNA only supports DirectX 9.0 Where is Managed Direct3D 10 I hope there will be Managed wrapper for Direct3D 10 thanks You’re right in saying that there isn’t that much we could do that you can’t – but we are interested in doing an official version of MDX10 and we’re currently researching our options. What we’re looking to do is have parity with the native APIs as much as possible to ensure developers have the same power in .NET as they do in native. Stay tuned for updates, betas, news… It’s important to note that unless you want D3D10 specific features (for which there’s no hardware available yet) XNA Express is an excellent option for game development. The amount of s ...Show All
Software Development for Windows Vista Custom Service loading from a different client request
When I receive a web service request to the existing workflow instance, it can't find the service that I created earlier. I wonder if I need to add my service to the web config file that when the request came, it can load and execute that service. Any ideas Correct, in case of web service, the workflow services should be specified in web.config. When the workflow runtime is running worklfow services cannot be added or removed. ...Show All
Visual Studio Team System SDM Directory resource
Hi, I'm trying to create custom SDM Resource which represents a set of required for installation on "ImageServer" images. The model of resource contains FileSystem:Directory resource, but when I go to Resource settings tool window, I cannot see any Directory properties. What is a purpose of the Directory and File resource Why it is not allowed to add file to the directory, according to SDM model definition ( < Property Name = " SupportsUserCreation " Value = " false " /> ) Evgeny Popov Hi Evgeny, Directory and File Resources defined in Microsoft.FileSystem.sdmDocument are models for generic directory and files. However their relationships are de ...Show All
Visual Basic Generics, Collections, and Inheritance...
I have an inheritance model as follows: Public MustInherit Class ProviderBase End Class I'm not quite following you. A collection is a storage of an underlining type. Here the underlining type is a derived type of a base type. Why are they not the same So, you are saying you should consider a collection as a type, not the underline storage of a type. What is the purpose of Generics then ...Show All
