cssjm's Q&A profile
Visual Studio 2008 (Pre-release) Scrolling to selected index in listbox
I have a listbox defined in XAML which is databound to an XML source of about 2000 items. This populates without a problem. Snippet: < ListBox ScrollViewer.CanContentScroll = " True " Height = " 152 " x:Name = " LBBind " Width = " 400 " IsSynchronizedWithCurrentItem = " True " ItemsSource = " {Binding Mode=Default, Source={StaticResource TableDS}, XPath=/Table/MED/@Name} " /> My issue is when I change the selected index within C# and setfocus to an item that is not within view, it does not autoscroll to the index. It does highlight the appropriate row because if I manually scroll down it is selected. What piece am I missing Snippet: LBBind.SelectedIndex = 20; LBBind.ScrollIntoView(20); LBBind.Focus() ...Show All
Visual Studio Express Editions I can't Install Visual Studio Express Editions
I have recently decided That I would like to learn C# or C++ (I haven't yet decided). I have a disc I received with a magazine, with all the editions on, so I found It and tried to install the Visual Studio Express Editions. I had previously installed them, when I first got the disc, and then later (running out of hard drive space) I tried to uninstall them. The uninstallation failed, and I eventually gave up, just deleting the files, then using a registry cleaner. When installing them recently, the only options I got where reinstall and repair. Is there a way I can avoid it detecting an installation, or a way I can remove the traces it is detecting Thanks for any help. Does repair not work U ...Show All
SQL Server Replicating Schema Changes
Hi there, I'm using Sql 2005 merge replication and I have noticed something, I'm not sure if this is true or not:... My publication is set to replicate schema changes (replicate_ddl = 1). Now, I have noticed that schema changes are only replicated if the current snapshot is valid. Is this right If so why My next question carries on from the first. If I'm about to run a TSQL script on my publisher that will add a column or two to a published table, how do I ensure my snapshot is valid inorder for the ddl changes to be replcated Should I be using: EXEC sp_mergearticlecolumn @publication = <publicationname> , @article = <article name> , @force_invalidate_snapshot = 1 , @force_reinit_subscriptio ...Show All
Visual Studio Express Editions Publishing A Program? And Adding Settings that can be saved?
Can i publish the program to my C drive then upload it to my website... but then make it so there is a link on the website to update the program I would also like to know how to make it possable for the user of my program to save there own personal settings like the background color of a form... Yes, I just did that but one-click fights me any time I do that. Under publishing I just published to c:\temp\deleteme\ by adding that to the first textbox and leaving the others blank. But it's always a struggle to do that with lots of error messages before I can coax that into occurring. ...Show All
Software Development for Windows Vista Problem installing Common Controls on x64 Vista
Our installer installs the Common Controls (mscomctl.ocx). We have no problems on 32-bit Vista, but on 64-bit Vista this install is not sufficient. Using the ActiveX Test Container, the controls appear in the list, but when I try to make one I get an error. Mscomctl.ocx is in c:\windows\syswow64; the test container finds the controls in the list; calling CoGetClassObject() succeeds; but calling CreateInstance() on the class factory fails with an 'invalid license' error. These controls are not licensed. If I install Visual Studio 2005 then the problem is fixed. Our merge module for the controls is something we took from the windows SDK years ago and I don't know its details. Maybe I could just find a new merge module in the new SDK and use ...Show All
SQL Server BULK INSERT "AccessDenied" on remote text file.
OK, Ive read many posts on this problem but have seen no resolution. Here's the deal. When on the actual SQL box (There's 2 in the cluster) the bulk insert works fine. No errors and the event log on the machine that is hosting the text file shows that the account that SQL runs on has accessed the file. This account is a DOmain account and is in the Local Administrator of the SQL server and the remot box hosting the text file. Thats great if you want your developers testing and accessing your SQL box as Administrators. We don't work that way. Our developers connect via SQL Management Studio and test ther stuff that way. That's where the problem rears it's ugly head. When anyone runs a Bulk Insert command that accesses a text file t ...Show All
SQL Server Analysis Services on SQL2000 SP4
"unable to browse the dimension [dimension name]. Provider cannot be found. or Unknown Error. Everything else looks good, like processsing, looking at the tables,fields, datasource is connected. What happens if you try to browse your cube after your processed it Do you see dimensions and measures I suspect you just having problem browsing dimension. Is that so Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Studio Express Editions Accessing Dataset from two forms
There is most likely something simple I have missed but I can not get this to work. I have a Dataset containing several tables. One of the tables, "Table1" has a Datagridview on "Form1". Unfortunately, none of the data from "Table1" is "available" on "Form2". I have not been able to use a datagridview of this table on "Form2" nor been able to even do a .Count via code. Everytime it returns nothing. Any suggests on what might be the cause Brian you can pass the objects around classes like so... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760400&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=777326& ...Show All
SQL Server HOST_NAME() filter issue
I am using dynamic filtering on host_name() for SQL 2005 SP1 merge publication. It had been working fine, but something has caused the configuration to stop working. Setting up the publication and a test subscription via the GUI works fine. However, if I script out the publication and subscription and attempt to run the script (with suitable password), then I get the error “a value for the parameter @host_name was specified while publication does not use host_name() for dynamic filtering” I did some digging and was curious to find some differences in the information returned by sp_helpmergepublication and the content of dbo.sysmergepublications. The sp_helpmergepublication output showed expected conte ...Show All
Visual Studio Tools for Office Forward and ReplyAll Issue
I have created a VSTO add-in that will take the selected message and will attempt to execute forward or replyall depending upon the menu command selected. The whole purpose of this exercise is to take a standard email, convert to a new message class and update the user properties (special fields) of the message. The selected message is copied, its message class is changed and then it is moved to a temporary personal folder (ConvertToIFGMessage). Toward the later part of the processing the temporary folder is scanned for all messages and presented to the user for editing (SendIFGMessage). My question and problem concerns the fact that both the ReplyAll and Forward are returning a NULL reference. Can you offer any clues Even better ...Show All
Smart Device Development Back-key for smart phone is not working.........
Back-key for smart phone is not working, when the focus is on checkbox/ Web Browser control. Its not firing any key-press, up, down..any event....Rather its firing form.deactivated event. But if we are agaiin giving this.Activated() in the deactivated event, its clearly showing both the deactivation(Mininisation) and then activation of the form.. Can we handle this anyway Or can we cancel the form.deactivate event checking whether the focus is on Checkbox or web browser control....Kindly do help, its a critical issue..... This is by design: when a non-editable control has focus, the default action of the back key is to navigate to the next window in the z-order. See How to: Override the Smartph ...Show All
Windows Forms Basic: Start Menu shortcut and uninstall option
hi I want in my setup project to add shortcuts to the Start menu and also I want in the Start menu to be the uninstall option. How can I accomplish that I have the same question except that I'm trying to use Click-once. I have already discovered the method for adding a desktop icon using the .IsFirstRun method and copying the .appref-ms file to the desktop. I am still looking a way to clean up these extra references when the user uninstalls the application through the add/removes programs. I thought of creating a second 'Uninstaller' application which will 1.) Delete the desktop icon. 2.) Call the uninstall for the primary application. If I were using msi, this would be a piece of cake since you can use the command l ...Show All
.NET Development filter question
Hello I've a access database on a site and I like to use a filter on that. But this filter must have 6 values. I try this in web developer express but then it doesn't show any output. Even I change the select statement from and to or. Is there an other solution for this, maybe with self written select statement Well I've make a site with an access database. On this database we have to put a filter. I select everything so my select query start: select * from natuurpunt where ... Now the where selection is the problem. The only thing that works is where soort like %+ +% but I need more parameter to check. I have try to ad a or and then again a parameter but then it doesn't show any result on my gri ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .. Tridex for C# guys here is the code to Render OBJ file, but only rendering poinst ...
I am having problems rendering the obj file with Trianglelist, mabe some one can help here!!! The code loads the obj file with no problems, but when rendering tringle list I get mushed up mesh, can some one hep as I can only render points at the moment!!!! namespace WindowsApplication1 { using Microsoft.VisualBasic.CompilerServices; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using WindowsApplication1.TridexConsultants.Engine.SceneObjects; public class ObjMeshFileObject : SceneObject { public ObjMeshFileObject(GraphicsDevice UseDevice) { this.VertexSizeI ...Show All
Community Chat Firefox 2
Yay! firefox 2 is being released at 8pm today!! Hooray! just thought i would let you know... After installing XP2 SP2, Firefox really wasn't worth it anymore. It takes too much memory as well. The tabbed browing was nice, but I had something similar with the IE6 addon. ...Show All
