Dave21's Q&A profile
Visual Studio 2008 (Pre-release) 3D performance in WPF
Hello I created a simple 3D model (there are two spheres in this model) with 3Ds max, exported it as 3ds file and then converted to XAML by using ZAM 3D. Then I inserted created viewport into a scene. I was using Daniel Lahenbauer's Tracball class for rotating around a model. When a model gets bigger (after zooming in), it starts to be hard to rotate around or to zoom in again, so the performance is bad. By the way, I have watched Daniel Lahenbauer's video about 3D integration into WPF on MSDN TV http://msdn.microsoft.com/msdntv/episode.aspx xml=episodes/en/20060504WPFDL/manifest.xml and there is a 3D globe demo. As I have seen, this demo has a posibility to move around the globe, and the performance is just great! So how to ma ...Show All
Software Development for Windows Vista CardSpace Branding/Co-Branding
Hello, I've been following CardSpace and .net 3.0 for a bit now, and having access to the private betas has really helped me understand the possibility and use of CardSpace services. I am currently working on heavily restructuring my company's corporate website which will contain a section specifically for ClickOnce deployment rollouts for our various customers. Because we are adopting .net 3.0 early (and have signed the agreements necessary) we are also planning on using CardSpace as the authentication source for accessing the ClickOnce deployment area, whereas the information provided in the user's card will determine the deployments available to him/her. One of my concerns is what is the current standing with the CardSpace team ...Show All
Visual C++ Combo Box Question
hi I'm making my first 'simple' application to get me started. its the basic windows Form with just a combo box containg just 3 options ' a or b or c ' ok it works fine but how can i make it remember my last selection i mean when i run the application again it shows nothing and you have to select the option all over again. registry is unneeded for this scenario and far too advanced. you can serialize the collection - so when adding items into a combo box, go through each item and add them into an array. you can then serialize the array/collection and next time deserialize the xml file to restore the objects back to the array collection. http://msdn2.microsoft.com/en-us/library/system.xml.serialization.aspx Take ...Show All
Smart Device Development Transparent listbox
hi all, Is there any way to have transparent list box coz i want to implement gradient style in that according to the theme selected.please help needed Actually listview control support gradient - just set the ex style to LVS_EX_GRADIENT: public static void ListViewSetGradient(ListView lv) { SendMessage(lv.Handle, LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_GRADIENT, LVS_EX_GRADIENT); } private const int LVS_EX_GRADIENT = 0x20000000; private const int LVM_FIRST = 0x1000; private const int LVM_SETEXTENDEDLISTVIEWSTYLE = (LVM_FIRST + 54); ...Show All
Internet Explorer Development ActiveX Modal Dialogs do not work in IE7...
Our product is suffering some pretty severe problems because of IE7. We've starting getting calls that dialog windows become hidden. We've heard this is a threading issue. We found out that the problem is actually much worse. Modal dialogs don't seem to function correctly in IE7. You can recreate the problem using VB6 by doing this: 1. Create an ActiveX UserControl project. 2. Add a form to the project (form1) 2. Put a button on the user control (usercontrol1). 3. Add this code to usercontrol1. Private Sub Command1_Click() Dim objForm As Form1 Set objForm = New Form1 Call objForm.Show(vbModal) End Sub 4. Build the project as an OCX somewhere on your hard drive. 5. Find your control's CLSID in regedit. I ...Show All
Visual Studio 2008 (Pre-release) The certificate must have a private key. The process must have access rights for the private key.
Hello All, I used makecert to generate a certificate named 'ServiceModelSamples-HTTPS-Server and installed it in LocalMachine\My store on the server. I used the FindPrivateKey utility to find the keyset file and gave full control to NetworkService, InternetGuestAccount and ASPNET machine account. I installed the certificate on my client machine as well in CurrentUser\Root as well as LocalMachine\My. My service is hosted in IIS and I have enabled 'Anonymouse Access' to the virtual directory and checked 'Accept Client Certificates'. I can browse the svc file to view the wsdl from the client machine. However, I get the aforementioned error when I run my client app and make a call to the method using the service proxy. My client ...Show All
SQL Server error msg - The text, ntext, or image data type cannot be selected as DISTINCT
Hi all, I have a SQL Stmt something like this: SELECT id,remarks from table1 UNION SELECT id,remarks from table2 note: the REMARKS field type is TEXT I want to query the distinct records so i dont want to use the UNION ALL but I'm receiving the error msg below Server: Msg 8163, Level 16, State 4, Line 1 The text, ntext, or image data type cannot be selected as DISTINCT. Im Just wondering if there is any work around to the above SQL Stmt. Thanks and have a nice day to all. You can cast the column to varchar(8000) if the values fit within the limit of varchar. Otherwise, there is really no way to do this as indicated by the error me ...Show All
SQL Server HELP : How to back up a database on ms sql 2005 studio express
hi Im using the free version of ms sql 2005 studio express. I can upload databases, edit them and check them etc. how do I back them up on to my pc, I do not have the server with me, my ms database is hosted on namesco.co.uk hosting. I know how to right click the database, click task and back up. But I dont know where to back it up Whenever I try to back up to somewhere on my c: drive it won't. I think it also only backs up on a .bak files. Which I don't have. I've looked on the net and it says you need a seperate hard drive or tape drive for back. Do I need to add another hard drive to my pc, if yes what do I format it as. And also how do I get a .bak file Here is a screenshot of where I can get to:(you might have to cop ...Show All
Visual C# Add Datarow
I am using the following code to 'test how to add a datarow' But it does not seem to work- can anyone correct the code for me.. //test add rows myConn.Open(); DataSet dtSet = new DataSet (); myCmd.Fill(dtSet, "DETAIL_POLEVEL3" ); DataTable dt = dtSet.Tables[0]; DataRow workRow; for ( int i = 0; i <= 9; i++) { workRow = dt.NewRow(); workRow[0] = i; workRow[1] = "CustName" + i.ToString(); dt.Rows.Add(workRow); dt.AcceptChanges(); myCmd.Update(dt); } This is a rather large topic so I'd recommend you look at some MSDN articles on saving data . Basically, you need to create an insert command, which would insert a ...Show All
Visual C# read probing path from dll.config file
how can force application to read probing path from abc.dll.config file instead of application config file. Because I have created addin for which application is Excel.exe and I wants to read probing path value from dll.config file Thanks in advance this gives correct value for configuration , but how it will change current domain set up values. here is alternate code I am using. But it seems like that excel is still searching for assemblies in Excel.exe folder instead of "dll folder\assemblies\". private void setAppDomain() { string dir = Path .GetDirectoryName( Assembly .GetExecutingAssembly().Location); AppDomain .CurrentDomain.SetData( "APP_NAME ...Show All
Visual Basic Save Contents of Textbox into a .txt File
On my form, I have a textbox that a user can type in. I need a way to save the contents of the textbox into a text file to a path ( \\server\folder\folder ) AND overwrite an existing text file. Does anyone know a way to do this with both option strict and option explicit turned on Thanks in advanced! This is the complete form I have. I have a textbox and a button on it. Imports System.IO Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click File.WriteAllText(sfd.FileName, TextBox1.Text) End Sub End Class ...Show All
.NET Development Can't gather IIS metadata
I'm using this code (and I have also tried any other existing example on the planet earth) to retrieve meta data info from IIS6. Every time the code run it ends with a COM exception. Anyone can shed some light on this problem Sample code: (C#) DirectoryEntry IIS = null ; IIS = new DirectoryEntry ( @"IIS://" + WebServerAddress + "/w3svc/1 /root" , Domain + "\\" + base. Username, base. Password, AuthenticationTypes . SecureSocketsLayer ); Type typ = IIS . Properties[ "IPSecurity" ][0] . GetType(); object IPSecurity = IIS . Properties[ "IPSecurity" ][0]; once the IIS object gets created, looking at it with the VS debugger visual ...Show All
SQL Server mirroring between two database
Hi, i'm a novice of sql server and I have a problem. I have to reply a server in which there are database that are managed with sql server 2000 sp3; what I must make in order to set up the mirroring between the database of the two server so that the data are always aligned thanks for the attention best regards alessandro I am afraid I didn't understand your question. Are you referring to the Database Mirroring feature This is a new feature in SQL Server 2005 (fully supported in SP1). Depending upon what you are trying to achieve (I don't understand that from your post), you have several technologies available in SQL Server 2000, but I don't want to point you in a direction without knowing what is your goa ...Show All
Visual Studio MSDN Libary Install error
I have a error whilst installing the May 2006 version of MSDN Libary (I typed my message just a minute ago but stupid me hit a button which resetted the form :( ). I have this error: http://img70.imageshack.us/my.php image=faultbz3.jpg Anyone a answer I installed the 3 disks in a different folder (3 folders:P) Yeah I downloaded it from that site. But when I wanted to post my original question, my browser hanged, so I must typed it all over again, not in the mood for that. But, yeah, anyway, I will try that. ...Show All
Software Development for Windows Vista enabling the telnet
hello sir how can we make microsoft telnet port #23 to listen in my system the corresponding is not in listen state. Even i saw in regedit entry, in that also it is showing the entry but when i type the command netstat -an 1. it's not show the port #23 in listen state. Can any body help in this regard Thanks in advance This forum is for questions about Windows Workflow Foundation. Try asking your question here is you can find the correct forum for your question. ...Show All
