Ronen Tidhar's Q&A profile
Visual C# Word.Applicationclass problem
hi all! I have a main form that opens a child that contains a list of MSWord documents that can be opened. The problem is that i can open 1 document, use it and close it, but i get an exception when i try to open another document from that list. The error is: RPC Server Unavailable (Exception from HRESULT: 0x800706BA). Here's the code i use: ------------------------------------------------------------------------------------ private Word. ApplicationClass wordApp = new Word. ApplicationClass (); wordApp.Visible = true ; object filename = selectedFile ; Word. Document aDoc = new Document () ; ...Show All
Windows Search Technologies WindowsSearchSafeFilter.exe takes all available CPU cycles
Anyone seen this before After I install WDS, this process will take over all available CPU cycles, stopping me from using my system. I have disabled my On-Access AntiVirus scanning and it did not help the issue. Thanks in advance. Got this problem as well. Anyone have an idea what is going on Thanks. ...Show All
Windows Forms Targeting a .NET Framework Version
I converted my application to .Net Framework 2.0. The problem is I have a component which is built using .Net Framework 1.0. It doesn't have any issues while running on both frameworks 1.0 and 1.1. But now in 2.0 when I use that component, on closing the form that uses the component, I get SystemOutOfMemory exception. Any help to resolve this issue is highly appreciated The issue was not framework version. It is because of the unused tooltip I had in my form. It caused to throw nullreferenceexception and finally outofmemoryexception. Thanks everyone for your efforts and time. ...Show All
Visual C# COM in C#
Hello Everyone, I don't know, if this is the place to ask this kind of question. I have a code which is in C++ using COM related to USB...and that was made under VC 6... This code is using #import "something" I was wondering is there any way to convert this code in C#, as I'm using VC 2005 and can't compile the code, getting linking errors all coming using this directive. At this point I thought maybe a good idea, to upgrade the code to C# as my rest of the application is in C#, I know which doesn't matter...... Is there any way to change the COM code to C#..... Any suggestions.... Thanks, Harsimrat ...Show All
Windows Forms Deploying Extra Files Preserving Folder Structure
Hi gang, My application requires a bunch of support files in the form of text files in subfolders beneath the exe. I understand that I can add a file to my project and flag it as "Content" so that it will be deployed via ClickOnce with the exe, but can I preserve folder structures by doing this For example, can I create a folder structure in my project, add "content" files to a subfolder, and expect those files to be deployed within that folder structure when the user installs the exe If this is not possible, does anyone have a suggestion as to the best way to deploy these support files Cheers, mabster Fil ...Show All
Visual Basic VB 3.0 migrating from NT 4 to 2003 DLL question
Does anyone know if we migrate a Visual Basic 3.0 environment from NT 4.0 to 2003 if we need to update the VB DLL's Not clear exactly what you are asking. Are you looking to migrate a VB 3 app to Visual Basic 2003 If so, this isn't supported. Or are you talking about running the VB 3 application on Windows Server 2003 - Steve Hoag ...Show All
Microsoft ISV Community Center Forums After_Save Event???
Hi to all. I have a problem. For some sheets, I set to invisible before save. Now, I need set to visible the sheets after save, but there aren`t a After_Save Event... How can I solve my problem Any idea Thanks & Regards. I would try to use the BeforeSave event to cancel the users request to save, and do your own saving routine. I suspect you may need to set a global variable so that you can determine if the save request is from our code or the user. ...Show All
Windows Forms Seperate Thread progress form
I am trying to create a Progress form for my program that loads in a seperate thread so that screen updates and animations on the form are smooth and timely. I have had some success with the following code. The Form Used as a "Template" for the threaded progress form: Public Class frmDebug Private m_Thread As Threading.Thread Private m_CloseByCode As Boolean Public Shadows Sub AsyncShow() m_Thread = New Threading.Thread( AddressOf ThreadMain) m_Thread.Start() End Sub Private Sub ThreadMain() UctlProgressSpinner1.Style = 1 UctlProgressSpinner1.Active = True Application.Run( Me ) ...Show All
.NET Development VB 2005 Express - example database project
I'm looking for a simple example project where i can find all the statements are related to - connecting and closing the database - get (sql select) and set (sql insert, update) data - how to put and edit data in a DataViewGrid Can somebody help me tnx from the Netherlands Hi, I have some example. Do you need only code, or instruction, how t create all project ...Show All
Visual Studio Visual Studio .Net 2005 Beta 2 - can't access MSDN
Just installed VS 2005 Beta 2, it's great. Like the new features. Unfortunately, I can't seem to access any help system. The only help I get is "help on help". Nothing on MSDN or VC#. Tried reinstalling MSDN and that didn't help. Has anyone else experienced the same problem Or is it just me For what it's worth, here's another manifestation of the same problem. In my case I can neither access the help from the IDE nor from the Start menu; I get an apparently empty help collection in the IDE and a failed load ("Microsoft Document Explorer can't access help collection...") ...Show All
Visual Studio Express Editions Structure in a list(of "Structure Name")
Hi folks, I am having an issue with using a Structure object that I have contained in an list(of object. The issue is using the indexof feature of the list(of object. I need to query the list array for a field that is contained in the structure, once found then i will be able to use the index to gain access to the other fields. Hope this makes sense. Here is the test code I am tiring to make work, the code in the button1 is where the issue is currently at. Cheers Sentinal visual basic code: The following will show you an getting the index of the items in the list. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e ...Show All
Visual C++ XP style into web page embedded's ActiveX control
Hi all, I can't activate XP style into my ActiveX control embedded in a web page (internet explorer) or "ActiveX Test control container" application. I have try to add manifest, in pre or post compilation step (with external tools). I call InitCommControls before any control allocation (at top of ...App::InitInstance). And finally, i try to add misc compiler definition found on internet... But never the XP look appear! If i move the MFC dialogs which compose my ActiveX into an MFC application this work perfectly into XP style but never into an ActiveX... Someone has succefully made this without external shareware/trial ...Show All
Windows Live Developer Forums MSN Messenger - "The following message could not be delivered to all recipients"
Hello, I've had masive problems with people trying to contact me getting the "The following message could not be delivered to all recipients" error messages. I am signed in, talking to other people but when some people talk to me they get that. What's worse, other times when people talk to me they don't get an error message and I never receive their messages. I have UPnP enabled through the router and the protocol installed on local computers. All firewalls are disabled and port forwarding enabled. Just the same, I never had to do any of this stuff and I could always use MSN fine. I have installed Windows XP Pro SP2 with t ...Show All
.NET Development Bug in ADO.NET 2.0 using SQL Server 7?
We were using .NET 1.1 against SQL Server 7 just fine. When we switched to .NET 2.0 we found that the connection pooling against SQL Server 7 no longer works. As a side note we would like to upgrade from SQL Server 7, but we currently have a number of integrated third party packages that make this a very large task. I traced the connection pooling issue to the connection setting Connection Reset with a value of true. It you set Connection Reset=false then the connection pooling would start working. It sounds like it is not a good idea to use this setting as it can cause problems with subsequent uses of the connection from the pool. Af ...Show All
.NET Development client side datatable select
Hello, Is there a way to execute sql against a client side datatable object I have a client side datatable object (that was initially populated from backend sql server table) that contains CustId, StateId, CustTypeId. Is there a way to get a list of unique CustIds contained in my client side datatable object - in other words is there something I can do CLIENT SIDE that would equate with select distinct CustId from MyClientSideDatatableObject Thanks for your help ..... gtr That all depends on what you mean my client - Windows, ASP.NET If you're referring to Windows, and the obj ...Show All
