Ray Bell's Q&A profile
Windows Forms Closing multiple forms
I assume there is a relatively simple answer to this but I'm relatively new to programming and can't quite figure out how to do this. I've got a main form which is opened automatically when the application is opened. I then make a choice (by selecting a radio button) and click on a button to open another form, hiding the original form. I then make another choice and open another form again hiding the previous form. I now want various options :- to close a form and show the previous form to close all forms and close the applications to close two forms in the chain and go back to the main form I'm not looking for a solution but examples of how to pass references to the previous form would be appreciated. There are sev ...Show All
Windows Forms Listbox to show options from a related table
On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All
Visual Studio Team System How to Restore Report Parameters to Their Original Values
I was trying to modify the default "Plan Completion Date" in the "Unplanned Work" Report, that comes with TFS. I went to the report properties and selected the "Parameters" tab. There, I clicked the "Override Default" button for the "PlanCompletionDate" parameter, so it would allow me to specify a custom date. There I entered this date: "12/16/2006". After that, I clicked "View" to view my report and it worked fine. No problems here. Then, I decided to do the same for the "PlanCompletionDateCtrl" and "StartDateParam" parameters. So I did exactly the same. But then, when I clicked "View" to see the report, I got this error: An error ...Show All
SharePoint Products and Technologies Filter search results in MOSS 2007 depending on the signed in user.
Hello, I have a Sharepoint site where all the lists and libraries are going to be filtered depending on the user that's logged in (using a UserID identifier for each user and each list item having that same UserID as foreign key). I need to implement search capabilities on the site, however I also need the search results to be filtered by that same UserID. And this should be transparent for the user, he shouldn't be aware of the filter; in other words the user shouldn't be able to turn on or off the filter (as for example a Scope) and shouldn't be able to override it (as for example a param in a QueryString). I'm trying to link a CurrentUserFilter to the search results, in other words. Any ideas on how to acomplish this Thanks, ...Show All
SQL Server Inserting with XML files - VERY URGENT!!!
Hello everybody, I have a problem. I need to insert an unknown number of xml files in a database (all files are always in the same folder), in different tables, each file has the same name that the corresponding table. For example: Files Tables user.xml user purchase.xml purchase ...and so but the number of files is not always the same, I mean, it can be 6 one day and only 4 the next day. Can I insert the data in the xml files into the tables with a Foreach Loop Container or any other way If it's possible, how Thanks in advance for your help, Radamante71 Radamante, Yes, I do speak; but I don't think it would be a good idea to continue this thread in Spanish; that could irrita ...Show All
.NET Development VC++ Manifest abnd DLL exports table problem
hi , I wrote a simple VC++ dll in VC++ VS2005 and compiled to x64 version. When i do a dumpbin /exports on the release version of dll . Its giving an error : canno seek file at 0x68200. with dependency walker it gives error invalid manifest data. The debug version is showing correct exported functions . This happens with manifest generation and embedding enabled. When i disable manifest generation , The exports table is fine and there is no error in the release version. Ok , Now the dll is fine and runs on the 64 bit pc, But without VC++ manifest. Is this a bug in VC++ 2005 , when manifest is turned on , it corrupts the dll exports table. or am i missing some in the compilation. thanks vinothkumar ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# and how it works with XNA
Howdy guys and gals, I just downloaded the Visual Studio 2005 and the XNA thingy. Can't recall which one. I've never done anykind of C programming before. I'm wondering if say I found a tutorial or book on how to use C# for games. Would the examples work in the XNA program Thanks for any feedback. Walsher, please note Jim's tagline If a response to your question is helpful please mark it as such! If Fluxtah, Jims and or my post have helped then please use the "Mark as Answer" feature, you are also able to mark some or all as answers if they have helped. Just a friendly note for these forums Darkside ...Show All
SQL Server Drillthrough returning sets of duplicate rows
Drillthrough appears to be showing multiple rows for each single record that should be displayed. For example, in my fact table, there is a single record for each trip. The following MDX query returns a single cell with a trip count of three. SELECT NON EMPTY { [CP Date].[Date by Month].[Year].&[2002] } ON COLUMNS , NON EMPTY { [Commodity].[Commodity by Type and Group].[Commodity Type].&[Other] } ON ROWS FROM [Barge Trip] WHERE ( [Measures].[Trip Count] ) 2002 Other 3 If I drill through on that cell, exactly three records should be returned. However, in actuality, 12 rows are returned - three sets each having four identical rows. To drill through, I am simply adding the D ...Show All
SQL Server Replicating Stored Procedure permissions issue
I'm having a problem replicating stored procedure permssions accross two sql server 2005 servers, using transactional replication. When I replicate tables, it's easy enough to send the permissions over from the subscriber since there is an option under the articles properties for "Copy permissions." I can't seem to find any such option for SPs, UDFs or views. Am I missing something So the other idea I had was to create a script to grant the proper permissions, and run it using sp_addexecscript to my publication. Currently I have two one-way transactional publications. One publication for all my tables, and another for SPs, UDFs and views. I can run sp_addexecscript on the publication containing all my tables with out a problem, ...Show All
Visual Basic is it possible to tel wich control raised the event?
is it possible to tel wich control raised the event Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click ' Add event-handler code here. End Sub For example i want to disable button wich raised this event How can i do that Sure but if you wrote the code, and you can see that the event is only being used for a specific type then you shouldnt need to check (theres no problem actually doing something). Taking a step back in time, if you look at control arrays - do you check to see that the item is of type x when you execute something in there - no. This is similar in that if you hook up the event to a number of different buttons (all are the ...Show All
Windows Forms Automated Scheduler + C#
hellow I wants to develop an "Automated Scheduler" to send regular mails to our registered clients. This should be done with ASP.net 1.1 / C# or windows services. We are expecting a ddl/exe ( must be multi-threaded ) sort of program which would be deployed on webserver, and using windows scheduling services we can trigger that component to fire mails from database. any similar example or any site help....urgent I find some articles for you: .NET windows service Scheduler AlarmTimer Birthday Wish Scheduler in C# ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Consuming XBox Live Stat Information?
I'm interested in consuming XBox Live Stat information. Is there anything up right now that Microsoft offers for me to consume a Xbox Live type of 'web service' Is this something that will be available with XNA It seems to me XNA will help game developers build games that communicate with xbox live to store game info/stats/scores, etc, but what about consuming this information from websites Will there be a licensing program for something like this if I wanted to do it Thanks, Ken Hey Ken, I looked around for information on gathering the Xbox Live stats and couldn’t find much. I did find how to write a Microsoft Gadget that gets information from Xbox Live which you can see here: http://microsoft ...Show All
Visual Basic WebBrowser Refreshing Problem
I've got a WebBrowser control in my current program that, every minute and a half, loads a web page and parses some string information out of it. The problem is, after running for a while, it stops reloading the page; everytime it 'loads' the page, it loads the exact same contact the page had the last time it was loaded, although the actual page content has changed. Viewing the page in IE outside the program, I can see visually that the site really has changed; but the program continues only to see an older version of the page. Why is this happening, and how can it be fixed Note: the problem persists when I log on/off the computer, and when I restart the computer entirely. It doesn't happen for all pages being dealt with in thi ...Show All
Visual Studio 2008 (Pre-release) Accessing custom control's children elements
I created a new custom control. Inside the generic.xaml ControlTemplate tag I have two TextBlocks. Instead of binding their properties, I would like to access directly to the child elements, but at runtime I cannot find any children collection suitable (LogicalChildren is null). How can I access the contained elements in a custom control BTW I am trying to dynamically add a custom animation to those TextBlocks. Thanks, Raffaele ...Show All
Visual FoxPro Safe Select Doubt
Hello I was trying to use Safe Select, and it doesn' t work, look at the following: * This is the working cursor SELECT code FROM product WHERE 0 = 1 INTO CURSOR tmpProduct * This is the real query SELECT * FROM product WHERE code=7 INTO CURSOR curdummy * Clear the working cursor and append the results of curdummy SELECT tmpProduct ZAP IN tmpProduct APPEND FROM DBF("curdummy") USE IN curdummy Anyone should expect a tmpProduct table filled only with products with a code of 7, but in fact the result is a tmpProduct table filled with all the records in the PRODUCT table. I inserted a BROWSE after I populated the curdummy cursor to see what was happening and it showed the desired results, only prod ...Show All
