cwolf's Q&A profile
Windows Forms Highlighting text in RichTextBox
Hi, I want to highlight (with some color) some lines in a RichTextBox say in a 100 line text, I want to highlight lines 5-10, 18-23, 76-85 etc. I at first thought of using SelectedText but we can only select one portion isn't I need to highlight all the above portions at once Is there a way to do it Another thing, after highlighting these portions, even if the user clicks on the text , these highlights shouldn't disappear It should be per ...Show All
SQL Server Errors in the high-level relational engine
I'm getting an error when processing a partition - Errors in the high-level relational engine. The table_name table that is required for a join cannot be reached based on the relationships in the data source view. This table is actually joined to another dimension table, which is then joined to the fact table. How can I resolve this error I did notice that there are no keys in the dimension table that relate to the fact table for thi ...Show All
Smart Device Development Where is the stand alone emulator now?
The link that used to point to the stand alone emulator has been replaced by the "Windows Mobile Emulator Images" page. http://msdn.microsoft.com/mobility/windowsmobile/downloads/emulatorpreview/default.aspx It lists the Microsoft Device Emulator as being available, and links further down the page to " >> Coming Soon! Download Microsoft Device Emulator 1.0 " The stand alone emulator has become a really usef ...Show All
Windows Forms Transparent Controls ...
how can we have the transparent controls in .net (c#) ! because if I set the backcolor of a control in transparency, the program show the parents background and is unaware of the controls below... thanks I found this code : protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x20; // WS_EX_TRANSPARENT return cp; ...Show All
SQL Server SSIS OLE DB Jet Paradox Memo
I am updating a Sql Server 7.0 DB to Sql Server 2005 Standard I have to update Sql Server tables with Paradox 4.5 (DOS) data, with DTS in 7.0 this was no problem. In Visual Studio I use the OLE DB Jet 4.0 driver with the extended property "Paradox 4.x" The package runs well if there is no Memofield or the Memofield has only a few characters. If there is an Memofield filled with more than 250 Characters the preview and the data fl ...Show All
Windows Forms Drag&drop at run time
My intent is to create a container control in which to put some objects, say check boxes. I want the user to be able to move these check boxes around, by dragging & dropping them, just I can do at designer time. Is there any short solution to this problem, or do I have to write my own code to a lot of events If you want to allow moving of CheckBox items inside one panel, you will the the MouseDown, Mouse ...Show All
Visual Basic [RESOLVED] Restrict '\' character in textbox
Hi everybody, How do restrict entering these characters <>\"%';()& and telling user these caharcters are not allowed to be enter in the textbox field using RegularExpression Validator I put in the Validation Expression property [^<>\"'%;()&]. It restrict every character execpt 0 to 9. How to fixed this I used [^<>\"'%;()&]+ in validation Expression property of Regular Expression Validator Control. All are work ...Show All
Microsoft ISV Community Center Forums Detecting which version of MS Office is installed (for templates)?
How does one go about installing Word dot templates and Excel xla addins without knowing what version of Office is being used I found this article which talks about Office 2000: http://msdn.microsoft.com/library/default.asp url=/library/en-us/odeopg/html/deovrdeployingcustomtemplate.asp but when I try to follow these directions, my dot and xla are not available when I startup Word or Excel. Once I move the Word dot template to Program Files\Mi ...Show All
Windows Forms opening a form by name in a multiproject solution
In a multiproject solution, I need to use the GetType function to find the type of a form, by its name. It works in a single-project solution, but in a multi-project one, the type is never found. I tried to browse all the types, but looks like the search was limited to a "first level" (the name of the project, but not downwards Any help on that My goal is to open a form by knowing its name, (in a string variable) thanks well, using GetAs ...Show All
SQL Server C# code to attach database to sql express
i need this help , i am trying but its not getting attached in command lprompt its working good but comming to c# code its not working first i am copying database and log file to data folder then i used this code string AttachCommand = @"CREATE DATABASE myrokero ON ( FILENAME = N '" +sqlPath+ "myrokero.mdf' ),( FILENAME = N'" +sqlPath+ "myrokero.ldf' ) FOR ATTACH " ; processStart = new ...Show All
Visual Studio Express Editions data view multiple search
hi there any advise would be greatly appreacated im trying to filter a datagrid i only want to show records with eather 1 or 2 or both in one column but i cant seam to figure it out the code i have so far goes as follow but it only shows the rows with 2 in there column Dim toorder2 As Integer Dim toorder As Integer toorder = 1 toorder2 = 2 Me .Tyre_stockTableAdapter.Fill( Me .WorkshopDatareoreder.tyre_stock, New Sy ...Show All
Visual C++ Cannot read file
I'm gettting an access violation error when trying to read a file The code I'm using is: char PeopleFileName[_MAX_PATH]; char buf[256]; strcpy_s(PeopleFileName, fileName); strcpy_s(&PeopleFileName[strlen(PeopleFileName)], MAX_PATH, ".peo"); std::ifstream PeopleFile(PeopleFileName, std::ios::binary); GetStringFromFile(PeopleFile, buf); m_iRecordCount[2] = atoi(buf); m_People = new CPerson[m_iRecordCount[2]]; for (int iPerson ...Show All
Visual J# JMenuBar performance broken if using heavyweight popups?
Big problem. I have a simple JApplet which contains a JMenuBar, some JMenu s, JMenuItem s, etc. It works great if the applet is tall enough to fully enclose the menus when dropped down. (That is, it draws them using a lightweight JPopupMenu .) But if the applet is not that tall, then the menu bar responds very, very sluggishly when I try to navigate among the menus with the mouse. If I click on (say) a File menu, it drops down instantly, but ...Show All
Visual Studio Express Editions Minimize to system tray
Hi, Im looking for a solution to minimize my form in the system tray and restore it from the tray. I found alot of sites that use the 'DrawAnimatedRects' function that windows use to minimize and maximize window-forms. All this codes were in c++ or vb6. Is there anyway to use this function in vb2005 Here is an Example that i found at http://www.activevb.de/tipps/vb6tipps/tipp0182.html Option Explicit Private Declare Fu ...Show All
Visual Basic clearscreen()
I want to clear the user typed content of a textbox and the results which appear in labels as a result of the code in my command button. I thought I could create a command button, label it btnClearScreen and code it ClearScreen() however, when I do this, VB.Net tells me that ClearScreen() is not declared. I thought I read that ClearScreen() would clear data on a form but not save it. I take it ClearScreen() is not a built in (method) ...Show All
