StephenMas's Q&A profile
Windows Forms Selected Colors Don't Show Up in ToolStripMenuItem when RenderMode is System with XP Style?
I'm having an issue where if menus are using RenderMode.System, the colors that I set the tool strip menu items to be don't show up, and, actually, the text color turns transparent (I believe) and completely disappears. I do code like this: Dim ts as ToolStripItem Dim fileMenu as New ToolStripMenuItem("File") ts = fileMenu.DropDownItems.Add("One") ts.BackColor = Color.Orange ts.ForeColor = Color.Blue If I use Windows Classic Style with any RenderMode, the colors show up with the correct text/back color. If I use XP Style with Professional or ManagerRenderMode, they show up properly. It only breaks on XP Style with RenderMode.System. I can't even see the word "One". If I take out my styling, it comes out as usu ...Show All
Visual Studio Express Editions C# and file doc rtf
Goodmorning j'm new here and j don't speak very well english, excuse me. j don't know if c# can read inside file .doc and .rtf. very very thanks. only rtf formats are supported in the RichTextBoxControl as well as plaintext format, not doc files created by MS Word. For this you would need to use the PIA/COM interop approach to read MS Word files. http://msdn2.microsoft.com/en-us/library/ms789115.aspx http://msdn2.microsoft.com/en-gb/library/ms247300(VS.80).aspx http://msdn2.microsoft.com/en-gb/library/ms247298(VS.80).aspx to load an rtf into a richtextbox.... this.theRichTextBox.LoadFile("path\\file.rtf", RichTextBoxStreamType.RichText); ...Show All
SQL Server HOW TO USE SSIS (DTS) IN SQL EXPRESS
I ’m trying to use ssis in Sql Express in order to replace my old DTS that I used in MSDE but I found that SSIS doesn’t work in Express, question is How could I use new DTS technology in Express Thanks in advance. SSIS does not come with Express or Workgroup editions of SQL Server 2005. See Integration Services with Basic Transforms here http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx Derek ...Show All
SQL Server Using (ReportItems)
Hi all, I am using ReportItems to refer to a Text Box in the Details section to a text box in the ReportHeader. The problem i am facing is that i am getting the Header Text Box populated only in tha last page and is blank from the First to the Penultimate Page. Kindly help me out! Is there any property that has to be set ...Show All
SQL Server historyLogMessage
Does anyone know what table the historyLogMessage is written to The docs mention the distribution database but do not specify the table name historyLogMessage Log message provided by the custom business logic. The log message gets written to the distribution database. http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.replication.businesslogicsupport.businesslogicmodule.inserthandler.aspx ...Show All
Visual C# Adding a item to a IDictionary<String, List<String>> object
Hello! I know this must have an stupidly easy solution, but now I just can't find it :( I have this collection: IDictionary<String, List<String>> publishers = new Dictionary<String, List<String>>(); The keys will be some web publishers names, such as "wired.com", "internet.com", etc. The values associated with these keys will be lists of urls (I'll be reading the urls from a txt file). The code: StreamReader sr = File.OpenText("blah.txt"); //initialize the dictionary structure for (int j = 1; j <= numberOfPublishers; j++) { this.publishers.Add(publisherName, new List<String>()); } string url = sr.ReadLine(); do { if (Regex ...Show All
Visual C# key litener
i want to do a windows service to listen for the' Print screen key' and display a save as dialog for the image, the problem is how to make an event that rises when the print screen key pressed, plz help me to do that. thnx well by default the Windows Service runs on the Network Service account I believe, so that is no help to you. you should use a WinForms app that runs in the background on the same user account as the user, however you could also change the user account that the service runs under to the user account that you want to run as (the user that logs in) but I would not recommend this. you then need to listen for that key, perhaps via some global key hook.... http://www.codeproject.com ...Show All
SharePoint Products and Technologies Custom Field Type Properties
Hi, I have created a custom field type for SharePoint that represents hierachical data from and XML file (stored in SharePoint) in a TreeView. I have created properties on the field to store the location of the source XML file and whether to render the TreeView as a multi-select, ie. with checkboxes. I created the properties in the _fldtypes xml definition using the property schema elements as they are only simple textboxes and checkboxes. My problem is that these properties work ok to add the form and save, but when you try and edit the field, the values in the properties reset to <field description> value. ie. they are not what was set and they are not even the default! This is supposed to be out of the box stuff accord ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX8 and Vista Compatibility
(split from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1221168 to make a new question) It is interesting that you say that because I am testing a VB6 app that was working fine on XP and below but now fails on Vista when it tries to create a DirectX8 object, specifically Set oDX = new DirectX8 throws Error 429, ActiveX failed to create component. Running in XP SP2 compatibility mode does not work either. I would be really grateful if anyone has any ideas on this. I also tried running the latest DX9 redistributable because I heard that was providing backward compatibility, but to no avail. Thanks. DavidAWinter wrote: I'm sure you've probably seen this, ...Show All
Smart Device Development Try out Vs2005 Sp1 beta for enhanced device Native dev expereince
Hello all VS2005 SP1 beta is out, Apart from adding some new experinces we have added back lot of those deprecated MFC classes back to MFC8.0 library. Here are the list of classes that we have added back 1. CHttpFile 2. CInternetSession 3. CHttpConnection 4. CInternetFile 5. CInternetConnection 6. CInternetexception 7. CDialogBar 8. CBitmapButton 9. CEditView 10. CReBar 11. CReBarCtrl 12. CSplitterWnd 13. CRecentFileList 14. CFindReplaceDialog 15. COleSafeArray You can find more details about native device development enhancements in VS2005 SP1 in my blog at http://blogs.msdn.com/Srikanth_bogadapati/ Srikanth Bogadapati D ...Show All
Smart Device Development a deployment question :)
Our application has some configuration values (server IP and server port). Until now, those parameters were set in the cab project that wrapped the exe with other resources. The process above was done by a programmer, but now we want to give this task to a non-programmer (which means that he/she doesn’t have VS installed on his/her machine). Is there a nice & clean way to make a CAB without the need to install VS (just to make the cab project..) Oren You can use cabwiz.exe to create a CAB file for your PPC devices. See MSDN article here http://msdn2.microsoft.com/en-us/library/aa458948.aspx Manav ...Show All
Software Development for Windows Vista I can't use the WWF help
I have installed the " . NET Framework 3.0 Runtime " and " Visual Studio 2005 Extensions for Windows Workflow Foundation Release Candidate 2 ", but I can't use the wwf help in the IDE when press F1 key, what can I do thanks LinBingcheng Hi LinBingcheng You need to install the Windows SDK. Here's the link for that based on the June CTP: http://www.microsoft.com/downloads/details.aspx FamilyID=9221A6AA-AC1C-4604-A326-B8CF2B12B6EB&displaylang=en Karthick. ...Show All
.NET Development Serializing a large data structure
I want to serialize a class that contains a great deal of data (up to many tens of megabytes), nearly all of which is in unmanaged memory. All the methods I can find for serializing a class end up with SerializationInfo.AddValue calls, which would be hugely wasteful and slow if performed pixel-by-pixel. (The class is a .Net wrapper for an unmanaged image object. I want to implement ISerialize so that I can provide a VStudio debugger Visualizer). So far I have achieved my objective by transferring each row of the image into a managed array, then serializing the array. The disadvantages are (a) I need to keep 'inventing' a new name for each row, (b) I can't re-use the managed array (or the serializer conclud ...Show All
Software Development for Windows Vista Cannot install June CTP Windows SDK
I have downloaded the *.img file contning Image of the DVD with June CTP Windows SDK I followed all the instructions to uninstall May CTP SDK & WinFX I Installed Net 3.0 June and here's the problem: While trying to install Windows SDK I get this error : "Error 1330 A file that is required cannot be installed because the cabinet file F:\Setup\WinSDK-SDK_MDAC_BIN_common.0.cab as an invalid digital signature This may indicate the cabinet file is corrupt" I checked this file (Size is 2 438 462 / 2 439 168 on disc) - and this file does not contain the digital signature (neither have all the files named starting with WinSDK-SDK_MDAC*.*) I tryed to install MDAC2.8 SDK separetly so that Windows SDK Installer won't inst ...Show All
Windows Forms databinding--
HI, I'm confused while using databinding. what is the difference between the below 2 statements. what is the use of using databinding if the usual way is easy(if i dont use bindingmanager). txtdeptphone.text = dtdept.rows[0]['deptphone'].tostring() txtDeptphone.DataBindings.Add( new Binding ( "Text" , dtdept, "DeptPhone" )); if i need to format the text (phone) i can call a funt like this txtdeptphone.text =formatthephone( ds.tables[0].rows[0]['phone'].tostring()); formatthephone() { } how i can do this while using databinding. thanks venp-- Hi, I'm new to this particular code. So can you explain how to specify the formatstri ...Show All
