pmak's Q&A profile
Visual Studio 2008 (Pre-release) ComboBox bound to an XmlDataProvider
Hi there, I have an Xml document which is bound (using the standard {Binding XPath=...} syntax) to a bunch of controls. One of those controls is a ComboBox. How can I then bind a list of possible values to that ComboBox ItemsSource such that when one is selected it's value is pumped back into the Xml document Binding the ItemsSource isn't the problem, rather having the selected item reflected back in the xml document. So the xml document that i'm working with might look something like: <xml> <container> <somevalue>myvalue</somevalue> </container> </xml> And the ComboBox is bound something like: <ComboBox SelectedItem={Binding Source=xmlDataProvider, XPath=xml/container/somevalue} I ...Show All
Windows Live Developer Forums Quick question about keyword CPC
In essence what I would like to do is tell MSN that for this keyword I'm willing to pay $$$ maximum. It should then decide what the cheapest price is for me (I want this independent of the match type) and only increase the price to make sure my ad appears. Now the other confusion I have is related to the different match types. I want my CPC to be for all match types but the option of having the different match types is intriguing. Does it mean that I may end up paying more or less for different match types Is it possible to give the MAX (which is what I'm really looking for) for all different match types I'm basically trying to get the same type of logic that we're currently using on Google to MSN. Google has the notion of highest bid we' ...Show All
SQL Server data are not allocated in the properly NDF. Why?
Hi everyone, The followings actions works fine. But only the first NDF (PRIMERO) is growing up. I don't get the point at all, I though that SEGUNDO would store February, TERCERO March and CUARTO April to December (according RANGE LEFT) I feel that there is something very important that I did not in all of this... I'm stuck. --Definition table CREATE TABLE [dbo] . [DatosMensuales] ( [Id] [int] NOT NULL, [Concepto] [varchar] ( 50 ) COLLATE Modern_Spanish_CI_AS NULL, [FechaAlta] [datetime] NULL ) ON rangoMesFE ( FechaAlta ) CREATE PARTITION FUNCTION rangoMesFP ( datetime ) AS RANGE LEFT FOR VALUES ( '200601' , '200602' , '200603' ); CRE ...Show All
SQL Server Trigger- dump 'inserted' table to temp table
I want to pass the 'inserted' table from a trigger into an SP, I think I need to do this by dumping inserted table into a temporary table and passing the temp table. However, I need to do this for many tables, and don't want to list all the column names for each table/trigger (maintenance nightmare). Can I dump the 'inserted' table to a temp table WITHOUT specifying the column names It is hard to implement this type of auditing code. Unfortunately, the inserted/deleted virtual tables can only be accessed within the trigger code and only within the body of the trigger as static statements. So this means these tables are not visible even in dynamic SQL code executed from trigger body or SPs that are ...Show All
Visual Studio Team System Cannot use TFS Team Explorer and VSS2005 alongside
We are unable to use VSS2005 alongside TFS Team Explorer. If we change source control plug-in in Tools to VSS2005, and then try to load a VSS2005-controled solution, it automatically switches to TFS and cannot connect to VSS2005. If we try to switch source control again to VSS2005, after the solution is loaded, it thinks it's a new solution and tries to add it anew into VSS2005. Basically, it gives preference to TFS whatever ways of loading VSS2005 solutions we try. If we uninsall TFS Team Explorer, VSS2005 works again ... not good enough ... You're right, the solution file had the old bindings for TFS. We had the following scenario with this solution: 1. Was checked into VSS6 2. Was checked into TFS 3. Was checked into V ...Show All
Windows Forms Form responding slow
Hi, I got 2 forms. From1 has buttons and some checkboxes to start a test after a button is pressed. If a button is pressed, it opens Form2. When i'm done with Form2 i close it. Then i get back to Form1 and then it starts responding slow. This only happens when i start a test that has filestreams and filereaders and some more stuff with files involved. How can i see whats making it slow I disposed everything in Form2 when it gets closed. Even when i close the Form1 its still running, I have to press the 'stop' button in order to continue. Any suggestions anyone Thanks in advance! Hi guys, Thank you for your reply. I got DoEvents in a while loop which is in Form2. But if i close Form2 isn't DoEvents stoppe ...Show All
.NET Development POST WebRequest
Hello, I'm trying to log in to a website programmatically. My first thought it was to construct a string with the requested values . Example for the following login form : <!-- login form --> <form action="/login.php" method="post"> <input type="hidden" name="action" value="login"> <input type="hidden" name="url" value="/forum"> <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script> <table cellpadding="0" cellspacing="3" border="0"> <tr> <td class="smallfont">User Name</td> <td><input type="text" class="button" name="username" id="navbar_username" size="10" accesskey="u" tabindex="1 ...Show All
Visual Studio 2008 (Pre-release) Problem in Listview
use a ListView with GridView. I use CellTemplate in GridViewColumn for databinding. In my CellTemplate, I define two buttons. I want to select the corresponding ListViewItem when I click the button; How can I get ListViewItem ro GridViewColumn from the button’s Click_Event handler this should help http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=336688&SiteID=1 ...Show All
SQL Server Open report in new window: window.open method gives error
Hi, I am using SSRS Microsoft SQL Server Reporting Services Designers Version 9.00.1399.00. I want to open linked report in new window. I tried whats mentioned in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=240172&SiteID=1 but i get an error on Window.Open method. How do I solve the problem Thanks to display a linked report in a new window, right-click on the text box containing the link text and go to 'properties', then the navigation tab. In the 'jump to URL' field enter the full path to linked report on the report server as follows: http://<servername>/ReportServer/Pages/ReportViewer.aspx %2f<parent folder>%2f<name of linked report>&rs: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fullscreen and Alt+Tab
Hello, I have encountered the problem that the GraphicsDevice.DeviceReset event is not called, when I run my program in fullscreen mode, switch to another program by Alt+Tab, and open my fullscreen program again. But the DeviceReset and DeviceCreated events of the graphics component are called. All managed resources get lost, it seems that the device is disposed and recreated. Is there a way to let the graphics component keep the device and only reset it My test program is based on the Windows Game (XNA) template of XNA Game Studio Express Beta. Hmm. The logic in GraphicsComponent is that if the Reset failed then we tear down and recreate the device. Can you hook the DeviceReset ting event and see if ...Show All
Visual Studio Team System Get Specific Version
I have multiple Team Projects. What I am seeing is that when I select a Team Project from Source Control Explorer and do a "Get Specific Version", I not only get source code for this Team Project, but all the other Team Projects I have as well. I have selected Type=Get Latest and checked: Overwrite writeable files that are not checked out and checked: Force get of the file version already in workspace. Overwriting the Team Projects that I did not select is unexpected and can be a problem. How do I correct this C:\Program Files\Microsoft Visual Studio 8\VC>tf workfold ================================================================== Workspace: GV-XXXPLT Server: http://gv-tfs:80 ...Show All
Windows Forms Datagrid
Hi everyone, May i know how to read all the values in a datagrid one by one. I want to add all the values in each row in a particular column in the datagrid. Is it possible to do so A DataTable is an 'invisible' control that is part of ADO .NET 1.0 and above. Suggest you either get a book on ADO.NET or Visual Studio/Basic .NET 2002 or later....not VB6 or earlier or check the MSDN library if you have access to it. Infact of the data components are in the Data folder (not the Toolbox). Bye, ...Show All
Visual Studio Team System Product Key to migrate from TFS Workgroup edition to Standard edition
Hello, we have TFS Workgroup edition (supplied along with MSDN subscription package) and successfully used it in our development process . Now we want to upgrade it to Standard version (5 CAL is really limiting us). As says this article ( http://msdn2.microsoft.com/en-us/library/ms404848(VS.80).aspx) the only thing we need is the right Product Key. To get it, we bought TFS and 25 CALs for it and received yesterday electronic version of licenses. BUT, as we were told in our local Microsoft’s technical support, this product DOES NOT HAVE any activation keys itself and therefore they can’t give us any Product Key to upgrade from Workgroup. The only thing they suggest is to install it from the scratch, but we don’t want to do ...Show All
SQL Server Export SQL DB into a plaintext format
Hi, Is it possible to export SQL DB into a plaintext format Just as I would use mysqldump to export a MySQL DB. I got to the point when it extracts the DB structure into plaintext format, but all the data is missing. I would highly appreciate if someone could assist! bcp Utility The bcp utility copies data between an instance of MicrosoftR SQL Server 2000 and a data file in a user-specified format. Syntax bcp {[[ database_name . ][ owner ] . ]{ table_name | view_name } | " query " } { in | out | queryout | format } data_file [ -m max_errors ] [ -f format_file ] [ -e err_file ] [ -F first_row ] [ -L last_row ] [ -b batch_size ] [ -n ] [ -c ] [ -w ] [ -N ] [ -V ( 60 | ...Show All
Visual Basic need help saving a print image
In my program I have a print routine that prints one or more graphics pages using the PrintPage event. This works fine with print preview, page setup and all the normal things. Now I want to add the capability to create and save a bitmap of the print image instead of printing to the printer. Clearly, all the code is in place to create the print image, I just need to save it. It does not make sense to me to make a bitmap from the screen. But how do I create a bitmap from the PrintPage event Hey everybody, He wants to capture the printpage e.graphic images into reuseable images or bitmaps! See: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1032424&SiteID=1 ...Show All
