XPress Dave's Q&A profile
Visual C# File Navigation
Is there anyway to tweak the file navigation in the solution explorer ie. Currently, as you start typing it matches the file in the solution explorer for all expanded nodes, would be nice to be able to specify collapsed nodes as well. I generally prefer keyboard navigation to mouse. Messenger Live! has a textbox for searching contacts, something like this would be handy. Any tips and tricks for navigating the solution files welcomed. Cheers There is no way to do exactly what you're asking for. The solution explorer selection works much like other tree controls in windows. I wrote a blog entry that walks through a few of the different tools that VS has for navigating to open and closed files; ...Show All
Visual Studio Express Editions Seem Mouse event priority confuse
Hi, I write a coding for listview's mouse event. (Mouse down and Mouse doubleclick). When I double click the mouse left button, the result is only mouse down will respond. My coding do 2 things. If double click. Open it if it is a folder. mouse down and move will drag and drop the ole data between 2 listview to process. It is work at VB2003.net. The coding as following: Private Sub lvLocal_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles lvLocal.DragEnter e.Effect = DragDropEffects.Copy End Sub Private Sub lvLocal_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lvLocal.MouseDoubleClick Dim lvi As ListViewItem If (lvLocal. ...Show All
Visual Studio Express Editions Loop through system colors?
How can I loop through all the system colors I want to draw a filled rectangle with each of the colors that are available & print them to a laser printer so I can see & compare the various shades of gray that each color prints out as. Thanks... Just replace SystemColors class name with Color: Dim allColors As Color = Nothing Dim colorType As Type = GetType (Color) Dim propertyInfos() As Reflection.PropertyInfo = colorType.GetProperties() For Each propertyInfo As Reflection.PropertyInfo In propertyInfos If propertyInfo.PropertyType Is GetType (Color) Then Dim myColor As Color = propertyInfo.G ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you set structure parameters in effects?
I'm trying to get SAS set up, and there is a struct: struct SasDirectionalLight { float3 Color; float3 Direction; }; ..which I can't set from a EffectParameter. It tells me the ParameterClass is 'Struct', the ParameterType is 'Void' (this says it's a "void pointer" in the help), and StructureMemberCount is 2, which is right. But there doesn't seem to be a way to set the structs values. Has anyone else been able to do this, or is it missing functionality in the effect parameter class Edit the .fx file and separate the SasDirectionalLight inputs into two separate float3 parameters. Then it should be trivial to set them. ...Show All
Visual Studio MSBuild gives LINK : fatal error LNK1104: cannot open file 'user32.lib'
I have a project that will build fine if I'm in VC++2005 and click on build, but fails with the following error if I try to build it with msbuild: LINK : fatal error LNK1104: cannot open file 'user32.lib' I looked at the buildlog.htm file and notice a significant difference in that in the buildlog when it fails there are extra lib files appended to the command line: user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib The user32.lib is what MSBuild complains about. I'm using a vcproj file that was generated with VC++2005IDE. I'm a real noob so I could use some help. Thanks. I had the same problem. Here's ...Show All
Visual Studio 2008 (Pre-release) How can i define a string tables in WPF project
How can i define string tables as resources in WPF project These string tables are used to localize the application. What can i do to add some CultureInfo into these string tables How to localize the application with these string tables Thanks I have found the problem. I define a string resource like this: <Window.Resources> <System:String x:Key="WinTitle" x:Uid="MainWinTitle">Hello</System:String> </Window.Resources> and I use it when the window is OnInitialized(): protected override void OnInitialized(EventArgs e) { &n ...Show All
Visual C++ Windows forms help
Hello everybody i wonder if you can fill a hole in my understanding of programming windows. I am trying to develop a very basic windows forms application. I have a class called class1 and another called game. It is my understanding that the autogenerated form1.h is also a class. Maybe this is because i don't understand. Anyway from game i can declare a pointer of type class1 and access class1's data members, functions etc from a function inside game. I can also declare a pointer of type form1. However when i come to access form1's data members using this pointer it won't let me alter them it just says: error C2227: left of '->richtextbox1' must point to class/struct/union/generic typ Here is the code: //game.h #pragma once cla ...Show All
SQL Server Renamed security groups
Let's say I add a group "Reporting Services Users" with Browser rights on the "home" directory. This works great and the users in that group gets permission to brows the reports. Now let's say I rename this group in Active Directory to "My renamed group". The permissions still seem to work, but when I check the security permissions for the "home" directory in RS, it still says "Reporting Services Users". Is this a bug in RS or is it designed to work in this way I would prefer if RS displayed the current Active Directory name. regards Andreas ...Show All
.NET Development OleDb and datagrid
Hi, I created a simple database using Microsoft Access and I try to display the data using datagrid. However, there is an error occured if I update the change in the datagrid (update,delete and add). The code is the similiar for Sql database and it works fine. So I just don't understand why there is an error. [code] dim da As OleDbDataAdapter Dim db As OleDbCommandBuilder = New OleDbCommandBuilder(da) Dim dsChanges As DataSet If ds.HasChanges(DataRowState.Modified) Then dsChanges = ds.GetChanges(DataRowState.Modified) &nbs ...Show All
SQL Server How dynamically Hide Columns with an expression
Hi, How dynamically Hide Columns with an expression with reporting service 2005 Thanks, Michel DEGREMONT , my blog http://www.micheldegremont.com It ok I find I. In colunm's property > Visibility > Hidden > choose : expression And write : =iif(Fields!displayTaxe.Value=true,true,false) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Access to Files on the 360's memory card / hard drive
I'm currently working on a game intended for Live Arcade (hopefully) in C# and Managed DirectX. The game allows the user to select music from their music collection and bases the game behavior on the selected music file. I am intending to convert it to XNA at some point in the near future and was wondering if there is a way to load a user-selected file on the 360. I would imagine that at least the normal programming kits can do this, and was wondering if XNA will allow me to do something similar to wrapping DirectShow functions in Windows to get an uncompressed audio stream, but on the 360. -Aaron Check out the XNA FAQ here: http://msdn.microsoft.com/directx/xna/faq/ ...Show All
Visual Studio 2008 (Pre-release) svcutil.exe datacontract only is not generating minOccus='1'
Call "C:\Program Files\Microsoft SDKs\Windows\v1.0\Bin\svcutil.exe" /dconly /out:..\..\DataContractXSD.cs /t:code "$(ProjectDir)Data.xsd" Data.xsd file has < xsd:complexType name =" AccessInfo "> < xsd:sequence > < xsd:element name =" User " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" Password " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" ApplicationID " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" ClientIPAddress &quo ...Show All
Smart Device Development Exposing driver functionality to applications
I'm developing a USB-driver, so far I have set up the context of the device I want to communicate with. However now I'm at the point to develop an application which will control the device. On this matter I'm a bit lost, and don't know where to search, or even what to search for exactly. Windows CE loads my driver upon device attachment, when all functions terminate, I'm stuck with a dll in memory and a device context I'll need. Now of course I want to expose some driver functionality to applications so they can work with the device. Any pointers to go, search terms, useful tips, books maybe I decided not to waste time to figure out how to make my own custom API without example code (I'm on a deadl ...Show All
Visual Basic Passing a Byte Array to a COM object expecting a variant
I'm trying to pass a byte array to a COM object, SHDocVw.dll, which expects a variant variable. VB.NET won't let me do this. I understand that the variant type is no longer supported in VB.NET, and I have come accross several references to marshaling, but none that make any sense to me. Anyone have any ideas [my appologies, but as this is an urgent issue for my project, I posted this issue (sort of) on another thread with a subject meant to attract a different knowledge base - sorry for the duplication] Are you now getting the POST information on the web page If not, then take a look at the dissasembly (IL using ildasm) for the Navigate method and send me the declaration. "FName%3dJoh ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Framework wish list
XNA Framework wish list. - System.Net.Sockets o Socket (Tcp & UDP transport) o Do not really need support for TcpClient, TcpListener and UdpClient - System.Security.Cryptography o Rijndael o MD5 - System.IO o FileStream o StreamWriter / Reader - System.Text o StringBuilder o Full UniCode support - System.Threading - System.Diagnostic Thanks, Roger Larsen Thanks Shawn, Crypto is probably not that important, as the algorithms are publicly available, I just hate to have to implement them manually :) Does the Xbox have a machine key which can be used fo ...Show All
