ChristopherK's Q&A profile
Visual Studio 2008 (Pre-release) WPF Custom Controls
I have been using WPF for a couple of weeks now, and would like to code a custom control that does the following: Is or inherits from StackPanel Has a property called Number which controls how many buttons to display Displays those buttons Works in VS and EID (hopefully) The problem that I cannot seem to figure out is how to control the number of child elements like I described. I have no idea how to do it in XAML, but when I do it in C#, I can only get it to work using C# like this: int nButtons = 4; MyControl ctrl = new MyControl(nButtons); I want to, but cannot seem to get this to work in XAML: <MyControl Num ...Show All
Visual C# Intellisense showing private members out of context
Is there a way to tell VS 2005 to not show private members in the intellisense list when working outside of a class I declare fields as: public string Name { get { return this._name; } set { this._name = value; } } private string _name; However when I instatiate the class and start using it, _name is listed in the intellisense list, why it does this I do not know, It just adds to confusion and would throw an error. Where are you creating an instance What happens when you try to use the private member out-of-context, what build error occurs, ...Show All
Microsoft ISV Community Center Forums PPT VBA - Automatic undo
Is there a way in vba for powerpoint to code an automatic undo. I have a form that is used to create a powerpoint. I have an exit and what i want is on the exit button click (the use the exit button to close without saving) every change done to the presention will be undown automaitcally on the exit click event. How do I do that Thank You. Per our support engineer: Base on my understanding, our buddy wants to have Undo/Redo features in VBA in PowerPoint. Unfortunately, PowerPoint has not provided the programmable interface for Undo/Redo. If necessary, we have to track the operations (operation ...Show All
Windows Forms Reducing assembly size in memory
How is this possible Thanks for any help in advance ...Show All
Visual Studio Great, VS2005 is released! when will we see VS SDK released?
Subject says it all. just wondering when we will see the VS SDK release now that Visual Studio 2005 is released. Bill FYI: ANN: VS 2005 SDK RTM bits now available ...Show All
Visual C++ __invalid_parameter_noinfo is resolved by LIBCMT.LIB but not LIBCMTD.LIB
Hi I'm having to define _SECURE_SCL=0 when compiling debug builds of my C++ applications which are built using the /MTd switch, otherwise the linker cannot resolve reference __invalid_parameter_noinfo. When the release build is generated using the /MT switch, there are no problems, since this reference is resolved by LIBCMT.LIB. I've used DUMPBIN to try to find __invalid_parameter_noinfo in all the standard installed libraries, but it only seems to be present in LIBCMT.LIB and MSVCRT.LIB. Is LIBCMTD.LIB incomplete or am I doing something wrong Thanks It is other way around. _invalid_pa ...Show All
SQL Server yyyymmdd text data into a datetime field in SQL Server?
Hello, I have an Excel spreadsheet that contains 100,000 + rows of data. Two of the columns in the spreadsheet are date fields that are sent over in the yyyymmdd format (no separators such as "-" or "/"). I tried converting these fields into dates using the Data Conversion task in SSIS. This doesn't work as it appears that SSIS cannot map a string in the format of yyyymmdd to a valid date. In lieu of this, I have added a Script Component to my transformation which can take the string and convert it to a date value using some Substring() calls on the source yyyymmdd string. A few questions for the group ... 1. Is ...Show All
Visual C++ Conversion problem
I need help again! How do I convert a System::string to a native c++ string and vice versa. Thanks in advance! Hi Exore, I guess you could do it this way: //Dont forget #include <iostream> std::string s = "test"; String *ss = ""; //Converts from std::string to System::String ss = System::Convert::ToString(s.c_str()); //Converts from System::String to std::string //There is probably a more efficient way to do this but... private: std::string ConverToStdString( System::String *ss) { std::string s ; &n ...Show All
Visual C# Debugger quits unexpectedly?
I'm trying to debug my program and the debugger quits a couple of seconds after hitting a breakpoint I have set. I haven't specifically initiated another thread anywhere else. From what I can see in the local view before the debugger exits, it is aborting evaluation of one of the variables in the method I've written. I know this is very little information, but has anyone had this happen to them I'm a c# newbie so any questions anyone has about my problem, I'll try to answer. is the debugger just ending are you getting any errors can we see the method and the line that you say its aborting on ...Show All
SQL Server Active X error when trying to print
I'm trying to use client side printing in SQL 2005 RS. When I click the print icon the browser seems to be loading something and then halts. I see an error on page icon in the lower left part of teh screen when I click the print button again. I tried it on another machine and i got the error saying that the active x control did not have the method that it was being called with. Anyone have a fix for this or an idea what's going on Is there a version of IE that I need to have How can I clear out the control and d/l it again Thanks for any replies, Bill seems like the ie v ...Show All
Software Development for Windows Vista Build 5308: No audio, Intel High Def Audio, D915PBL mobo
I am unable to get sound with build 5308 using the onboard Realtek High Definition Audio on my Intel D915PBL mainboard. Actually, that's not 100 percent correct -- I DO hear sound when I run the speaker channel test in the driver properties. But that's the only time. Neither WAVs nor MP3s work. Media Player gives an odd msg. that another program or operating system is having problems and isn't able to communicate back to the player. I DID have sound in build 5270. This is a clean install. I've tried removing and reinstalling the device, and looking for new drivers. No luck. Any help would be much appreciated. ...Show All
Windows Forms Call UC load event from main form
I have main form (Windows Application) that loads other UCs. When I load certain UC, it loads data for that UC. On each UC, I have buttons (eg. delete, add etc.). I want that when I click on add button to add some data, automatically after adding that certain data, UC control reloads. How can I do that Thanks. How about exposing a custom event off of your usercontrol, such as DataAdded. Fire that event after you handle the button click. public event EventHandler DataAdded; and later. DataAdded(EventArgs.Empty); The consumer of the usercontrol would then be responsible for recreati ...Show All
Windows Forms How to resize button to follow Text at runtime?
Hi everybody, Is there a function or property to set Button size to folow the length and size of its text at runtime For example at runtime, I set Font of Button to a size of 20 and has veriable length of Text, I want the button to be able to display the text clearly and whole text is displayed. How do I do that automatically This is all in VB.Net. Thanks. den2005 Thanks anyway, That is what I thought. I try find another way. I have another probelm concerning converting BLOB from database to byte() ad loading it to a Microsoft.Ink object for dsiplay using Ink.Load() method. Is anyone can help me den ...Show All
Windows Forms How to delete a selected row from datagrid (Winforms).
Hi I have datagrid populated and one column contains checkbox, and i have a button outside the datagrid, whenever i click this button based on the selected checkbox. I want to delete selected row from the database. Please in winforms not in Webforms Help greatly appreciated Thanks in advance Uday I'll look at this from a very simple p ...Show All
.NET Development converting xml to html using xsl and preserving newline / formatting ??
I want to build a web page on the fly based upon data stored in SQL. I currently read the data into a datatable and extract the xml representation. Using xsl I then apply an xslt stylesheet to produce an html representation of my data. This works great, however ... Some of the data contain embedded \n character (entered via a richtextbox). How do I preserve these so the resultant html reflect the formating. Currently all formating characters are removed and I get one long string instead of a set of coherent paragraphs. Also, is there a way in which I can transform rtf formated text direct to html Thanks, Nick ...Show All
