Ahmed abd el hakim's Q&A profile
Visual C# pulling forms out of applications.
Is there a way to pull out what forms are in a particular application that get's passed in Also does any one know how to find out the name of the exe file that call's the dll Anything would be very helpful. Thanks, Matt In terms of Form-based classes contained in an assembly, you could use reflection to enumerate all the types in an assembly (see Assembly.GetTypes) and see if any derive from Form (see Type.BaseType). You can get the main assembly via Assembly.GetExecutingAssembly(). If you have an object, and you want to know what assembly is is from you can use Object.GetType() to get it ...Show All
.NET Development .Net Passport SDK no longer avaliable?
Hi, I would want to use .Net Passport authentication for asp.net websites. According to Msdn (VStudio 2005), the passport SDK has to be downloaded first. But the link given in msdn is no longer valid. I searched the net and microsoft's website but cant find any place to download the passport SDK. Has microsoft withdrawn support for the .net passport SDK Are there any links to download the SDK Please go through the following article. I hope that this will help you. http://www.kbalertz.com/kb_816418.aspx Regards, Jimmy ...Show All
Windows Forms Measure String
I need to measure a given string using a given font. However, I have no desire to ever draw this string to any surface. How can I go about creating a graphics object to get access to the MeasureString function Or is there another way to measure a string I would be doing this several hundred times in sequence, so speed could be& ...Show All
Visual Studio 2008 (Pre-release) Sparkle panels UI
Anyone know if the main user interface controls in Sparkle will be available as a sample or as controls The UI would be great for a test app I'm working on and I don't want to reinvent the wheel if major parts of it will be available. Hi John, We don't have plans for that in version 1 of our product, but we will try and publish as many of the “cool things” in Sparkle as components. For example, our welcome screen is already in the form of a sample we are shipping currently. I just posted a sample on my which shows a very naiive version of how you can drag things around in your scene: http://blogs.m ...Show All
Windows Forms Can't apply a DataGridTableStyle to a Datagrid
Hello, I've this code: Private Sub BuildDgStyle() Dim dgStyle As New DataGridTableStyle dgStyle.MappingName = Me.Tabella Dim colCodice As New DataGridTextBoxColumn colCodice.HeaderText = Me.HeaderCodice colCodice.MappingName = Me.CampoCodice If M ...Show All
Visual Studio 2008 (Pre-release) PDC COM312 Federation demo source code needed
Does anybody would have the source code for the PDC presentation (COM312) presented by Martin Gudgin (Gudge) I would like to see the source code of the STS Service that was used for the Federation sample. We can see clearly in this demo that the STS client credential type was set to Certificate. This is exactly what i need to do and i would like to see what the STS looks like because i have not been able to make the STS from the SDK's Federation sample working with other client credential types than the default (Windows). It always end up with the same error (See my prevous post about that " Service Constructors: How do they work &q ...Show All
Windows Forms Run-time,design-time component
I am interested in dividing my components into run-time and design-time components. I want to do this so that code I only need for design time is not included in the run-time component, which is shipped to an end-user. The design time component would only be needed by the programmer when making use of the design-time capabilities of my component, such& ...Show All
SQL Server SQL 2005 Report Site Permissions
I can design and deploy my reports to localhost no problem, however instead of the usual RS menu i get this My reports view just fine, but it means i can set permisions to allow other users to view them. Can anyone help Thanks Bad install, i just uninstalled and used the latest ctp. Works well thnx ...Show All
Visual Studio What is the best way to present 3 value properties on shape?
Hi, all. I'm trying to present 3 properties of model object on the shape. Using shapeText decorators I can't position them one below another, but I need them look like list. Using one shapeText decorator with multiline content I only can see the beginning of the first line. Using compartmentShape I have to create unnecessary relationship and class, also unnecessary list header appears within shape and unnecessary "add item" item appears within context menu. May be there is better way to do this Thanks, Alexey Hi Alexey, Currently there isn't really a very good way to do thi ...Show All
Visual Studio Tools for Office Overriding the methods of the Document class in the Word Object Model
I am using VSTO 2005. I want to override certain methods of the Document class (Word Document). The methods I am looking at for now are: Save Open New According to the docs, these are virtual methods and should be able to be overriden. I am not having any success with the following approach: public override void Save() { MessageBox .Show( "Testing intervention of Save event" ); } The method just doesn't get called. Is it possible to do this in managed code If not, what other ways can it be done Thanks Fourge Hi Geoff Thanks for the response, ...Show All
.NET Development Err.Raise in EnterpriseServices Component
Here is the situation. I have custom err.raise statement Err.Raise(vbObjectError+9000, src, desc) in an ES component. And when the client tries to trap the error, the error number that is returned is always 5, but I can get src and desc values. Is there any known problem with errors raised from ES component Thanks. ramesh nd. The workaround is throw COM exception like this: throw New COMException(Err.Exception, vbObjectError + 9500) there is a marshaling problem if you use Err.Raise(vbObjectError + 9500) in ES component. Note: You can use Throw inside On Error Goto block, and it works. ...Show All
.NET Development DataGrid Format Question
when my datagrid shows its results there is a caption of text that says new dataset ...I want to know where i do i get rid of that caption its there everytime i run and my results are returned is there some kind of formatting that is available that i dont know about There is actually one more feature that is rather wierd on the datagrid.....when my results return there is a small plus sign in the corner but why does it not just open directly.... ...Show All
.NET Development static data at process level (rather than AppDomain level)
For unit testing purposes, I would like to be able to share some data between AppDomains. More precisely, I would like to achieve the "static" semantic but at the process level (as opposed to AppDomain level). Is there some simple way to do that (simple as opposed to building a whole dedicated remoting architecture for that purpose) Is there an equivalent of the LocalDataStoreSlot at the process level Thanks in advance, Joannes Vermorel Done at http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=2222ae9d-e327-4e2a-a5c9-4f236ad12b9b Joannes ...Show All
Smart Device Development ArrayList overwriting values when add elements
Every time I add an element to my ArrayList it, it adds the element but also overwrites the values added previously. Here's my code: while (drdrDataReader.Read()) { item.Item._ID = drdrDataReader.GetString(0); item.Picture = drdrDataReader.GetString(1); alItemList.Add(item); } drdrDataStream.Close(); Is there something I'm missing You are adding the same item over and over again. You need to create a new item for each read: while (drdrDataReader.Read()) { item = new Item(); it ...Show All
SQL Server Error importing data from oracle database to an SQL database
Hi! When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error: Could not connect source component. Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used. Error 0xc0204018: DTS.Pipeline: The "output column " ...Show All
