Drakth's Q&A profile
Visual Studio Breaking change in RC C# compilation
In all versions of the IDE prior to VS8 RC C# build employed interfaces provided by cscomp.dll shipped with .NET framework. Our company uses internal tool that integrates VERY smoothly as preprocessor into the build process by thunking interfaces in cscomp.dll. Compilation options, error reporting and debugging transparency are achieved with minimal coding. Now, it seems, RC has its own copy of compiler in C# package, and while csc based builds still work, IDE does not use cscomp.dll anymore. Any hint on how can we integrate preprocessor into new compilation process would be greatly appreciated. Please, help, whatev ...Show All
.NET Development Could you write a XSLT for me? Many thanks!
Could you write a XSLT for me Many thanks! I hope to transform the Soure XMl to the Target HTM (the same as the Bookmark.htm of IE) using XSLT, I'm a beginner, could you write a XSLT for me Many thanks! -----------------------------Schema--------------------------------- <xsd:schema xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns=" http://www.hellocw.com/onlinebookmark " targetNamespace=" http://www.hellocw.com/onlinebookmark " & ...Show All
Windows Forms Dynamically loading MDIchild forms at runtime
Hi all, I would like to create an application where i can easily add / update components (e.g. inventory component, customers component) to the application without modifying the main project. I tried to design the architecture based on a MDI-application where I define the components in MDIchilds. The MDI-parent is then the main project. Each MDI-child has to be registered in a database and subsequently based on a user's credentials, this MDI-child can be loaded. Also based on these credentials, the user menu is dynamically created. I am actually looking for a project similar to DotNetNuke, but then developed in Windows Forms... But th ...Show All
.NET Development File.Exists()
Hi. Wierd problem here If i take this exact same code and put it into a Windows app in C#, it works and enters the loop after the File.Exists() command If i take this, modify it for the smartphone, it seems it return false all the time however the file does exist in that directory. I only modified it so it can get the proper strings (the filename of the application - as in .NET CF there is no "Application.ExecutablePath...." so you have to get it by "Assembly.GetExecutingAssembly()..." string oldFileNameOnly = "abc.exe"; string theNewFileName = oldFileNameOnly; int x = 0; try { while (File.Exists(theNewFileN ...Show All
Smart Device Development Error with the deploy tools and imageList
When I deploy an application PPC with a toolbar and an imagelist, I have an exception: System.NotSupportedException was unhandled Message="System.Drawing.Bitmap" StackTrace: at System.Resources.ResourceReader.LoadObjectV2() at System.Resources.ResourceReader.LoadObject() at System.Resources.RuntimeResourceSet.GetObject() at System.Resources.ResourceManager.GetObject() at System.Resources.ResourceManager.GetObject() at Test.Main.InitializeComponent() ...Show All
Visual C# How to filter ComboBox data from another combobox usigng data set from xml
How do you use one combobox to filter the data to another. I have an xml file: < Locations > < Location >< Name > Location A </ Name > < Branches > < Branch> < ID > 1 </ ID >< Name > Branch One </ Name >< DataUrl ></ DataUrl >< UploadType > ftp </ UploadType ></ Branch > < < Branch> < ID > 2 </ ID >< Name > Branch Two </ Name >< DataUrl ></ DataUrl >< UploadType > ftp </ UploadType ></ Branch > </ Branches > </ Location > <Location>...other Bra ...Show All
.NET Development Control the order of calculation for fields with expressions
c#, VS2005 My DataTable is having several 'calculated/expression' fields. Is there a way to control the order of calculation so that i would be able to use a calculated field in another, but be sure that field x is calculated before being used in field y. Kind Regards Harry As I know there is no way to control it. I would expect that calculations suppose to start from the *bottom* of the calculation tree. Do you have any specific issues ...Show All
Windows Forms How to make a property not show up in propertyGrid
I have a control that derives from the TextBox control. It has some additional properties in addition to the ones inherited from the TextBox control. I know that for all public properties, the default value for the browseable attribute is true which means that when you drag a control on to a form, the property will show up in the propertyGrid. My question is how do I turn the browseable attribute to false since I don't want all the properties in my control to show up in the propertygrid. I will explicitly set the browseable property to true for those properties that I want to show up in the propertygrid. Anyhelp in this regard is ...Show All
Visual Basic list all User accounts
Does any one know how to return a list of all the users accounts. Found it ... Dim DomainUser As String = System.Security.Principal.WindowsIdentity.GetCurrent.Name.Replace("\", "/") Dim ADEntry As New System.DirectoryServices.DirectoryEntry("WinNT://" & DomainUser) Dim User_Name As String = ADEntry.Properties("Name").Value This should get the current user name that is logged in. ...Show All
.NET Development Icons for files - by extension
Hi, I'm trying to populate a treeview with files in a folder and would like to show the icons for the file. How can I get the icons when I have the extension For example, ".doc" would give me the icon with the w. I want it to look like Explorer and have all registered files show icons. Thanks Thanks, David, but I belive that only gets icons from within the file. That's OK for excutables, etc. But, I'm also looking to get an icon associated with data and other files. See my .doc example above. At the moment, I'm doing an Explorer look-alike, and want to see icons for everything (eve ...Show All
Windows Forms Display a 'Wait Splashscreen' form but only after 1 second??
I am trying to get a pop-up form (a wait splashscreen) to appear during long processes, but I only want it to appear if the long processes take longer than 1 second. Ideally, I want the long processes in the same thread, as there are a varierty of long medium and short actions that can be performed. I've tried setting the form invisible&nbs ...Show All
Visual Studio Team System Connect to team foundation server
I'm having problems connecting to "Team Foundation Server". I get the default message of: Unable to connect to this Team Foundation Server: x.x.x.x Possible reasons for failure include: - The Team Foundation Server name, port number od protocol is incorrect. etc, etc... My question is how do I start to resolve the problem What virtual directory is the client trying to connect to Can I enable any tracing / logging when attempting to connect to get more information Any information would be a great help. Regards Darren A ...Show All
Visual Studio Class Details window (MSDN bug ID: FDBK24857)
I'm having a problem with the Class Details window. Click on the following link to see the corresponding bug details: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackid=914d3c3f-efdd-41ed-8c6c-da5ed91f48db When I click on a class in the Class Designer, the Class Details window shows up, docked at the bottom of the screen. But when I click inside the Class Details window, it dissapears! Every time. I tried to reset all my settings, tried all different possible settings and even re-installed VS 2005. No luck! Please help C#-settings, Class Diagram added to a ...Show All
Smart Device Development Deleting rows from datagrid
I am trying to delete rows from the datagrid using the code below. When clicking on the button, the selected row disappears but re-clicking the button does nothing. Also, closing and re-opening the form, all the rows are present. Am very new to .net and compact framework, please help !!!! Private Sub btnDelete_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles btnDelete.Click ssceconn.Open() 'Select everything from a database named History on the SqlCeConnection ssceconn Dim sqlDA As New SqlCeDataAdapter("SELECT * FROM History", ssceconn) 'Fill the DataTable History within the DataSe ...Show All
Smart Device Development sql mobile constraints-dataset designer?
I am trying to use sql mobile for the first time and I want to setup table relationships. I saw a post that said to use VS2005 dataset designer. Is this really setting the relationships on the database or just creating relationships in a dataset You can use any tools you wish to create the relationships between tables - I personally perfer the old fashion way of writing SQL DDL queries. You can use the data designer within VS to create the relationships or create the relationships programmatically by creating a dataset and adding tables to it. You've to submit the changes so as what you define within datase ...Show All
