shades921's Q&A profile
Visual Studio 2008 (Pre-release) ComboBox custom ControlTemplate
Hi, Just a simple question (I hope). I've created a custom control (below) - basically it's just a TextBox with some extra features, which is displayed in the right hand cell of a grid, with a label in the left hand cell. It all works very nicely, and I thought it would be just as simple to do the same thing with a ComboBox. So I gave it a try, replacing the references to "local:CustomTextBoxBase" in the example below with "ComboBox"... but I'm blowed if I can get it to work - I see the Label, but there is no sign of the ComboBox.... Am I missing something obvious (I expect so.) Any pointers would be much appreciated! <Style x:Key="{x:Type local:CustomTextBox}" TargetType="{x:Type local:Cus ...Show All
SQL Server Datasets in report header/footer - A Summary of the issue
I know there are already a few threads on this topic but I wanted to create another one - and directly ask - how could this limitation possibly exists - and even more important - why is it still a problem in 2005 I want to summarize a few of the solutions that have been listed here and elseware online. We've tried them all and they all have some kind of problem: 1) Create hidden field(s) and then reference that field from the header: Doesn't work on any pages where the field isn't printed. Header value will be blank in this case. 2) Create hidden column(s) in the data table and reference that from the header: Works, but again, if the table is showing on every page, the value will be blank. i.e. - if you have two or more tables ...Show All
Visual Studio Express Editions Using the \n for a line break....
Basically, I read a part of a file, which is the description, which goes into a label, the 'description ' can be changed in the file, accordingy to what you want it to be. So, pretty much I need a way to insert line breaks between every few characters. And for some reason, \n in a file, thats read and put directly into a label, is different than adding "\n" in the compiler, onto the label...... Sorry if I didn't explain it clearly enough, but I have a label on my form, and its value is taken directly from a file, but what if the line in the .txt file, is really long, and the label will run off the form, and if I insert \n into the file, it just sees it as a word, not an escape sequence. How could ...Show All
Smart Device Development Why is there no right click menu for copying in textbox?
I hv create app with textbox, i want copy the text inside. is that i need to create the menu by myself if yes, is there any sample thank you so much. ok then how can i copy the selected wordings to buffer, and then paste the buffered wordings to other textbox or documents Thank you for your reply ...Show All
Windows Forms How can you catch when tab pressed on a datagrid cell??
Hi I'm currently using the below code when a user exits the cell, i then run what code i want. But i only want to catch the event when they leave the cell by clicking tab. Is there a way i can see when they press tab key on a datagrid cell private void dtgrdGLTransLines_CellEnter( object sender, DataGridViewCellEventArgs e) { if (dtgrdGLTransLines.Columns[e.ColumnIndex].Name == "Debit" ) { if (dtgrdGLTransLines[e.ColumnIndex, e.RowIndex].Value == null && dtgrdGLTransLines[e.ColumnIndex+1, e.RowIndex].Value != null ) { //my code } } } thanks in advance basically inherit from datagridview, see code, and to test, do not forget to delete all cod ...Show All
SQL Server Union for two sets with where clause
Hi, I have situation where I'm returning comparing data from two date ranges in a chart in MS Reporting Services. In regular SQL, I simply do a UNION between two select statements. I also have a dummy column returned to distinguish between the two selects. i.e. Select *, 1 As 'DataSet' from tblData Where startDate >= @sdate AND endDate <= @edate UNION ALL Select *, 2 As 'DataSet' from tblData Where startDate >= @sdate2 AND endDate <= @edate2 In MDX, I've only seen a UNION for the columns, but not with the WHERE clause included. Is it possible to have a where clause for each set What's the syntax Thanks a lot! Well, I'm having some problems with this query. In addition to the above, I wan ...Show All
Visual Studio 2008 (Pre-release) How to turn off anti aliasing for small text?
Anti aliasing small text tends to make the letters look blurry and indistinct. I cannot find a way to disable the anti-aliasing of text in WPF and as a result label or button text looks really bad. Ideally I'd like to disable anti aliasing globally for font sizes below a certain size. How can I accomplish this -Ryan rfuller987@hotmail.com This is not about nitpicking. It is a serious readability problem. I experimented a bit more with this, and it does not show on all the monitors I've tried. For example, ClearType text is very blurry on my Dell E173FP but super crisp on a Toshiba Portege tablet. So those of you who think we are nitpicking and wasting the WPF team's time probably have a non probl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. System.Enum.GetValues() doesn't exist on XBOX360 ?
Hello, I'm happily testing my game on the XBOX360, but I'm encountering a few issues. First I'm a bit dissapointed to see that Input.Mouse is not defined in Microsoft.Xna.Framework.Input on a "XBOX360" project, thus it doesn't compile. I would have assumed that PC stuff like inputs would just be ignored on the XBOX... How can tests the target platform at build time Second, and most important, I was relying on Enum.GetValues() (Windows build) to get the numbers of items in an Enum list. Like this: static public Texture2D[] sprites = new Texture2D[Enum.GetValues(typeof(BulletType)).Length]; However, when trying to build a XBOX game I get this error: Error 1 'System.Enum' does not contain a definition for 'GetValues' D:\LG-XB ...Show All
SQL Server Help with generating a password with non repeating characters
hello all, I have to write a query to generate a password which should have not have any repeated characters. The only far that I was able to go is : SELECT SUBSTRING(CONVERT(varchar(10),@member_id),1,1) + CHAR(((ASCII(SUBSTRING(CONVERT(varchar(10),@member_id),2,1))-47)*2)+64) + SUBSTRING(CONVERT(varchar(10),@member_id),3,1) + CHAR(ASCII(SUBSTRING(CONVERT(varchar(10),@member_id),4,1))+32) + SUBSTRING(CONVERT(varchar(10),@member_id),5,2) + CHAR(ASCII(SUBSTRING(CONVERT(varchar(10),@member_id),7,1))+33) + SUBSTRING(CONVERT(varchar(10),@member_id),8,3) but this does generate repetitve character code. Please help. Thanks, Louis, Had one question about your code. ...Show All
Windows Search Technologies Context indexing limitations
On 3/11/06, MSN Toolbar Help online contained the following text about the limitations of WDS relative to indexing large files: Desktop Search indexes the first 1 MB of text in each document. This is enough to ensure that all but the very longest documents are completely indexed, but if you have an extremely long document and your search term appears after the first 1 MB of text, it may not be found. A Google search today still shows the same text on a page which is part of Live Search Toolbar Help: http%3A%2F%2Fsearch.sympatico.msn.ca%2Fdocs%2Ftoolbar.aspx%3Ft%3DMSNTbar_TROU_CantFindAFileIKnowExists.htm Please advise about the following points: Is the stated limit, or some other limit, about the amount of text which W ...Show All
Visual Basic Record the date that a record is created
Hi, I'm using SQL 2005 and VB2005 I need to record the date that each new record is created. I've put getdate() in the default value of the field in Server explorer and when I enter a new row through there the date appears correctly. However, when I create a new record through my app the date doesn't appear. What is the correct way to do this Hi Anarchy thanks for the reply. It doesn't work for me. I'm displaying the data through a DataGridView which I dragged in from data sources. I've created another project and database and I get the same results. Any idea what I'm doing wrong ...Show All
Windows Live Developer Forums A Newbie to this API
First off, I think I'm a bit confused as to the purpose of this API. Is this solely to create "activities" that you do with whomever you're conversing with in Messenger Or can it be used to extend the capabilities of WLM itself. I'm hoping it's the latter, as I would really like to develop a "What I'm Listening To" extention for Rhapsody. I'm not even sure if that's possible, but assuming it is, it would be a cool extention for me. I use it the most (though I do use Windows Media Player sometimes). So I guess my second question would be, what would I need to access in order to change that The Activity SDK is only for creating activities, but you can use the Add-In SDK to add features to ...Show All
Visual Studio Is security update of 12/13/2005 covered by SP1?
Microsoft Security Bulletin MS06-073 Vulnerability in Visual Studio 2005 Could Allow Remote Code Execution (925674) Does installing SP1 take care of this security update, or do I still need to apply the update after upgrading to SP1 According to the List of bugs that are fixed in Visual Studio 2005 Service Pack 1 the mentioned issue has not been fixed in this SP. You must note that the security bulletin has been published on the 12th December 2006 therefore it was impossible to add a fix for this vulnerability in the SP. ...Show All
Software Development for Windows Vista Context in workflow?
I was curious to know if there a way of sharing a "context" between all activities in a workflow instance. I am looking at something analogous to HttpContext in ASP.NET and LogicalCallContext in Remoting. Of course, I can resort to ThreadLocalStorage or AppDomain data myself, but I wondering whether there is a better way of handling this. Thanks, Manoj I’m not sure this applies to your problem. But as a understand it, you’re invoking the workflow and you need to ”interact” with it (approve) before it finally executes the last activity. Let’s assume you have a wf that looks something like this: Create (Code activity) -> Approve (Code activity)-> Complete (Code activity). If you’d changed the “Ap ...Show All
Visual Studio 2008 (Pre-release) How to determine weather systems is doing drag-drop?
hi all experts I'm facing a out of my mind problem scenarior like this I have a control (*) support DragDrop.dodrag (**) when user move mouse over it and hold pressing left button and the delta position > system defined barrier dragdrop Unfortunaltly, it contain a textbox(***) that support drag & drop too The system was crash when user click & drag constantly - fast - randomly on textbox Message of Unhandle exception: Dispatcher processing has been suspended, but messages are still being processed And the stack trace: e.Exception.StackTrace " at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n at MS.Win32.HwndWrapper.WndPr ...Show All
