AlexBB's Q&A profile
Visual Studio 2008 (Pre-release) BUG: 'Converter' doesn't work for nested ItemsControl
I think there is a bug concerning 'Converters' when using nested bindings. The example program in this solution should print the following output: 1:1.1 2:2.1 2.2 3:3.1 3.2 3.3 The example program iterates through two levels. I only use a converter for the second level. The converter doesn't convert anything, but is used to illustrate the problem. The output that I receive looks like: 1:1.1 2: 3: I think this is a bug in WPF. Compile and run the example program and you'll see what is wrong. Remove the 'Converter={...}' part from the 'TextBlock' and you'll see that everything works fine. Check http://home.ict.nl/~ramklein/Download/ExposeBug.zip for the complete example that clearly illustrates the bug. Does anyone have details ...Show All
Visual C# create object on another thread
Hi, I need to be able to create objects on a designated thread. This thread waits and whenever a request comes from another thread, it creates the desired object, and returns it. The objects I need to be created are derived from Form, so it matters on which thread it gets instantiated. So, essentially, the main thread could do something like: MyForm f = FormsManager.Create(typeof(MyForm)); Where MyForm has a default constructor. Behind the scenes, the Create method switches to the forms thread and instantiates the requested form, and then returns it to the calling thread (all of this, as you see, is transparent). I need to know how to switch from the main thread to the forms thread, and how to return the result (the created form) back to t ...Show All
Visual Studio Future Modeling of Integrated DSLs
Though the following might not always be true (because it needs to be domain specific) are you planning following kind of Multiple DSL models organization If not, what would it be I provide hereby some similar UML modeling structure to clarify (I hope it does :-) UML DSL UML Model (e.g. RSA emx or Rose mdl files…) Visual Studio Solution (sln file) UML Package Visual Studio Project or Folder in that project UML elements in the package Elements spread across one or several DSL model files in a folder. Any diagram in any model can provide a view on an element in another model (with a presentation that is specific to the model/DSL that contains the diagram) ...Show All
Windows Forms The DateTimePicker is Ridiculous!
Why doesn't the DTP allow you to select a Date AND a Time at the same time Instead, (from what I see) you have to create 2 DTP controls: One to select the date and another to select the time of day. Why can't they be on the same popup similar to how MS Access would let you select both Please somebody tell me I'm wrong and just missing something. I've been Googling around to try and find a custom one, but they are few and far between. Aren't there other people with this problem I thought this was basic stuff... If anyone knows of any custom controls that do this, I'd be greatful if you let me know. Thanks! Hello All. Igore99: You can have the DateTimePicker control select both the dat ...Show All
Visual Studio Team System Single Instance BuildData Query?
The BuildStore has a method that returns all of the BuildData for a specific Team Project + Team Build Type. What I'm looking for is a way to just get the last or current BuildData. Is this possible If not, maybe it could be considered for addition in a future update The current method: public BuildData [] GetListOfBuilds( string teamProject, string buildType); We have an automated build environment so we end up with a lot of builds and I would like to query the latest details for everything, instead of getting thousands of build details. Yes you can get the infromation of a single build by using the method : BuildData data = store.GetBuildDetails(buildUri ); The build Uri identifie ...Show All
Visual C# closing an application from a command line
Hi guys, I was wondering if there is a way to close a csharp application from outside the application so that it will still raise the form.onclosing() events. Basically, I don't want any signs of this application to appear on my desktop, so I cannot close the program from the taskbar. I also cannot close the program from the windows task manager, because this will not raise the form.onclosing() events. I'm wondering if there might be a way to do it otherwise, like from the command prompt or run bar. If anyone has any good solutions or alternate suggestions, it would be greatly appreciated. Thanks. geraud c wrote: Well, I know the answer isn't no, because I've been thinking about it and you could do this by having the applicati ...Show All
Visual Studio 2008 (Pre-release) Window shadow
Hi I want to make window without a border with rounded edges plus it has to drop shadow. Everything woks except my shadow doesn't have all edges rounded. Where is my mistake <Window x:Class = "WndMain" x:Name = "WindowRoot" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" AllowsTransparency="True" WindowStyle="None" Background="Transparent" Title="Actions For Checklists" Height="240" Width="285" > <Window.Resources> <Style TargetType="{x:Type Border}" x:Key = "MainBorder"> <Setter Property=" ...Show All
Visual Basic visual basic
hi can anyone help me i have just started using visual basic i am doing some work for college i have been ask to design a progra asking the user to enter their name ,address town postcode and phone number i have to create 5 tet boxs foer the information when i click for the second text box should it say text box two By rename - it means going to the properties windows (F4) and setting the Name property to something more relevent. textbox1, textbox2 .... are simply default names given and depending upon what is already on the form or has been on in the past you not gauranteed that the next number would be what you expect. ie. you created textbox1 and textbox2 and now delete textbox1 before adding a ...Show All
Visual Studio Team System Build checks out and locks local project output dlls?
Hello All, Recently I moved my entire team to TFS RTM. Previously we were using VS2005 RTM with the B3R Team Explorer client and server. We are now entirely on RTM. After the move everything seemed normal, however when any of us attempt to build now the Version Control system checks out and LOCKS the output .dll's from projects referenced from the WebSite project to other projects within the solution. The effect is that only one person can debug at a time, because the output dll's get locked each time someone does a build. Has anyone seen this before or know what could be causing this FYI: We do not have "exclusive checkout" turned on at the server or team proejct level. Thanks, Graham ...Show All
Visual Basic Wireless Connections
Ok so heres my problem. Im trying to automate the addition of a new wireless profile. I dont know if its possibly in VB or if its even possible in general and I have been searching endlessley on the internet. In the Wireless Network Connection Properties window, under the wireless networks tab is a button thats says Add... Instead of having to physically go to a users computer and add a new connection I want to make some sort of program or script that i can give to the user which they will run and automatically confiure the new wireless network connection for them along with the data encrption type, the network key and everything else. Any insight on this would be greatly appreciated. Thanks in Advance, Paul ...Show All
.NET Development How do I remove or stop empty namespace created when apply xsl code to xml?
Hi I have a code to remove all empty elements useing XSL but the out put xml file look like the one shown below My question is How do I remove or stop empty namespace (xmlns="") beieng created. Note: My xsl code top element has <TalkMessage xmlns =" http://www.mydomain.co.uk/CM/envelope "> If I use <TalkMessage> then the output xml file is fine Xsl code <xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform "> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:template match="DataSet"> <TalkMessage xmlns =" http://www.mydomain.co.uk/CM/envelope "> ''''''' ''' ...Show All
SQL Server SQL Server Equivalent for Oracle System Tables/Views
We are in the process of supporting two databases (Oracle 10g, SQL Server 2005) for our application. I want to know what is the equivalent Tables/Views in SQL Server for the Oracle System tables dba_tab_comments, dba_tab_cols Thanks in advance No, its not the same concept as in Oracle. THe INFORMATION_SCHEMA Views will give you metadata information about the database. Starting in SQL 2k5 they will be secured to show only the data that the user is granted for (e.g. Tables he has minimum Select permissions on). HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Where to place the connection string
Hi, I'm creating a Windows app and was wondering where to put the connection string for all five of my methods In my web apps I've always put the connection string in the web.config file but am not sure where to put it on a Windows app, and also how to reference it from its location. Can anyone please help Many thanks, Ok once and for all it's now sorted! Right-click on the project name in solution explorer and go to properties. Under 'settings' put the following items: Name: put in what you want your connection string to be called. Type: select (connection string) from the drop down - close to the end of the list. Scope: select Application Value: enter your connection string (mine was: Data ...Show All
SQL Server SQL Service Broker vs MSMQ
I'm in the process of doing the initial research for the architecture of a large scale, transactional messages routing platform. My initial design called for a series of MSMQ queues and Windows Services, written in C#, to process the messages in these queues. There will be incoming and outgoing queues, queues to store unroutable messages, etc. My application will be routing many hundreds of thousands (and eventually millions) of messages per day. These message are very small (< 200 bytes each) and must be routed very quickly. (<1 second processing overhead per message for high priority messages.) Using the term "routing" may be a bit misleading. The messages arrive via TCP socket connections. I will just need to take in a ...Show All
SQL Server Memory release
I am using SQL Server 2000 SE. When I used my application, the SQL server memory go on increasing & it will never come down. Application runs very slowly. Can anybody suggest how to release memory from sql server. Thanks in advance. Hi Michael, thank you very much. I'm a SQL new programmer. I want to ask more. Suppose some users use my application concurrently. They run different reports and these reports use almost server memory. I saw this in server. After that these users close reports. I watch memory in server, it isn't released. If new report runs, in this case SQL sever/OS will automatically reallocate memory for new task-report. SQL server/OS work this way, isn't it Thanks. ...Show All
