Rekire's Q&A profile
Visual Studio Walking CodeElements for Assemblies and COM libraries
As I walk the CodeElement tree of a project, I see that I can reach CodeElements with InfoLocation of vsCMInfoLocationExternal. It seems likely to me that the CodeModel contains CodeElements for all the elements defined by a project's references. Is there a way to iterate these It would be much more efficient for me to walk the prebuilt elements, rather than redundantly look them up using reflection (in the case of COM libraries, also converting typelibs to assemblies). Thanks, Ken I guess if CodeElements are a heavyweight COM wrappers for a lighter internal implementation, this makes sense. Still, the list of all available types, at least by fully qualified name, must have been built for the sak ...Show All
Visual Basic how i can display all application on my computer but not all proccess?
hi, i want to display all application that install on my computer (like media player,excel,word,norton,...) but with out all proccess. like the list display in control panel->add/remove programs i know i can see the all proccess like this: proccess.getallproccess but i need just my install programs. i talking about visual studio 2003 thank u Hi Thanks for this sample. It only shows the Microsoft products. How can I get a listing of all installed products without knowing what vendors products are installed. Regards Deon ...Show All
Windows Forms DataGridView CellValidated not fireing when expected.
When is the cell validated event suppose to be fired I have a simple form with a DataViewGrid and a button (among other things). Sometimes when the user edits a cell then clicks the button, the CellValidated event is called After the button event is called. In this case the Button_Click event is called, which saves the data and clears the grid and apparently after the grid is cleared, then it calls CellValidated. This of course is a problem because the cell in question no longer exists. The order of events in the trace is basically Button_Click(...) DataGridViewRowCollection.Clear() DataGridViewRowCollection.ClearInternal(...) OnClearingRows() OnClearingRows() set_CurrentCell(...) SetCurrentCellAddressCore(...) EndEdit(...) CommitEdit(... ...Show All
Software Development for Windows Vista It there any document tell us why ?
I am following the hands-on lab, but the document tell me how to do and doesn't explain why. so i am always puzzled. Can u give me any document about why bow ! Hiya If you are a fan of books rather than online documentation there are some coming out next month. - Due on 13/10/2006 - http://www.amazon.co.uk/Essential-Windows-Workflow-Foundation-Shukla/dp/0321399838/ref=sr_11_1/202-4309871-8687067 ie=UTF8 Due on 23/10/06 - http://www.amazon.co.uk/Foundations-WF-Introduction-Workflow-Foundation/dp/1590597184/sr=1-3/qid=1158235191/ref=sr_1_3/202-4309871-8687067 ie=UTF8&s=books Due on 11/10/2006 - http://www.amazon.co.uk/Microsoft-Windows-Workflow-Foundation-step/dp/073562335X/sr=1-4/qid=1158235 ...Show All
Visual Studio Team System get active selection in TFS
i am intending provide a function like this; in the "work item query" result session, when user click one of them, i want to recognize what they choose, so that when i click "myhelp" from the Menu, i will be able to display some text to the user. ps: the "myhelp" menu is added through Add in. thanks in advance William, Check out my blog at https://blogs.msdn.com/narend/archive/2006/07/07/AccessingWitFromAddin.aspx for detailed steps and sample on how to do it. BTW, the sample https://blogs.msdn.com/narend/archive/2006/07/10/661767.aspx does exactly this. Naren ...Show All
Windows Forms need help with properties while creating usercontrol
Hi, I'm creating a usercontrol with some public properties to display in the propertywindow. I want to display the properties under category. like how we have form.size category has some properties. Please help me with this. venp venp wrote: Let me explain bit clearly. I'm creating a usrcontrol with some public properties like deletable,updatable,insertable.(boolean) then i'm placing this usercontrol in a form. after placing , In the userctrls property window i need to see the above properties under changeable. so i need to create a category called changeable which displays all the above 3 ppty. Please help me. venp-- You ...Show All
Commerce Server Unrecognized configuration section membership
After my update from CS 2002 to CS 2007 i need to redevelope the hole User Logging System. Before in the old version the Microsoft.Solutions.Framework was used for the authentification but now I'd like to use the standard ASP.Net logging. As I read, I need to add The UpmProvider to my web.config but the result ist that i get the following Error: Error 101 ASP.NET runtime error: Unrecognized configuration section membership. What do I have to do now Does anyone have something like a complete example how to implement this Loggin System which would probably help me Regards It works now more or less, I think it didn't work because I forgot to add the CommerceCompnents DLL. Anyway now ...Show All
Visual Studio Any Idea On Crystal Report Connection???
Hi All, I Changed My Server from SQL 2000 To SQL 2005 Server. I Also change my ServerName and Database name... When My applications Running From SQL 2000 Server i have not set ConnectionString on my Page. But when I migrate Server From 2000 to 2005 and also change servername and databasename It ask for ConnectionInfo...... You can find my code on http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=879486&SiteID=1 First I Try to setup following code for Connection Info rpt.DataSourceConnections[0].SetConnection( "Server1" , "MYDB1" , "sa" , "db" ); My Report Data will not refreshed.... Then I tried following code. rpt.SetDatabaseLogon( "sa" , "xys06" , "Server2" , "MyDB2" ); Then i will get Mis ...Show All
Visual Studio Tools for Office Outlook property page does not show correct
Hi all, i added a new property page to Outlook (developed with VSTO in C#). This page shows up, but it has a little bug. There is a small part which is not shown correct. I’ve added a picture which shows the problem. http://img.langalaxy.de/ppage.png What can I do, that the property page looks like "Outlook" property page Thanks Hi, you see the small bar at the bottom in standard control color. This belongs not to my user control. My control is actually bigger than the displayed part, but only the part with the "light color" is shown. For any reason my control is cut off at the bottom. thanks for helping ...Show All
Smart Device Development Using GIF's on a Form, do I need to dispose() them?
Hi all, I am using GIF's on a Form that sit in the PictureBox Controls. Do I need to Dispose of these when the Form is closed, or will the CLR take care of this for me Thanks Hi Jeff, and thanks for the reply. After having looked at the link you provided, it states that the resources for Forms opened through ShowDialog() do not get released until you manually manually call Dispose(). and (2) you have displayed the form using ShowDialog . In these cases, you will need to call Dispose manually to mark all of the form's controls for garbage collection. ...but I open the forms via a using statement. This means that I don't need to call the Dispose() method of the Form, rignt Thanks ...Show All
Software Development for Windows Vista Tracking query does not return any workflow.
All, I succefully extract and wrote a variable value in tracking database using custome profile but when I try to query the database it does not give me any workflow back. Here is my tracking profile and code to get the value from DB. < xml version="1.0" encoding="utf-16" standalone="yes" > <TrackingProfile xmlns=" http://schemas.microsoft.com/winfx/2006/workflow/trackingprofile " version="3.0.0.0"> <TrackPoints> <WorkflowTrackPoint> <MatchingLocation> <WorkflowTrackingLocation> <TrackingWorkflowEvents> <TrackingWorkflowEvent>Created</TrackingWorkflowEvent> <Tracki ...Show All
SQL Server SYNONYM Question
Is it possible to create a SYNONYM that does not require you to use the owner prefix Similar to an Oracle PUBLIC synonym. for example: CREATE SYNONM MySynonym FOR dbo.myfunction. SELECT MySynonym FROM dbo.mytable; We are in the process of converting our application to handle multiple databases. There are some system functions in our existing database that don't exist in SQL Server. We want to write the function in SQL Server and use a synonym with the same name as the other DB, so we have as few code changes as possible. ...Show All
Visual C# Minimize KeyEvents...
Hey, I have developed a very simple program that takes the pressed key (e.KeyData) and executes a method based on the letter. However, when the program is minimized, the program doesn't look for what the user types. Is there a way where i can make the program always check what key is pressed even when it is minimized Thanks, By default, when a window is minimized it no langer has the handle. And thus cannot interprate KeyEvents because that logically could cause unwanted problems with other programs. However, there are scenarios where you would want this. Such as a shortkey for a systray application. My best guess is that in this case you probably need to use the System.Runtime.InteropServices cl ...Show All
SQL Server ALTER INDEX ALL ON X1 REBUILD ONLINE = ON --Error Msg 2725, Level 16, State 2, Line
Hi, I migrated 90 GB db from sql2000 to sql 2005 using backup ,restore Trying to benefit from REBUILD INDEX ONLINE = ON, in same cases I get error ALTER INDEX ALL ON dbo.Query_Master REBUILD WITH (FILLFACTOR = 80, SORT_IN_TEMPDB = ON,ONLINE = OFF , STATISTICS_NORECOMPUTE = OFF) Msg 2725, Level 16, State 2, Line 1 Online index operation cannot be performed for index 'PK_Query_Master' because the index contains column 'Commentf' of data type text, ntext, image, varchar(max), nvarchar(max), varbinary(max) or xml. For non-clustered index the column could be an include column of the index, for clustered index it could be any column of the table. In case of drop_existing the column could be part of new or old index. The operat ...Show All
Visual Basic How to find out if Plus or Minus of TreeNode is clicked?
Hello, i want to automatically expand or collapse a selected treenode when it is clicked again. But when i use the NodeMouseClick event to do this, i can't use the plus or minus any more. When i reduce a selected node with the minus it receives the NodeMouseClick event and thjs expands again. Ok, it would work with a variable to see if the selected node was collapsed by the NodeMouseClick event. But is there a possibilty to find out if the Plus or Minus is clicked Regards, Markus Instead of trying to find the plus/minus sign you should use the Collapse and Expand methods on the TreeNode itself. http://msdn2.microsoft.com/en-us/library/system.windows.forms.treenode_members.aspx ...Show All
