Aseem Chiplonkar's Q&A profile
Visual Studio Indentation in code-tag in included xml-tag
If I want to use a <code>-tag containing indentation in an Xml documented member, I can do it like this: /// <remarks: /// <code> /// <MyKey > /// <registrations default="<i>MyDefaultRegistration</i>" > /// < /MyKey> /// </remarks> This works fine. However, I have some sample code that I need to use a couple of times so I wanted to copy this sample code to a separate Xml-document and then reference this sample code using the <include>-tag. Like this: /// <include file='ApplicationDoc.xml' path='docs/member[@name="ApplicationLogon"]/*'/> The contents of my xml-document looks like this: < ...Show All
SQL Server simple text processing e.g. regex search and replace
I've got an nvarchar(max) column that I need to transform with some simple text processing: insert some markup at the very beginning, and insert some markup just before a particular regular expression is matched (or at the end, if no match is found). Since the SSIS expression language doesn't support anything like this, is a Script Component the only way to go Does Visual Basic .NET provide regular expression matching Thanks! See SQLIS.com for an article about using REGEX in a custom component. http://www.sqlis.com/default.aspx 91 Kirk Haselden Author "SQL Server Integration Services" ...Show All
Windows Forms Create Complex GUI
Hi, I'm working on an agenda which displays Daily Views and Monthly Views, when in Monthly View I draw rectangles and place a label in the right corner with the proper day, the problem I face is that when changing to the daily view layout this labels are no longer useful so I use a foreach to hide these labels: foreach (Control x in this.Controls) { x.Visible = false; } Of course this results in a delay when switching between views because the foreach is done sequentially so you see how each label disappears and then the new layout is formed, what I need is some sort of buffer or another way to switch between views without having this delay, can anyone help me Thanks. Odd problem. Even if I make the form's Paint ...Show All
SQL Server Percentage/Proportion
I'm new to Analysis Services 2005 and MDX. I'm trying to create a calculated member that contains the proportion of cases (using [Measures]. ) for each dimension in the cube. The following code gives me the percentage of the total number of members in each dimension. This is what I need for attribute hiearchies (single-level), but for user-defined hiearchies (multi-level) I want the percentage of the above level. For example, in a time dimension, I want the proportion of cases in each year (this works) and the proportion of cases in each quarter of a given year (this doesn't work). CALCULATE ; CREATE MEMBER CURRENTCUBE .[MEASURES].PercentCases AS CASE WHEN IsEmpty ([Measures]. ) THEN NULL ELSE (( [DimLocati ...Show All
Windows Forms Re For Ken Tucker
A normal combobox has databindings so that data for DisplayMember, ValueMember and SelectedValue can be taken from several tables. Does this ability exist for DGV comboboxes I don't see any DataBinding collections. The default datagridview combobox does not have these properties. You can always create a new combobox column which supports these properties. You will see some samples in the datagridview faq and the whitepapers shown in the forums. ...Show All
Visual C++ Getting the position of a toolbar
I 've created a floating toolbar in the MainFrm class, and wish to have it 'stick' to its parent's position. -How do I get the position of this toolbar relative to its parent I've tried using: pBar->GetWindowRect(myrect); in CMainFrame::OnMove() but its not giving me the correct coordinates -What is the correct way of setting the position of my toolbar once I have the coordinates Currently I'm using FloatControlBar(pBar,point,CBRS_ALIGN_TOP); where point has the coordinates. Thanks for helping! you should see this Article for more Information. http://www.codeproject.com/docking/floatsetsize.asp ...Show All
SQL Server IconResource for custom connection manager
Hi all, I have created a new custom connection manager and applied the IconResource attribute on it, but the icon doesn't appear within Visual Studio. The icon displayed is similar to the OLE DB connection manager icon. I have others custom data flow components with a specific icon for each of them, and it's perfectly work. Any idea Thanks. Pascal ...Show All
Smart Device Development How can i turn on the screen backlight
How can i turn on the screen backlight from my application fter it was automatically turned off to save power. I use Windows Mobile 5.0 and writin in C# The SDK docs has a how-to on this here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/mob5tskHowToProgramApplicationsToTurnSmartphoneBacklightOffOn.asp A managed sample can be found here: http://www.peterfoot.net/KeepYourSmartphoneBacklightOn.aspx http://www.peterfoot.net/TimeToTurnOutTheLights.aspx Michael ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawableGameComponent ContentManager Member ?
I was happy to see a GraphicsDevice member in the DrawableGameComponent class. This saves me from getting it through the GameServiceManager, but mostly GameComponents which can draw itself should also be able to load it's graphic contents. I think it would be a good Idea to make the game's Contentmanager also a DrawableGameComponent member like the GraphicsDevice. Made already a feature request for that: https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=244332&SiteID=226 How do you think abaout that I know that the content manager is for loading and that's the point...the GameComponents should be able to load it's specific content by themselves and don't let this do the main game clas ...Show All
.NET Development Error : in response content type
Error : in response content type i am having the following error when i am calling webservices using the Wlan only , the webservices are working when the 4.2( i am using VS.Net 2005 with compact framework 2.0) ce device is connected with active sync (usb cable) Error : client found response content type of 'text/html' but expected 'text/xml' i found the solution myself there was an error in connecting to the w-lan and the error was in html/txt type ...Show All
Visual C# string to ToolStripMenuItem.ShortCutKeys (.NET2.0/c#)
hello, how can I convert string "Ctrl+D" to ToolStripMenuItem.ShortCutKeys in .NET 2.0/C# Designer for Ctrl+D do this: this.myStripItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D))); However I have shortcuts stored in parameter file in String format and Can't find procedure for this. thank you. Michael, I have the following. I want to raise an key pressed event. I tried using the method RaiseKeyEvent, but had problems, so I'm calling the SendMessage method from the user32.dll to send a keydown message (WM_KEYDOWN). I use dllImport to provide the entry point to the method: [DllImport("USER32.DLL")] publ ...Show All
Visual Studio 2008 (Pre-release) Can't Install Interactive Designer: Wrong WPF Version?
So I've been trying to get started with WPF development, but I've had some trouble getting all the components installed and playing nicely together. In an effort to get all the right stuff installed (dotnet3, winfx, wpf, vs extensions, etc), I've downloaded at least a dozen different installers. So it's likely that I have several non-compatible versions installed right now. As far as I can tell, here's what I've got (most of this info was gathered from the Add/Remove Programs Control Panel): Microsoft .NET Framework 2.0 (already installed, long ago; I'd prefer not to uninstall this) Security Update for Microsoft .NET Framework 2.0 (KB917283) Microsoft .NET Framework 3.0 Microsoft Expression Graphic Designer June 2006 CTP ...Show All
Audio and Video Development IWMReaderAdvanced4::CanSaveFileAs weird behavior question?
I really not sure this is the right place for the following question: I'm experiencing very strange behavior of IWMReaderAdvanced4::CanSaveFileAs. It constantly returns not predictable and sequentially different results for the same remote content from the same web server. Would love to know: what influences that Is this behavior by design Maybe current server load influences returned value Or maybe something extra should be done on the client before the call to it. My app uses the same sequence as described by MSFT in here: http://msdn2.microsoft.com/en-us/library/aa390697.aspx Regards, I Here's the right newsgroup for Windows Media Format SDK questions: http://www.microsoft.com/ ...Show All
Visual Studio Express Editions Need help with program
I am writing a program that is pretty much a magic 8 ball It compiles and runs My problem is when i run it the second time the variables and outputs are all messed up and do not get reset here is the code: #include <iostream> #include <string> #include <windows.h> #include <stdlib.h> #include <time.h> #include <stdio.h> using namespace std; int compare(string question); //functions void cases(int num_coord, int answer); int main () { char again; string question; int num_coord; srand ( time(NULL) ); //random number for a different int random_num = rand ()%5; //answer for each question cout <<"Ask the magical 8 ball!!!"<<endl; Sleep(600); ...Show All
Windows Live Developer Forums Automating Windows Live Messenger
Our organisation uses a large bespoke application for most of its work, but we also use Live messenger for instant messenging - as such we would like a form or linking or automation between these two apps, so when we click on a users name in our app, we would like Messenger to pop open an instant messaging window to that person - no need to populate it with any text (though that could also be useful) Any ideas Messenger uses Passport for its authentication. You can check out the passport SDK to see if there is a way which you can connect the two application, but I am not familar withthe other application. thanks ...Show All
