Tb2006's Q&A profile
Visual Studio 2008 (Pre-release) Add Formatted text to TextBlock?
hi there, i want RichTextBox to edit text and display that formatted text in the TextBlock. how to add richtextbox content to textblock richtextbox contains blocks and textblock accepts inlines how to convert blocks to inlines and vice-versa or is there any other way thanx advance, srissh Lee's right.. missed the formatting part... :) As an alternative you could use the readonly richtextbox... with the borders stripped... ...Show All
Windows Forms how to know a version from a server, not from the client
Hello, I would like to know the deployment version not from the smart-client, I would like to know it from the server, where I have the web services. Is there a way to do it Thanks ...Show All
SQL Server "Could not open SQLEVN70.RLL"
"Your SQL Server installation is eigher corrupt or has been tampered with (could not open SQLEVN70.rll). Please uninstall then re-run Setup to correct this problem." What do I do It says to uninstall/reinstall, but what DO I install I need a step-by-step procedure to follow to get rid of this. In the directory C:\Program Files\Microsoft SQL Server there are probably 2 subdirectories starting with MSSQL$. One of them is empty (look in C:\Program Files\Microsoft SQL Server\MSSQL$ MSDE\Binn\Resources\1033 or 1043). Delete this subdirectory and the problem is solved. ...Show All
SQL Server SQL Profiler shows wrong duration times????
We started having issues with one of our stored procedures. I ran a profiler overnight for anything over duration of 3000 ms and this one store procedures shows up all the time. Funny thing is when I execute it from Query Analyzer it's instant, and for whatever reason the Profiler shows a BLANK time for the duration of the call that I just executed from Query Analyzer. Here are my questions. 1. In my case, should I trust the SQL profiler time, or the Query Analyzer time, big difference in both 2. Does executing from Query Analyzer give a higher priority to the call and that's why it executes faster Any help will be greately appreciated, we are in a production environment and each call gets executed about 20 times every minute... h ...Show All
Visual Studio Express Editions Data connection to SQL Server database file in VB 2005 Express Edition
Hi, I install Visual Basic 2005 Express Edition on a server with SQL Server 2003. When to setup a data connection to SQL Server database file in VB there's an error message as the following: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). Help please. Thanks, yabing how are you connecting to SQL Server Express What does the connectionstring look like if you are connecting to it via remote computer, you need to enable remote connections: http://forum ...Show All
.NET Development Windows form that "eat" memory...
Hi I have built a windows form that use a System.Timers.Timer, the program itself runs just fine. But if I have the program open and check the task manager I can see that the program increase it's memory usage by 4-8kb every 10 seconds or so. What can a thi’ng like that depend on. What should I look for in my code, I mean this cannot be right that the program "eat" memory... The application is built in VS 2003 Best Regards M So, what object does the CLR Profiler tell you is not getting collected Please show your code that creates and disposes this object. ...Show All
Visual Studio 2008 (Pre-release) Installation steps for Vista...???
I am having difficulties in trying to install v3 under Vista. There is an existing version that installed with Vista RC2 that I disabled in 'Turn Windows feature on or off' as per the warning dialog. Then what I tried to run the setup and it said to install from the same 'Turn Windows features on or off' but there is no way to install it there. I tried to run the uninstall v3 utility but again, no change. Can we get some guidance on proper sequence of steps for the latest Vista drop (RC2 Build 5744) Bart, Installing a different version of .Net Framework 3.0 with Windows Vista is not supported. A matching build of .Net Framework 3.0 ships with Windows Vista and you cannot mix/match. Spec ...Show All
Visual Basic Any way to detect whether SCROLLBAR is present in Rich Text Box?
I'd like to have a Rich Textbox automatically zoom out (using the .zoom method) if the horizontal or vertical scroll bar is present. But, there doesn't apear to be any way to DETECT whether the scroll bar is being displayed. Anyone have any suggestions Is there any way to detect whether the (my terminology is rusty here) HScroll (or Vscroll) event handler is "attached" to the control (those events are triggered by the user clicking on the scroll bar, so the events themselves aren't helpful. However, I'm thinking that maybe the event handler would only be attached if scroll bars were actually present). It's an API route, but see if you don't notice a pattern with this: Public Declar ...Show All
SharePoint Products and Technologies Sharepoint 2007 release date
When is the true release date for sharepoint 2007 .... some say late Feb others say March. whats the truth As Henry thought, it has already been released. The information is available in the product FAQ along with Licensing information should you need it: http://office.microsoft.com/en-ca/sharepointserver/HA101655351033.aspx ...Show All
Visual Studio Team System CA2000: Problems..?
I have been experimenting with the code analysis tool with VSTS Developer for work have run into a couple issues with regards to the rule about disposing objects that have the IDispose interface. (CA2000). I am wondering if I am missing something, or if they are in fact failings of the engine or rule as it is 'out of the box'... 1) If the object is instanced within a try..catch block, and then the catch just does something and then the method carries on, (rather than rethrowing the exception) the analysis tool does not trigger the CA2000 rule. But the exact same code in a try..catch block where the catch rethrows the exception it is triggered. 2) I build a base class that implements the IDispose interface, and then build a second cla ...Show All
.NET Development Getting contents from bind Controls
Hi, when I have the need to update my DataSet with the contents of the bind controls I should use (VB 2005 Express): Me.Validate Me.BindingSource.EndEdit Is this true This two lines are needed What is the need for each, can someone explain I can use this code lines Anywhere in my program I'm using the Data-DataBondings-Text defined in the properties Window for the Controls assigning the BindingSource-TableField, this is the way, right Thanks, Pedro Hi, Yes binding the text property of the textbox is the right way. Me.Validate calls the form's validate method to validate the input before saving it. If you need some validation create a new Validate sub. Me.BindingSou ...Show All
Visual Studio Express Editions Visual C# Express Edition hangs on exit
Unhandled Mystery After doing normal development work and saved files, I closed the Visual C# 2005 Express Edition with the close button on the caption row. Then it happens about one time of ten sessions – the post mortem message: Unhandled exception at 0x776c555c in VCSExpress.exe: 0xC0000005: Access violation reading location 0x585db268. Next the bigger nuisanse happens: System relaunch C# IDE and I need to close the application, but now it closes without exception. Post mortem debugger shows that exception occurred in the ntddl.dll library at address 0x776C555C. By reference, I should say, when using the Windows XP SP2 I never got that error. It shows after I switched in June to Windows Vista U ...Show All
Visual Studio Express Editions Save As animated gif impossible?
I am working on an image editing application and am on the final step, which is the user saves the 3 images they have edited as one animated gif. I have done a lot of web searches trying to find some code that will accomplish this, but have come up empty. Is it possible If so, how is it done Since I can open MS Gif Animator programattically, I can live without being able to run it from VB Express, although I'm sure there would be a lot of happy people if someone could figure out how to do it and share their secret with the rest of us. I do appreciate all of your time and help. ...Show All
Visual C++ i want get text by mouse click
i want get any word and any where in windows like Babylon Dictionary are there any function in windows api to do it Babylon using OCR recognition and mouse hooking techniques to read characters. This article describes how to get window handle from Mouse points ...Show All
Software Development for Windows Vista Parameter Dictionary that map to Public properties on the workflow
Hi everyone: I hope my question is basic. When I create a workflow I am creating a parameter collection and passing it into the CreateWorkflow() method off an instantiated runtime object. Here's the code: Dim parameters As New System.Collections.Generic.Dictionary( Of String , Object ) parameters.Add( "MySpecialID" , MID) Dim instance As WorkflowInstance = runtime.CreateWorkflow(workflowType, parameters) On the workflow class (which is a state machine) I've added a public property which the parameter should map to. Here's the code: Public Class SampleWorkflow Inherits StateMachineWorkflowActivity Private _mySpecialID As Object Public Property MySpecialID() As Object Get R ...Show All
