harley_8006's Q&A profile
Visual Studio 2008 (Pre-release) Item Activation in ListView
Hi, I was hoping for some kind of ItemActivated event in the ListView class, but cannot see one. I want to be able to detect users double-clicking or otherwise activating an item in the list view. What is the simplest way to achieve this I tried the ListView.MouseDoubleClicked event but that of course fires anywhere in the ListView. There is the ListViewItem.MouseDoubleClicked event but that only works for double-clicking, not for pressing enter on a selected item. Thanks, Kent Boogaart Hi Rei, Ironically, you posted that right as I was finishing a post for my blog: http://kentb.blogspot.com/2006/12/listviewitemactivated-event-in-wpf.html I believe my solution to be a little cleaner as it ...Show All
Visual Studio Express Editions vs2005 express
will not install hangs on setup.exe. No pop up to tell u its hung up just sit's there. tried the download don't work burn'dt to cd same thing whats up Maybe this blog entry is helpful for you http://blogs.msdn.com/astebner/archive/2005/12/19/505724.aspx One solution mentioned, disable the network adapters when it is installing. ...Show All
Visual Basic How to Reuse StreamWriter Object?
Here i am using Streamwrite object to write something in file and also i have to use it continuously in different function. So,when i closed it then i can read my newly created file but how can i open it again in the same program to write something new Thanks for replying. Here i am writing the code Public Shared Sub Main() Run() End Sub Dim fs As New System.IO.FileStream("C:\temp.txt", IO.FileMode.OpenOrCreate, IO.FileAccess.Write) Dim sw As New System.IO.StreamWriter(fs) ' Create a new FileSystemWatcher and set its properties. Dim watcher As New FileSystemWatcher() watcher.Path = ("C:\abc") ' Watch for changes in LastAccess and LastWrite times, and ' t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Wierd Interface issues
Anyone else having strange interface issues I get things like GameComponents disappearing and later reapearing in the designer, errors that the designer cannot be displayed, etc. I have not been able to reproduce any of these consistantly yet however but they sure are annoying. ...Show All
.NET Development NetworkStream.Send doesn't throw exception on disconnect
The problem in brief: When I pull out the network cable on a PC with the client app, the appropriate exception, on the server app, gets thrown on NetworkStream.EndReceive() and NOT on NetworkStream.Write or EndWrite(). Some more detail. I've done a fair amount of research on this topic. I understand that the only way for TCP to know that one side of the connection has failed at a low level, (i.e. hardware failure or perhaps below level 4 in the OSI model), is for several packets to go un-acked when one side sends some data. I understand that retransmission timeouts get progressively larger, and that by default, Windows sends 5 retries. In my case, I'm using NetworkStream.Write() and NetworkStream.BeginReceive() and EndReceive(). Everything ...Show All
Visual Studio Express Editions SQL Question
I have a few question about SQL. I'm used to MySQL and PHP to start off. Now I went along with Video Tutorials and Help that I saw on the VBEE Start Page. So: If I write a program using a database, does my "client" need to install the SQL Express Edition and Lets say I want to write a DB Program for Music and Videos for my family on a home network. How can I connect to a Network Database. And links to tutorials would help Thanks, Wellnow To connect to a SQL-Database in a Network it's pretty easy. Some example (but there a much more ways to get Data from a Database) Dim cnString as String = [Here goes your Connection-String] Dim cnSQL as new SQLClient.SQLConnection(cnString) cnSQL.open . . . . . cnSQL.close You get the Conn ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Smooth movement
I did a "game" where a ball bounce around the screen. It's running at 60 fps but it isn't a smooth movement. It's an issue from XNA Framework Beta I am working with SpriteBatch class... How are you doing your movement Are you running in FixedStep What's the TargetElapsedTime As you can see, several things could be the problem. Post some code that illustrates how you are doing your movement and we'll take a look. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Device is being used by a thread other than the creation thread.
Hi, My engine design is to create the Dx device and manage lost devices on the same thread, and to handle all resources operations and draw calls on another one. The application is responsible for all synchronizations between the two threads and ensure that no race condition could occur. Given that, D3DCREATE_MULTITHREADED flag is not needed because resources are always created, locked and used on the same single thread. So why is DirectX debug version sending me few warning messages "Device is being used by a thread other than the creation thread" on every Dx calls Is there something wrong in my design Thanks Guillaume >>A warning is just that, a warning. I totally agree. The ...Show All
SQL Server Reports behind a domain with SSL
Greetings, SSL was recently applied to the domain the reports are behind. I have been trying to get the "unsecure dialog" to not appear when viewing a RS report. The report is embeded in a div tag in the aspx page. When accessing the site via https everything still works, if left unchanged, except the "unsecure content" dialog is displayed before the report renders. When I change the URL of the div tag to https:\\<RSSERVER>\<REPORTCOMMAND>, I get the following error: "Content was blocked because it was not signed by a valid security certificate." Anyone know what I need to do to make this work http://msdn2.microsoft.com/en-us/library/ms345223.aspx needs to be followed. ...Show All
SQL Server Map multiple variables using NodeList enumerator
Does anyone have an example of how to map multiple elements using the node list enumerator For example if I have an xml like: <list> <ob1> <el1>1</el1> <el2>2</el2> </ob1> <ob2> <el1>3</el1> <el2>4</el2> </ob2> </list> I want to be able to map the elements el1 and el2 to two different variables during the enumeration. ...Show All
.NET Development Performance: Passing large arrays from .NET to COM components
Hi, I am working on a COM component in C++ that will be used by .NET clients. Clients frequently pass large arrays of points in Cartesian coordinates (i.e. XYZs) to the component. I'd like to know the most efficient way to do this. My tests show conformant arrays are ~7 times faster than safearrays. Safearrays were ~6 faster than sending the array's data one point at a time. So I'd like to use conformant arrays, but I want to make sure they are "safe." Here is my IDL struct Vec3 { double x; double y; double z; }; HRESULT SendData ( [ in ] int numPts, [ in , size_is (numPts)] struct Vec3 pts[]); And it is called from C# with code like this: GCHandle gcHandle = GCHandle ...Show All
Microsoft ISV Community Center Forums LCS complience with IMS / SIP standards ?
1. It seems, to register to Live Communication server from a SIP client, NTLS or Kerbaros authentication is a must. How to register from a SIP client which doesn't support NTLS or Kerbaros Is there any configuration required on LCS to acheive the same 2. If LCS doesn't support HTTP Digest Authentication then its not interoperable with SIP standard rfc 3261 and IMS Please correct me if I am wrong Please revert back !!! Best Regards, Deepak K Bramhapuriya Per our support engineer: Regarding following issue, our buddy has 2 questions on SIP standard in LCS. 1) How to register from a SIP client which doesn't support NTLS or Kerberos 2) Does LCS support HTTP Dig ...Show All
Windows Forms When I open win form app project via VS.NET, controls will be bigger...
Hi, When I open win form app via Vs.Net, I found the main form larger and all controls that it contains will be bigger and gone to other positions. I have very little experience with win form app development and I could not even understand the problem. Thank you So this also occurs when you create a new solution, add a new windows application project to it and create a new form or is this ocurring with an existing solution that you have just opened to work on Does it also happen with web applications ...Show All
Windows Forms textbox and formatting
hi i am using vb2005. i have a textbox which is linked to sqltable and its string(text). the data is an amount-cost. sometimes i want to display data from table or sometimes i want to add new data. whatever it is i want the format of the textbox is like for eg 2,000,000 AED(i mean the separation commas and at the end the currency type.) can i format the textbox accordingly using soem code http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=247523&SiteID=1 this can help, but not exactly wat u looking for,. ...Show All
Software Development for Windows Vista will localiztion verison also get vista Logo ?
Hi , I have a question. If our english version application got Vista Logo, should localization version with the same version need to got it again , or it also can applied the logo of english thanks you My understanding: If it is the same product and a patch is created in minor upgrades then retesting is not required. If it is a different product and/or major upgrade with new components then recertification would be required on the new components. I will confirm this because I heard this not from the actuall Logo team and will confirm with them. But for now this gives you some idea of how it most likely works. ...Show All
