Marzullo's Q&A profile
Visual C# How to get names of Columns without datatype?
Hi, i want to get the columnname of an dataset, but without the datatype attached. The dataset is filled by the readxml-method and the columnname looks like this: defaultUser_text My xml-file contains this: <defaultUser>admin</defaultUser> Is there a way to rip off the _text or do i have to cut it the dirty way, manually Thank you. That's exact my problem, i do it THIS way :) and i don't know how to kill that _text without parsing and splitting. public Dictionary < string , string > getSettings() { DataSet dsSettings = new DataSet ( "dsSettings" ); try { dsSettings.ReadXml(fullPath); } catch ( Exception ) { return null ...Show All
Windows Forms prevent clicks from being queued when form elements have enabled=false and Me.Cursor=WaitCursor
All-- Please help. I want to prevent clicks from being queued when form elements have enabled=false and Me.Cursor=WaitCursor. Right now, I have the code below and everything works EXCEPT the fact that the clicks on the button when the GroupBox.Enabled=False are queued and are actually executed as soon as the GroupBox.Enabled=True is set. So, what can be done to prevent the queuing of those clicks Please advise. Private Sub Button1_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs _ ) Handles Button1.Click Try Me .Cursor = Forms.Cursors.WaitCursor Me .MainGroupBox.Enabled = False 'do some work Catch ex As Exception Me .HandleError(ex) ...Show All
Software Development for Windows Vista Is July CTP working on XP Pro?
Mybe not, my installation ran into no error(XP Pro+WinFX+WWF +VS 2005 Extension) But when I tried to follow the first sequential workflow example of the "virtual labs", there were only 7 activities in the toolbox namely: "Compensate", "FaultHandler", "Suspend", "SynchronizationScope", "Terminate", "Throw" and "TransactionScope". The "Code" activity is nowhere to be found. In the screenshot inside the virtuallab manual, there were tens of activities we can choose from. What could I've missed Thanks for the information. Thanks Serge, you reminded me a problem one of my friend ran into and how he fixed it. I followed the steps on this page: http://aspa ...Show All
Visual Studio Team System Can i force developers to add comments at check-in ?
I need developers to add comments at check-in time - probably i will need a custom check-in policy (how do i do that ). I know i can force developers to asociate work items at check-in but in our case it would be much easier if i could force them to add only comments ! 10x Buck, Thanks for your reply. I suspect we are not talking about the same context. I wish to be able to add the created and registered custom check-in policy to the AddCheck-in Policy dialogue box so that it can be selectable for each of the Team Projects. The most relevant MSDN URL appears to be http://msdn2.microsoft.com/en-us/library/ms181281.aspx It includes the following which references the Visual Studio SDK which I have downloaded ...Show All
Visual C# otp: How to add and name an excel worksheet to an excel application object
Hi I have an excel application object. Now i wanted to add a new worksheet to this object and name it dynamically. I mean the name of the worksheet will change dynamically. Once this worksheet is added, the data from grid will be exported to the excel. Iam currently using the below code to initiate an excel object and data to the excel. Excel. ApplicationClass excel = new Excel. ApplicationClass (); excel.Caption = "[Name]" ; excel.Workbooks.Add( true ); and then adding to the excel object ..using the below logic excel.Cells[1, ColumnIndex] = col.ColumnName; but what i wanted is, everytime the new data is displayed in my datagrid, generate a new excelworksheet and add it to the excel object and n ...Show All
Windows Forms how to use configuration file with multiple info
Hi, I've been working on configuration file with appsettings. I want to convert to config file from the code shown below; newParser.AllowedExtension = new string[] { ".aspx", ".xml", ".html", ".htm" }; // note that AllowedExtension is string array I this case, there are 4 elements in string array. I don't know how to store 4 elements into configuration file. I know the file should include add and value keywords. Ideally, I want to convert the code shown below instead; newParser.AllowedExtention = ConfigurationManager.AppSettings["extentions"]; // add using System.Configuration namespace I appreciate your help. Hello. I'm still having ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I cant debug my DirectX program
hi, I am using DirectX SDK April 2006 with Visual C++ 2005 Express Edition. I can use directX without problems but when I try to debug the breakpoints doesnt work. I have looked for "debug directX" in the forums and I try all the things I read: I buil the project in Debug mode. In projects settings I have: Generate Debug info: Yes(/DEBUG) ........ ..... but the symbols dont load :( and the BreakPoints dont work. do you know why pls help. Bye I have tried everywhere but I get this: " The breakpoint will not currently be hit. No symbols have been loaded for this document" should I reinstall Visual c++, SDK and directx sdk thx ...Show All
Visual Studio Team System Cannot publish manual test results
We have a team member resposible for running manual tests against a build. She can run the manual test just fine, but when she tries to publish the results agains the build the publish fails with the error message: "Attempted to perform an unauthorized operation." She is a member of the Team System project group that allows the "Publish Test Results" permission. She is not a member of any group that denies this permission. Any ideas why she cannot publish her manual test results As is so often the case, this problem turned out to be a permissions issue. The account being used to publish the test results must have full control of the drop location for the build that the results a ...Show All
Visual Basic Use of Selected ListItems
I am not sure if this can be done, and at least done in a way where a noob can understand it. In my current VB class I am working on a project where we are supposed to call on some text in a text file and then use it to produce some results based on user selections. I am wondering if I can use a ListBox to show the choices, then by having the user click on "Submit" button call the right information. As I am learning this for the first time, and have never programmed before, I hope that you all take it easy on me. As a test to see if this works I tried the following: Public Class Form1 Private Sub Button1_Click (ByVal Sender as System.Object, ByVal e System.Event Args) Handles Button1.Click If ListBox1.Selecte ...Show All
SQL Server Duplicate Values on Top Level of Dimension
Hey there community, I have a problem, and i am lost as to how i can fix it.. I would be over joyed if someone can give me a hand in identiffy it.. I will try to explain below:: I have a cube for sales, that displays sales by a Market heiracy of Market->Division->Family->Item. When i drill down, sales numbers look fine.. I added in a budget file, which only specifys budgets down the the Division Level.. I have added the Budget Figure as a Measure Group. In the dimension usage tab, i specify the Division as the Granuality for the Budget Measure Group on the Market Dimension.. Measure Groups Dimensions Standard Measure Bu ...Show All
Audio and Video Development Tools and Resources for Authors
I'm a professional web developer interested in iHD/DVD authoring. At this point it is pretty difficult to get going due to lack of tools and resources and documentation. I am proficient in xml and javascript, but this is a slightly different bird for sure. What I am trying to figure out is - are the lack of resources a symptom of being early to the process, or is it a symptom of the content authoring industry (proprietary thinking) Please use HDDVD Validator on this sample ; you are likely to find plenty of errors and lots of warning.Also it seems HDDVD Validator does not recognises .xts extension file.So for that try pasting Jump.xts code in the file where Jump.xts is being included that is in T1.xmu. For rest proceed as shown in v ...Show All
Visual Studio Team System Install Workgroup edition now - Upgrade to full version later ?
Just to confirm - I can install TFS workgroup edition for 5 developers initially (all with VSTS Developer editions), and when we need more than 5, I can upgrade to the full TFS edition at a later date There's no gotchas when it comes time to upgrade It's relatively painless. Instructions here: http://msdn2.microsoft.com/en-us/library/ms404848.aspx The biggest trouble people have is upgrading to volume licensing. Upgrading requires you to type a key, but volume-licensed copies don't have a key printed on them; you had to manually extract it from the disc. I believe that snafu has been ironed out by our sales team by now. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D Platform Game Help
I'm making a remake of super mario world. The project is going good, i have the basic physics down and just need to draw the level and set the bounding boxes. The question is, does anybody know a program that could create an image from tiles. I have tried creating the map in XNA GSE but all the drawing slows it down. What i need specifically, is a map/image of a level. I could use the original from the game, but i want to have custom levels that i created, also there levels have slopes and stuff and my project isnt fitted for slopes. Besides that i figured once i get it up and running i would try and make a tutorial. I don't know who this "italian plumber" is that you speak of ;) ... but have you looked at the sour ...Show All
Visual Studio Problem building Managed C++ project with Msbuild that has multiple assembly references
I have a VS2005 solution that includes a Managed C++ project as well as several C# projects. The C++ project references several of the C# projects. All projects in the solution reference log4net.dll (as an AssemblyReference). My C++ project builds without any warnings using the VS2005 IDE. However, when I build the solution using MSBuild, I get zillions of warning messages such as: log4net.dll : warning C4945: 'LogicalThreadContextProperties' : cannot import symbol from '<some path>\log4net.dll': as 'log4net::Util::LogicalThreadContextProperties' has already been imported from another assembly 'log4net' For my managed C++ project, I set all references to be: Copy Local: true Copy Local Depencies: false Use Depend ...Show All
Visual Basic Copy Previous versions of a file
in server 2003 you can restore previous versions of a file how can i copy the previous version of a file to another location through code thanks in advance Kris Bennett I wasnt saying it wasnt possible but its unlikely its a .net framework functionality as the .net framework runs on all OS from windows 98 onwards. So, it is likely not contained in the base class library or the language itself. Show us that code you have and if your talking any version on VB prior to .net then your off topic for these forums. ...Show All
