nihk's Q&A profile
Windows Forms identifying with API
Hello, Im trying to identify textboxes with API on a form, but there are multiple textboxes and they each have the same caption and class name, how can I send a message to a specific textbox I moved this to the Windows Forms forum as it is specific to Windows Forms and not C#. Michael Taylor - 2/15/06 ...Show All
Windows Forms How do I maintain a single instance of mdi child forms?
I am sure that there is a simple answer but I can't find it. I have a mdi form with a number of child forms and a number of grandchild forms. I do not want to run more than one instance of any form (child or grandchild) at any time within the mdi container. I have used the instruction my.forms.formname.close() before I open (show) a new instance of a form but this is ineffective and seems to be ignored. All the forms open and close OK when the root form is not an mdi form. Any suggestions would be welcomed. Hello You can use the Application.OpenForms["FormName"] to get the informat ...Show All
Visual Studio Tools for Office Smart Documents in the future
With the advent of VSTO 2005, it seems that the concept of the ISmartDocument interface is no more. With the lack of information on the web and on MSDN in this regard, I would like to ask: Is it Microsoft's intention that the new Microsoft.Office.Tools.Word namespace and the ability to create custom Action Panes replace the use of the ISmartDocument interface I like those straightforward questions :) I wish I could give you a straight answer (which is 'No') but things are more complicated. Microsoft is certainly recommends using ActionsPane as a primary solution for programmable task panes. This is no ...Show All
Windows Forms accessing windows components from class
hi, i've created a separate class to encapsulate my data and methods. however, i've got methods within this class which i need to access my main form windows components such as textbox, listbox and the like. i've tried changing the components' access modifier to 'public', but it didn't seem to solve my problem. please advise. thanks in advance, and regards. ...Show All
Software Development for Windows Vista OnExecuting....
We've built our own tracking service, and need some user data from activities that are about to be executed (EventSinks). So I'd like to call TrackData(somedata) when the activity goes to an "Executing" state. This event is somehow triggered as an Activity Event, but I can't find any activity event like OnExecuting... Any one... I am not entirely sure since I am still TRYING to learn the WWF as well, but I think that if you create a custom activity, then you can override the Execute implementation and make your TrackData call there. Make sense -- /chris ...Show All
Visual Studio net framework installation fails on WIN98
I need to install .net framework for our work network with a mixture of WIN 98SE clients and WINXP. Installation has worked on all XP machines but has failed on 2 of 6 remaining WIN98 machines. Win98SE machines are P3 533mhz/ w 256mb ram with all other current updates installed. Are there any files that should be manually deleted or manually installed first Although several articles in the windows Installer did not seem to directly apply or to be succesfull, I was able to rename the msihnd.dll file as peer KB article 324516, which then allowed me to redownload the Windows Installer 2.0. The Installation of . ...Show All
Software Development for Windows Vista Workflow adaptation advanced scenarios
Hi Dear, I have some questions with regards to some advanced scenarios for Workflow adaptation : (1) Customization scenario : using a Workflow definition and a set of customization policies (defined in a separate file) I would like to be able to add, remove and swap activities both statically (prior to running a workflow instance) and dynamically during the workflow runtime. E.g., suppose we have a Workflow for national Trade and another one for International Trade. They both have a lot of things in common and I want to define one common Workflow and manage the differences through policy-based adaptation. I do not want to complic ...Show All
Visual C++ Deleting Managed Threads
I have a Windows Forms Application that often does not exit properly (i.e. it is left sitting in the processes in Task Manager), and I'm not sure why. 1 of the things it could be is because I'm using threads. I have the declaration of a thread in my class: Thread^ t; and I open however many threads I need at runtime using a loop: for (int i = 0; i < this->MyThreadCount; i++) { this->t=gcnew Thread(gcnew ThreadStart(this, &MyClass::ThreadFunc)); this->t->Start(); } I'm deleting these from another class on exit: for (int i = 0; i < this->MyClassInstance->MyThreadCount; i++) { this->MyClassInstance-> ...Show All
Windows Forms show Infos from related tables in Datagrid
Hi, Following example: two tables, one is Company(CompanyID,CompanyName) and the second is Employee(EmployeeID,CompanyID,EmployeeName). I want a datagrid, which shows EmployeeName and CompanyName (in which the Employee works). Normally I would say, that I should make a join. But if I make a dataadapter for a join, then it won't generate the Update, Delete and Insert command. S ...Show All
Visual C# What is the difference betwenn localVar = val and this.localvar=val
Hi in some languages there is a diffrence between localVar = val; and this.localvar=val; what to use when You can't use "this." with a local variable. You can use it with a class member only. There is no difference between "this.member" and "member". I think "this" has two benefits: 1. It self-documents the fact that you're referencing a class member and not a local variable or parameter. 2. It's handy to pull up the intellisense list of members for the class. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant ...Show All
SQL Server Using result sets from a stored procedure
Is it possible to access the result set returned from a stored procedure For example, begin set @cursor_list = sp_spaceused 'a_table' ...loop through here... end I can't seem to find any information on accessing the "default result set(s)". Returned from a stored procedure. What I really want is the output of sp_spaceused for all tables for a particular user. Thanks Tory http://www.sommarskog.se/share_data.html > Is it possible to access the result set returned from a stored > procedure > > For example, > > begin > set @cursor_list = sp_spaceused 'a_table' ...Show All
Software Development for Windows Vista Network DTC issues
Hi, I'm having the same problem too and there's no VPN involved in my situation. The client machine (XP SP2) has the firewall turned off and security configuration settings are as per the earlier message (Network DTC Access on, remote clients allowed, inbound/outbound communication allowed, no authentication required, running as Network Service) . The error is: Problem:fail to invoke remote RPC method Error(0x5) at dtcping.cpp @303 -->RPC pinging exception -->5(Access is denied.) RPC test failed Further help would be great. Aquilegia, I can't find the "same problem" that you're referring to at the star ...Show All
Visual Basic return a specfic object from object arraylist
I have an arraylist of myObjects, one property of which is a UID. I want to Get the myObject with a specified UID. Is there a more expedient way of getting an object out of a list than iterating through them one by one and checking the value ...Show All
Visual Basic Local data base (.mdf) error
While adding a local database (.mdf) file as data source, i am getting an error 'Shared Memory Provider: Parameter is incorrect', I couldn't find any solution for this. Can anyone help me Hi, The shared memory provider error points to several possible issues that we had with VB Express and SQL Express in the Beta1 release. This is however fixed in Beta2. Could you please upgrade to that version to verify that you don't see the problem anymore This is the most straight-forward fix. You can download it here: http://lab.msdn.microsoft.com/express/vbasic/default.aspx Please follow the uninstall instructions caref ...Show All
Visual Studio 2008 (Pre-release) Change scrollbar style within a ListView/GridView
I'm using a ListView that contains a GridView, with a number of columns defined. This serves my current needs, except for the vertical and horizontal scrollbars that are shown within the ListView. I can't find any way to style them. For starters, I need to remove the gray scale look and replace it with colors that work with the overall theme of the application. Is there any documentation on how to style, or otherwise access properties of the scrollbar within a ListView Thanks. Bruce Bukovics Author of .NET 2.0 Interoperability Recipes http://www.apress.com/book/bookDisplay.html bID=10116 While that referen ...Show All
