Serge Luca's Q&A profile
Visual Studio 2008 (Pre-release) XamlReader.Load Error
Can anyone tell me why I am getting this error XML from file... <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <TextBlock FontSize="22" TextAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Top" Width="Auto" Height="50" Name="TextBlock" Text="Request Search" TextWrapping="Wrap" Foreground="#FFFFFFFF" FontFamily="Verdana" FontWeight="Bold"/> <Grid Margin="35,35,35,15" VerticalAlignment="Top"> <Grid.ColumnDefinitions> ...Show All
Windows Forms AutoScrollMinSize doesn't set the scrollbar sizes correctly
Hi, Did a search and can't seem to find an answer. I've got a custom paint control (derived from UserControl) that has AutoScroll to true. I hide and show containers (for navigation) and embed several versions of the custom control in there. I'm setting the AutoScrollMinSize and the size of the scroll seems to reflect changes to the view settings (the nofification works and the resize seems to be correct) but the scroll bars don't resize even though they should. The scrollbars resize correctly on a control that isn't shown, but not on the active control. The size is correct and I've even tried resizing the control to see what happens, but nothing. Can I force a resize of the scroll bars in some other way Does any one have any ...Show All
Visual Studio 2008 (Pre-release) Bind To Method Topic is missing from downloaded SDK
It is provided in the SDK online http://windowssdk.msdn.microsoft.com/en-us/library/aa348824.aspx Which one is the more accurate Thx NIK My SDK may be out of date. When I pick up the latest release, I'll check it out and let you know. Thanks PS. Appreciate all your help with the DataBinding questions, you've been a great help. ...Show All
SQL Server Howto impersonate code to use specific role in SQL2005
Hi there, in SQL2000 Analysis Services I used a very complex script to authenticate as a specific user/role to create offline graphs and Pivot-Table pictures via script for users concerning their own security rights. I read out the role of this user and used the security settings within this role to filter the owc-element so that the user only gets to see the elements/data he is allowed to. This was necessary since the script (DTS) was run with administrative rights and therefore had access to all data. I built a serverside OWC, applied the security-filtering, exported to excel or picture and sent it via email as subscription. now for the question: Is there any way to tell a script to use a specific role when accessing the c ...Show All
SQL Server A call to SQL Server Reconciler failed. SQL Server 2005, SQL Server Mobile merge replication
Hi, Iam trying to perform merge replication between SQL Server 2005 and SQL server mobile. It has previously been working. Recently something is causing the following problem when i try to perform the merge. I grabed the following output from the replication monitor. Error messages: An error occurred while reading the .bcp data file for the 'MSmerge_rowtrack' article. If the .bcp file is corrupt, you must regenerate the snapshot before initializing the Subscriber. (Source: MSSQLServer, Error number: 2147767868) Get help: http://help/2147767868 The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message ...Show All
SQL Server Couple of questions over SSRS over SSAS
I've created a sales analysis cube using SQL Server 2005 and want to do some reporting using SSRS. My problems are as follow: 1. How can I change the report parameter from a Date type into a member of the Date dimension I need to do this because it's easier for business user to select the date and I can set a sensible default to it. 2. How can I create a hourly sales analysis report for all branches If I add a chart into SSRS, I will get all shop data summing up right now into a single chart. Instead, I would like to have a chart for each branch. My business user will not accept to manually select different branch and generate the required chart. 3. How can I add a percentage to the corresponding value My business user may want to view the ...Show All
Visual Studio SandcastleGUI
I have been using Microsofts Sandcastle for some time now and it's xml-schemas have driven me nuts.... so I made a small userinterface for Sandcastle. The program is freeware and includes the following features: - Support for online MSDN-links. - Documenting of specified namespaces instead of entire assemblies. - Multiple outputtypes (website and/or .CHM-file). - Custom copyright line. - Custom company logo. - Custom product information. View my website for more information and a download-link: http://www.inchl.nl View generated output using SandcastleGUI: http://www.inchl.nl/help/ Kind regards, Stephan Smetsers stephansmetsers@hotmail.com Apologies Stephan - I knew when I entered my ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Visual C#, requirements, I have Visual C++...
I was wandering, if someone could tell me... (since I have "visual c++" and it is evolved from "visual c#", do I have to have visual c#, I mean I have visual c++, when I open instalation, it says I need viusal c#, but I have visual c++. Is there a way to avoid this Please help. Thanks. Michael Klucher - MSFT wrote: Sorry there! Guess we were typing at the same time! LOL, I'm just after your job! ...Show All
.NET Development Detecting Change in DataSet - Not Working
Using ASP.NET 2, I am having a problem detecting changes to a DataSet which is bound to text fields in a form. The DataChange() method below always returns false. I am populating text fields in the form as follows: private void dataLoad(string strSQL) { ds = sqlClass.getDataSet( "Select * from invcusth where invno = 2000", "invcusth"); // will always select one row only this.txtInvNo.DataBindings.Add("Text", ds, "invcusth.invno"); this.txtCustNo.DataBindings.Add("Text", ds, "invcusth.copk"); this.txtBiz.DataBindings.Add("Text", ds, "invcusth.bupk"); this.txtTrans.DataBindings.Add("Text", ds, "invcusth.transno&quo ...Show All
Visual Studio Express Editions System.IO.IOException: Cannot create a stable subkey under a volatile parent key.
getting ... anyone else getting this and know how to resolve it System.IO.IOException: Cannot create a stable subkey under a volatile parent key. when trying to start the SQL Server Management Studio Express CTP, i can click continue and it works, but the error is annoying. here is the entire trace: System.IO.IOException: Cannot create a stable subkey under a volatile parent key. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) at Microsoft.SqlServer.Management.UI.Connec ...Show All
Windows Forms treeview click event
hy Im very new to c# and now im making a browser. In my browser i have a favorites panel with a treeview. Now i have found the MouseClick event from the treeview but how do i obtain wich node is clicked I now use this code: private void treeView1_MouseClick( object sender, MouseEventArgs e) { try { node = treeView1.GetNodeAt(MousePosition.X, MousePosition.Y).ToString(); } catch { } this .NavigateToUrl(node); } but it seems that var node is empty at all times! Can anyone help me with this Thanks in advance! from the lichtning bolt i did already know but the problem was that i need to know wich node is being clicked withoud having a mouse_click event for every node. so what i need is a node id or something ...Show All
.NET Development background images for menus
I am trying to create a asp.net 2.0 menu with a background image using cssClass and styleSheets and the background-image property, but it is not working. I am using a table (for now) which I know is bad and will convert later to div's... but in the first td I successfully use the image with the first cell....but then using the same image with the menu it does not display. I can't figure out why. Here is the code: I have tried removing the background-color everwhere thinking this was overridig the image and this did nothing. but leave me with a white background for my menu. Here are my Styles: .menuBar{ background-color : lightgray; background-image : "images/menubackground3.gif" } .menuItem{ background-color : lightgr ...Show All
Windows Forms Can't Set ToolStripProgressBar Width
Hello, I have a StatusStrip on a form that's 700 pixels wide. On the left I have a ToolStripStatusLabel, in the center a ToolStripProgressBar, and on the right a few more ToolStripStatusLabels. The first Label is 200 pixels wide, the ProgressBar is 400, and the remaining Labels take up the rest of the space (all Spring properties are set to False). In the Form.Resize event I'm trying this: prgProgress.Width = Me.Width - 300 But no matter what I set the Width property to at runtime, the size of the progress bar doesn't change. Naturally I can set its width just fine at design time. Help! Thanks. Hi, have you tried changing the ProgressBar's width (which is "inside" the ToolStripProgressBar) prgProgress.Pro ...Show All
Windows Search Technologies WDS plug-in for Lotus Notes not working
I have istalled WDS 2.65 and the lotus notes plug-in, I didn't find any option to specify which databases WDS would index. WDS indexed all files under Notes dirctory, it found the notes directory, however it didn't index any thing inside Notes database. Is there a place I could specify the databases to be indexed And how could I make WDS to index messages inside a Notes database Thanks. Paul: Thanks for the reply. So now WDS will only search user's local mailbox if there is no local mailbox, then it won't search anything inside a database yet. How does it grab the name of local mailbox from location documents or from notes.ini. As notes.ini may not have local mailbox information, so it shoul ...Show All
Visual Studio Express Editions Listing files in an array
I am not sure if this is possible, but does anyone have code for listing all the "jpeg" and "bmp" files that are in My Documents, and then placing them in an array I tries to get this working, but had no success at all... Here's a sample program, using a list rather than an array: using System; using System.Collections.Generic; using System.IO; using System.Windows.Forms; public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { List<string> list = new List<string>(); string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); DirectoryInfo info = new System.IO.Dir ...Show All
