Guy Ronen's Q&A profile
Visual Studio 2008 (Pre-release) Find & Replace in RichTextBox
Hi, I am working on an editor based on the richtextbox control. I would like to ask how I can perform a Find & Replace action on the richtextbox content. There are no related-methods in rtb, TextPointer, TextRange, TextSelection. Also, when I tried to programmatically change the content by changing the textrange.Text or textselection.Text property, the text can got changed but all the original formatting are lost. How can I preserve the formatting while changing text Thanks in advance. there is no such api currently.... you can look at http://blogs.msdn.com/prajakta/archive/2006/11/01/navigate-words-in-richtextbox.aspx to see how yo can identify words and then add necessary logic to modify th ...Show All
SQL Server parameter boxes are empty
Hi, I am have a reporting server which connects to a analysis server which connects to a sql server and a db2 server. I am using windows integrated security all the time except for the DB2 connection. That is a fixed username/password. Reporting server (RS), analysis server (AS) and sql server are all on the same machine. I created a local group and added the correct users to it. I gave that group browse rights on the reports so that works correctly. I created a role in AS and added that group to that role. Gave all read rights to that role. I created a login for that group on the SQL server and gave that group db_datareader role. When I connect as an administrator every reports runs fine. When the test user connects t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Torque X and C#
I was messing with Torque Game Builder and it seemed pretty cool, altough maybe a little TOO controled So here is my question, is it possible to take code from Torque X and edit it with C# You can find a wonderful TorqueScript IDE put out by "sickhead games" here... http://sickheadgames.com/torsion.php#download Many of us internally at GG use it. Syntax hightlighting etc, even break point script debugging. ...Show All
SQL Server Is it possible to process special characters in "like" expressions as regular characters?
In our system users can enter text into a field which then forms the basis for a "like" expression. Problem: they may enter brackets, underscores, even % - and SQL Server will interpret these as wildcards, regular expressions, etc. That is not the behavior we want. Instead we want to prepend and append whatever they entered with a % and have SQL Server search appropriately, meaning: we want SQL Server to search on exactly what was entered by the user. So for instance is there an escape sequence we can wrap the user-entered data with to force SQL Server to not process wildcards, regular expressions, etc. Thanks for your time on this matter! You can escape : select 'hello' where '100% Over Budget' li ...Show All
Visual C++ Getting the sub directories
How do I get a list of the subdirectories for a given directory in VC++ Thanks, KarthikR ...Show All
SQL Server How To Execute an Oracle Stored Procedure from DTS
In SQL Server 2000 DTS How do I call and oracle stored procedure I've tried using the Execute SQL task with the Exec <my procedure name> ; and it errors. I've been searching for the answer on how to execute Oracle Stored procedures from DTS without any luck. The stored procedure creates the table and data that I want to pump into SQL Server. Any help would be greatly appreciated. Thanks! Hi Matt, I'm using "Oracle Provider for OLE DB" and I've tried the syntax: SQLStatement = { call <sp_name> }. My Oracle Stored Procedure runs efficiently at Oracle client, but I've taken error messages when calling from DTS. Thanks for reply. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vector array style
There does not seem to be a way to access vector elements using array notation, this is really useful for algorithms, any plans for this in the future Fluxtah accessing vector element using ".field" notation is faster than accessing as "[index]" notation, because accessing trough an index requires some extra math, while accessing as a field requires a simpler memory addressing Well, maybe, on some CPUs. However, both x86 and PPC have instructions that access "register plus register displacement" in a single cycle, just like they have "register plus constant" in a single cycle. Thus, there ...Show All
SQL Server Lock and unlock the table
Hi, How would I lock a table so that the access calls from other applications are put in "wait" by sql server till I unlock How would I do this Thanks, Fahad TABLOCK table hint See SQL Server 2005 Books Online topic Table Hint (Transact-SQL) http://msdn2.microsoft.com/en-US/library/ms187373.aspx Possibly SERIALIZABLE See SQL Server 2005 Books Online topic SET TRANSACTION ISOLATION LEVEL (Transact-SQL) http://msdn2.microsoft.com/en-US/library/ms173763.aspx ...Show All
SQL Server Average In MDX
Hi, Can anyone help me, I'm new in Analysis Services 2005, how can I get the average, I did not understand the AVG function sintax any suggestions Thanks. Erika :) Erika, have you looked at the AVG() function's description and usage examples at: http://msdn2.microsoft.com/en-us/library/ms146067.aspx --Artur ...Show All
Visual C# Multiple Projects
I have two projects under one solution. Each of these projects opens the same bound database, Is there any way I can use a common routine to assign the bound database and which app.config should it be in. Share the code that accesses the database. You can either move it into one project, expose public methods for the other project to call, or you can create a third data-access project, and call this from all your other projects. ...Show All
Windows Forms Leave and LostFocus events
Does anyone know the difference between the textbox.leave and textbox.lostfocus events. thanks tattoo Thanks Prasant, can you direct me to a listing somewhere that outlines the sequence of the different events Thanks tattoo ...Show All
Software Development for Windows Vista How to get(set) cursor position in my service before logon?
Hello, I noticed that an interactive service cannot run in vista any more. This issue is good to security, but bad news for me using an interactive service. My service is simple and needs only 2 functions - one is getting cursor position and the other is setting cursor position. These 2 functions can be implemented through one other user application after user logon. But before user logon, how can I do this job Thank you in advance. Sweating Egg;; Hello, there. Our software is like the Stardock Multiplicity. If you have never seen it before, you can check what it is in this site. http://www.stardock.com/products/multiplicitypro/ To share keyboard ...Show All
Windows Networking Development Mail Sending
Hi can any one give a a winsock program though which i can send mail to my account.Actually i hve to send mail from remote system to my mail.Like i am getting name of reomote PC and i have to get the name into my mail account. Plz send me links where i can get the code . Thanx in advance ...Show All
Visual Studio crystal report charts x axis datetime problem
Hi. I'm using VS.NET 2005 and am trying to make an asp.net webform with a crystal reports chart. The chart data is like this (pseudo data): DATE-TIME SPEED 01/01/2006 09:41:19 AM 14.40 01/01/2006 09:41:32 AM 23.30 01/01/2006 09:41:45 AM 22.40 01/01/2006 09:41:58 AM 16.70 01/01/2006 09:42:11 AM 15.00 01/01/2006 09:42:24 AM 10.20 01/01/2006 09:42:37 AM 17.20 01/01/2006 09:42:50 AM 23.50 01/01/2006 09:43:03 AM 26.70 01/01/2006 09:43:16 AM 23.70 . . . . . . . . i've selected LINE graph. there i put datetime on X Axis and speed on Y Axis. if i select data for 1-2 days only, total records may b in high number. the problem is that on X Axis i cant show anything. if i show on ...Show All
.NET Development Timer not firing at set rate...
I set up a timer for my basic form. The only problem is that it only fires at 30 times per second. I would like it to fire at 60 times per second so I set it's interval to 15 milliseconds but still fires 30 times per second. Anybody know why Excuse me if it is basically obvious. Thanks, Devin OK I set up a psuedo timer by hooking a method into the WndProc override and it is firing at the same rate as the timer was. I'm assuming that the timer fires from the WndProc method Is there a way to tell the system to fire the timer or WndProc at a faster rate -Devin ...Show All
