Krutika's Q&A profile
Visual Studio 2008 (Pre-release) DataBinding CollectionViewSource
In my application I use DataBinding to present xml data: <TViews> <View User="name"> <Task Type="asdf" ... /> </View> </TViews> The GUI has a TabControl bound to /TViews/View and displays a tab for each user. Every tab contains a ListView wich shows all ./Task nodes for the user selected with the TabControl. Now I need to group each of this ListViews by @Type. I tried to re-use the sample from msdn but it uses a CollectionView source: [code] <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="clr-namespace:System.Windows.Data;assembly=PresentationFramework" Tit ...Show All
Smart Device Development inplement edit box popup cut-copy-paste menu?
In most PPC applications I've seen if you hold down the pointer on an edit box a menu with cut, copy, and paste appears. That's not happening in my app, I get the circle of dots around my pointer but nothng happens. How can I get this menu to appear oh, my mistake, I misunderstood you. I moved that code to OnContextMenu (and removed the call to SHRecognizeGesture because it always returns 0 here) and I now get a mostly properly functioning menu. 1 issue, when I close the menu by clicking someplace else the OnContextMenu runs again causing the menu to close then redraw (clicking elsewhere again causes it to close and not appear again until prompted). How do I distinguish between the first and the second O ...Show All
Visual Studio Express Editions Adding a reference to a project
I'm trying to access Active Directory using the Active DS Type Library. I add the component through Project menu > Add Reference > Active DS Type Library. I click OK, but when I declare a variable, the pop up list does not include the types that I require (e.g. IADsComputer). It works OK in VB 6, but not in VB 2005 Express. Any ideas anyone Thanks, Iain Hmm, it is there for sure. Try prefixing the namespace that was generated for the wrapper, write it like this: ActiveDs.IAdsComputer ...Show All
.NET Development Using TcpClient to do a telnet session
Background: I want to automate a telnet dialog on a non-standard port (i.e. not port 24). I tried to establish a simple dialog to a remote computer with TcpClient in C#, VS2005. The documentation provides a nice, compact example ( http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx ) which runs, but the output I get is Sent: login Received: ↑ # ' Actually, no matter what string I send, the Received line is the same. I tried adding another send and receive and still got the same Received line. (To me, it almost looks like a bad baud rate, except I am not using a serial connection!) I assume the connection is being established because if I change the port number to a wrong number I get an exception, b ...Show All
.NET Development Need Help On HttpWebRequest
I am using below code to test HttpWebRequest. If you put this URL and use given userid and password its taking me to the invalid user screen. This site is a third party site and I don't have any other info. Below is my code =============My Code-----===================== ========== HttpWebRequest webRequest = (HttpWebRequest)WebRequest .Create(" https:// website"); string postData = "txtLogin=ABC"; postData += "&txtPassword=def"; postData += "&__VIEWSTATE=dDwtNzE3NDAxOTg4O ztsPGJ0bmxvZzs+PvynWXke2BHF7+n +YmeE08t7FGuU"; postData += "&btnlog="; webRequest.CookieContainer = new CookieContainer(); webRequest.Method = "POST"; webRequest.ContentType = "application/x-www-form -urlencode ...Show All
SQL Server setting a null value for mirror_address
Hi I set up some routes incorrectly on one of my servers and included a mirror address when i shouldnt have. now i cant get rid of the mirror address - when i try alter route remote_route with mirror_address = null i get an error saying incorrect syntax near null Does anybody know how i can clear out the mirror address for a route Thanks Anthony Looks like a limitation in our design of the ALTER ROUTE statement. I'll investigate this. Until then the workaround would be to DROP and re-CREATE the route. Rushi ...Show All
Visual C++ MSVCR80.dll
Couldnt find library MSVCR80.dll (Required by c:\Program Files\Windows Defender\MpShHook.dll) Whilst trying to install a CD-Rom Game. Any 1 have any idea how to fix, pls. See the following discussion on the subject http://www.blitzbasic.com/Community/posts.php topic=60232 Also note that this is a forum related to Visual C++ 2005, and is as such not the right place for problems with other or third party applications. ...Show All
Software Development for Windows Vista InfoCard schema
hai Can any one post the info card schema and the envelope security schema..... Thanks and Regards Raguvind Hi Garrett Thanks for your help it really helped me a lot..... but i have some doubts regarding the crd format... < Reference URI = " #_Object_InfoCard " > < Transforms > < Transform Algorithm = " http://www.w3.org/2001/10/xml-exc-c14n# " /> </ Transforms > < DigestMethod Algorithm = " http://www.w3.org/2000/09/xmldsig#sha1 " /> < DigestValue > 5TuCvlZNa6Jh2NGZZpxCDlGoS9c= </ Digest ...Show All
Visual Basic how can i open a text document to a text box and how can i save text from the text box to text document?
i am only new in VB. I want to learn how to open a text document to a textbox, and also how to save texts from my textbox to a text document just using 1 textbox and 2 command buttons(open and save buttons) . please post the simplest code as possible. thank you so much! If the text file in question happens to be a Rich Text Format file (.rtf) then you can do this really really easily using an instance of the RichTextBox class since that class has LoadFile and SaveFile methods. Private Sub Button6_Click( . .. ) Handles Button6.Click RichTextBox1.LoadFile( "C:\foo.rtf" ) End Sub Private Sub Button7_Click( ... ) Handles Button7.Click RichTextBox1.SaveFile( "C:\foo.rtf" ) E ...Show All
Windows Forms MDI windowlist formclosing bug
Hello, In my application, I have an MDI parent form and several MDI child forms. Wanting to allow the user to click the X on the child window and hide the window rather than close it, I implemented the FormClosing event handler as follows: if (e.Close Reason == CloseReason.UserClosing) { e.Cancel = true; Hide(); } This does hide the child window but when the user opens the window again, the windowlist is never populated again for that window. It is undesirable for my application to make new instances of the child forms each time one is displayed so instantiating a new form instance when I want to show the child form is not the solution. The code in the parent window to display the child windows does this: myForm.MdiParent = this; myForm. ...Show All
Visual Studio 2008 (Pre-release) can't install nor uninstall Beta2
hi everybody since last week i am unable to do anything with WinFX beta2 I began with FebruaryCTP : all was fine I upgraded to Beta2...after uninstalling using standard uninstall and the uninstall tools. for some unknown reason WCF didn't install and since then it s a nighmare !! I tried everything...read all the posts here and here....nothing succeed.. right now : uninstall tool says : can t uninstall some components...check you have admin rights (I try to translate as the message is in French...) I have admin rights so the problem should be elsewhere... if i try to install again, there is a message : PerformanceCounterInstaller.exe has encountered an error and it ends... i don t know what to do....except perhaps formatting my hard drive ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A very simple terrain component.
Hey, I was inspired by the game components demo Mitch put up the other day, to toss together a terrain component of my own. Just be sure to supply it with a texture. 'N' generates a new terrain on the fly. It uses the BasicEffect for rendering (cudos to Microsoft for ditching fixed function). The Perspective, World, and View matrices are all hard coded though, so you can't move around or anything. Hopefully someone finds it useful. using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Components; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; namespace Game_Project { public parti ...Show All
Smart Device Development Error in Accessing SQL CE
Hi iam using Pidion (BIP 500) using CE NET 5.0. When i try to access Database (SQL CE 2005) in this Device iam Getting a error as Can't find PInvoke DLL 'sqlceme30.dll'. I tried the same application using EMulator its working well out there but only when it's run in the device its giving me the error. I tried to create a new SDF File using Query Analyser and it gave me a error as "Failed to Intialize the Provider. Please Make sure the SQL Server Mobile Edition is properly Installed" Anyone can guide me on this issue. Thanks in Advance Biju If you mean your program is not working on the device (as in fails to load SQL Mobile on that device), that is probably because some OS dependencie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All
SQL Server Dates not sorting properly
I am trying to sort by a date and then use a secondary sort on another column date field. The first date sorts properly, but the second is not in sorted order. I have also tried ORDER BY first date, second date and that queries the information in sorted by the first date, but then not sorted by the second date. Any ideas BJ ...Show All
