FreeJesus's Q&A profile
.NET Development metaclass/class references
Hi, I'm in the process of learning c#, but i'm getting the hang of it pretty fast. The problem is documentation. I've read up on C# reflection, and i'm already using it, but there are certain things which aren't stated. For instance, my issue is that of class references. How do you do such in C#. Like for instance, delphi: <code> {* class reference declaration *} TDBObjectClass = class of TDBObject; {* Method returns the remotable object for a given class type...the method here is a class funciton *} TDBObject.GetRemotableClass(aClass: TDBObjectClass):TRemotable; begin ..... end; </code> What is most IMPORTANT about my question is the fact that I am not concerned with the Dynamic creation of the class us ...Show All
Visual C++ ListView /TreeView do not draw themselfes after CreateWindow
i have a problem with the Tree/List-View Windowclasses. after creating a button, editbox or combobox the controls are painted immediately after the CreateWindow-command. with the above mentioned controls it is different. After CreateWindow-command for the Treeview there is only a "hole" in my parent window which comes from the CLIPCHILDREN-style that i use in the parent window i suppose, but the TreeView/ListView-control is not painted. the control is first painted after i drag the window off the screen and back on the screen for example to force a WM_PAINT-message to be sent form windows. Sending a WM_PAINT message explicitly after CreateWindow has no effect either. what is different with these controls here is the createwindow ...Show All
Windows Forms How to find computers domain
Hello, I'm trying to find the full domain name of the current computer to use in the constructor of the System.DirectoryServices.DirectoryEntry object. It seems as if you can use: System.Security.Principal.WindowsIdentity.GetCurrent.Name and parse it Or System.Environment.UserDomainName however that only gives you the 15 character short domain name. Is there any other way to get it without using an API call Thanks. Hi, Ryanhav Try this piece of code: System.Net.NetworkInformation. IPGlobalProperties prop = System.Net.NetworkInformation. IPGlobalProperties .GetIPGlobalProperties(); this .label1.Text += prop.DomainName ; Hope this helps.Regards. Ye ...Show All
.NET Development Problem with 'Oracle client' and 'ODPnetOnly'
Hi all ! I have both Oracle Client and ODPnetonly on my system. They have their different homes. If the path of Oracle Client (D:\oracle\ora90\BIN) is before the path of ODPnetonly (D:\odpnetonly\bin), then I have a problem. In this case, my web applications (in C#.net) don’t work but my console applications (in C#.net) do. And if I change the path of ODPnetonly before the path of Oracle, then my web-applications work but my console applications don't. So please tell me what is wrong with my system. Is there any problem regarding installation of 'Oracle Client' or ODPnetonly (I installed 'Oracle Client' before the ODPnetonly) Thanks and Regards, Vikas Hi Paul! I checked and found that that the Oracle co ...Show All
Visual Studio 2008 (Pre-release) Fidalgo vs Orcas
I'm still a bit confused about Fidalgo (WPF add-in for Visual Studio 2005) vs Orcas (forthcoming new version of Visual Studio). Particularly as Fidalgo is described as "Orcas" .NET Framework 3.0 Development Tools: http://www.microsoft.com/downloads/details.aspx FamilyId=935AABF9-D1D0-4FC9-B443-877D8EA6EAB8&displaylang=en Will there ever be a final release of Fidalgo for VS 2005 or is this really a sort-of preview of Orcas Tim No offense meant - its simply that Fidalgo is between Whidbey and Orcas - http://local.live.com/ v=2&sp=Point.s2hqgw4s1wb0_Untitled%20item___&encType=1 - maybe we should have used "Blakely" mark ...Show All
Windows Forms maximize application up to taskbar
Hi I have a windows form app which I maximize on startup. The bottom of the form however seems to dissapear behind the taskbar giving an unfinished affect. How can I set the form to fill the screen up to the taskbar Matt This didn't help but while making the change I thought I'd try setting topmost to true. This has corrected the display so that it fills to the taskbar. Slightly irritating in that I now have to specifically minimize the app if I want to work with something else but I can live with that. Might try turning this off programmatically after its been maximized. Thanks all for the help. Matt ...Show All
Visual Studio Team System Communicating in TFS
Within our development process during the completion of a particular task, we might have a great deal of communication between our project managers and programmers to help clarify the exact functionality that is required. Most of this communication would be carried out via e-mail. Is there a way to use TFS to capture this email communcation effectively and efficiently. I could not see how this was done. I can see how checking in code and relating that to a work item could send an alert to the project manager that a task has been modified, however, this seems like a strange and cumbersome way to initiate communication. Much faster to simply send an email. Or is there a better way using TFS Here is a ...Show All
Windows Live Developer Forums Right-Click Select and Zoom
Has anyone managed to get this functionality to work. I want to have the ability to Right-Click and Hold anywhere on the map select an area and them zoom into it. I know there is the alt+click and the middle-click but a lot of your average users don't think of these methods. Most will try to use the method I'm trying to work out. I got a good part of it worked out, but I need to figure out how to override the click event on the VEMap Object, or how to get from the View returned the event I'm working with. So I can test for right-click on the onMouseDown event. Any ideas VEMap.AttachEvent("oncontextmenu", function_name ); This is a little old but should help: http://viavirtualearth.com/vve/Articles/ ...Show All
SQL Server ISNULL ( ) support in SQL Server mobile?
Is ISNULL ( check_expression , replacement_value ) supported in SQL Server 2005 Mobile edition. If not, then why the following statement executes without any error: - " select ISNULL(a,12) as test from tableA " Where 'a' is int column. However, even though i do not get an error, it doesn't behaves as expected. I mean the result which i get is : - a. If the column is not null, the value in 'Test' (resultset) is False. b. If the column is null, the value in 'Test' (resultset) is true. The expected result was that the Null values would get replaced with the specified replacement value. The Questions are: - 1. Is ISNULL( ) supported in SQL Server mobile edition 2. If not, then why it gets executed without error 3. If yes, t ...Show All
Visual Studio Team System Create New Website
Does anyone know of a good tutorial showing the steps of creating a new website and adding it to souce control I have tried several times with little success. For example, do I start with some sort of project, such as a test project, and then add a new website to that Does it mater if create the web site using http or file system I have many questions and haven't been able to find a good site showing how do to this. Thanks The VS2005-style "web site" may be what is throwing me off. If i use this style, i don't believe there is an .sln file for others to to open from source control. Is this correct Are there any benefits of VS2005-style "web site" over VS2003-style "web projects& ...Show All
SQL Server 2005 Slice
Hi, We are trying to migrate AS2000 cube to AS2005 cube. We have several AS2000 cubes using partition slices (eg. Policy_Type_Id = 4) and filters (Month_end_Date_Id = 20060630). Here's the sql it generated in 2000: " FROM table1, table2, table3 WHERE (Month_End_Date_Id = 20060630) AND ("dbo"."Summary_Policy"."Policy_Type_Id"= )...................... The migration generated the filter but did not create the slice for the AS2005 cube. I have done some research and understand AS2005 cubes do not use Slice if they are MOLAP. However, the partitions show different result between AS2000 cubes and AS2005 cubes (it did not slice the partition). If I manually added it to the Slice property in AS2005, it ...Show All
Visual Studio Tools for Office Accessing Word 2007 BuildingBlockEntries
Hello, I would like to programmatically delete a Word Interop BuildingBlock, and am running into several problems. 1. In VBA, I can use this syntax, which works: Dim t As Template Dim bb As BuildingBlock Dim strName As String Set t = ActiveDocument.AttachedTemplate strName = "TestMe" Set bb = t.BuildingBlockEntries("TestMe") '(error if does not exist) bb.Delete 2. Using VB.Net/VSTO, I am unable to use the Word 2007 BuildingBlockEntries collection - can't even get this code to compile. Dim t as Microsoft.Office.Interop.Word.Template = Nothing Dim bb as Microsoft.Office.Interop.Word.BuildingBlock = Nothing t = doc.AttachedTemplate bb = t.BuildingBlockEntries("TestMe") ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Two XNA questions
1. When targeted for the Xbox 360, will the compiler produce standard MSIL 2. What primitives are supported reguarding intersection I know that planes and AABBs are supported, but what about triangles or spheres (real ones, not tesselated) The reason I'm asking is I have made a ray tracer with MDX2 primitives, and found it was rather limited. So does that mean that you could run Xbox360 games with the comapct framework, on a PC Pity there's no triangle, that would have made things a lot easier ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DreamBuildPlay is up!!!
Now go register!! Actual contest details to come the week of Feb 5th I don't really know any valid zipcode and phone number for the US, nor any address for that matter. Thanks for the advice, anyway! I guess I'll just have to wait until they fix this. ...Show All
Visual Basic RichTextbox Copy Files
When I paste a file (xls or Doc) copied from richTextBox (vb.net 2003) to an folder, only appears a "Scrap" file, why Thanks Becuase you're pasting raw text to a folder... Text is supposed to be pasted into a text file. Windows is creating a file on the fly to hold the text. These files are called "scrap" files. In previous versions of Windows it wasn't even possible to paste text in the clipboard into a folder. ...Show All
