blarggstar's Q&A profile
Visual C# FindControl() Windows Forms Equivalent??
Hi all, I would like to be able to search adn retrieve all the Controls (or types of Controls) that are based on my Windows Form. Is there a function that does this I know in ASP.NET you have the FindControl() method, and was wondering if there was something similar Thanks Tryst Hi, Based on my understanding, you want to know if there is a method similar with FindControl in Winform just as ASP.NET does. If I misunderstood, please feel free let me know. I think we can use the Find method of Controls collection. e.g. { Control[] ctls = this.Controls.Find("Button2", true); if (ctls.Length > 0) { ...Show All
Visual Basic Usercontrol Refresh during Design?
Could someone help understand how the listbox's item collection refreshes the listbox control when you exit the collection editor. I have a usercontrol with a collection property, but I don't know how to refresh the usercontrol when I exit the collection editor during design time. Thanks in adavance. Robert Here's what I know so far. Once you've added something to a collection and closed the editor. The designer populates the code for additional elements in the form.designer.vb file and refreshes the entire form. With a user control with a collection, I still have yet to see the collection updati ...Show All
SQL Server Report server times out with error "report server is not responding"
Hi. We have RS2005/SP1 installed on Win2003/SP1. When we first installed it and it was running under Windows Authentication, we did not notice any slowness or timeouts while working with Report Manager or Management Studio. However, after we switched to Forms Authentication and set up the security extension sample provided, both the Report Manager and Management Studio (connected to Reporting Services) started to time out very often (even when simply browsing through the folders). It seems that Report Manager is timing out more often than Management Studio, however. After Report Manager times out, if I click the "Home" link or hit the ...Show All
Visual C++ no compile tool is associated with the file extension
I have been using C++ for a long time, but have just recently been forced onto a new compiler. I've installed MSDN and Visual C++. Now I can't get anything to compile. So I'm back to the basics with a simple Hello World program. I still get: Cannot compile the file 'c:\c++\HelloWorld\HelloWorld.cpp'; no compile tool is associated with the file extension. Where should I be looking for the compiler settings and what should they look like Have you created a new C++ project and added your code to that It looks to me like you're not creating a new C++ project, or your install is broken. Which ver ...Show All
Visual Studio Team System Various Package Load Failures with Beta 2 Install
Yesterday I installed the new beta 2 of Team System. All appeared OK, i.e. no errors in install. However, I went to Tools/Options and clicked this. I was presented with a Package Load Failure stating that the Visual Studio Settings and Project Designers Package had failed to load, etc. I clicked No and got an Options dialog that had errors on the Text EditorBasic Editor and Windows Forms Designer Data UI Customization items. I decided to just close everything down since I was unsure of the install. When I exited the app, I was presented with another package load failure: This time it was for Microsoft.VisualStudio.QualityTools.TestCaseManage ...Show All
Windows Forms How to populate a listbox with a complicated query
How to populate a listbox with a complicated query I created a query in the KeywordSetTableAdapter SELECT KeywordSets.KeywordSet, KeywordSets.ID FROM KSGroups INNER JOIN (KeywordSets INNER JOIN KSGroupKSAssignments ON KeywordSets.ID = KSGroupKSAssignments.KeywordSetID) ON KSGroups.ID = KSGroupKSAssignments.KSGroupID WHERE (((KSGroups.ID)=5)) ORDER BY KeywordSets.KeywordSet Fill a datatable method: FillByKSG5 Return a datatable method: GetDataByKSG5 What is this about I assign KeywordSets - say Peres, Shimon, to KSGroups. In this case I'd include Peres, Shimon to Persons, which KSGroups.ID=5. I've also assigned him to other groups ...Show All
Visual C++ Visual Studio 2005 CMenu Windows 2003 Style
Does anybody know if Visual Stuido 2005 support CMenu in Windows 2003 Style We used to write own custom CMenu in Visual Studio 2003, and we are wondering whether Microsoft supports it naturally in VS 2005 If VS 2005 MFC does not support that, does anybody know if C# supports it or not Thanks. Lawrence hie, i dont get what you mean by " But if you use the Windows Forms menu strip and tool strip controls, you get Office 2003 style menus and toolbars." is it a seperate activeX control or something is there any way to do this in C (no C++) and WIN32 API (u guessed it , i dont knw MFC and C++ =S) Thanx =) ...Show All
Visual Studio Express Editions VC# 2005 will not update an SQL Server Express Table
Steps: 1. Added new data source 2. Connected to Data Source. 3. Dragged table to Form. Here is the code.I will press the '+' button to add a row. I will type in the data directly into the Data Grid View . Press the save button. here is the code: private void authorISBNBindingNavigatorSaveItem_Click( object sender, EventArgs e) { this .Validate(); this .authorISBNBindingSource.EndEdit(); this .authorISBNTableAdapter.Update( this .booksDataSet.AuthorISBN); } When I go back to check the table, the new data is not there. please help! You're not doing any ...Show All
Visual C++ Avoiding compiler complains about redefine variables???
Hi all: When I am writing C++ program, I need some global variables and structs to be visible from many files. But the compiler always complains that variable is already defined somewhere else. The problem seems to be caused by not #include file properly, but is there a good solution to avoid this irritating problem happen please Here is an example error message: Topology error LNK2005: "int COLUMN" ( COLUMN@@3HA ) already defined in ParticleSystem.obj Topology error LNK2005: "float UNIT" ( UNIT@@3MA ) already defined in ParticleSystem.obj Topology fatal error LNK1169: one or more multiply defined symbols ...Show All
Software Development for Windows Vista Public level of the XPS and OPC specifications
The world longs for a PDF alternative.I hope this format finds a home in lower level and lower cost applications.This is where PDF suffers and makes users suffer.Sure there are low price PDF converters but to actually author a decent document you have to invest hundreds of dollars in Adobe products.If this format started leaking out small apps for the internet to play around with before Vista it would generate buzz and lock in success and relieve consumers of anxiety.It short i hope Microsoft keeps this format excessible to the average techhead and not the Office jet set that will shell out 400 bucks for a software suite.Just my opinion.I'm ...Show All
Visual Studio Team System B3R upgrade to RC issues
ok, since it looks like I'm in for a long day I figure I'll just make a general post for all the issues I run into. The one I'm hitting now is in the upgrade document it says to install SQL Server update KB914595 - that its available on the web and on the install media. There is no KB914595 on the install media - only KB912838 and KB913393. Nor is it available at the link given in the document - http://go.microsoft.com/fwlink/ linkid=62015 I'm assuming the install will work without this fix since noone else seems to be complaining about not having it... P 22, Step 10, substeps 5 & 7 - apply is grayed out. Apparently you d ...Show All
Windows Forms Design Time events with custom controls
Hi. I am new to VC# programming and I am trying to create a custom control , which can only be added to another custom container. I want the child control to be able to detect its parent container during design time(i.e when i drag and drop the control onto my form , it should detect its parent. It should be unusable outside of my container). Can anyone tell me which event I should use inorder to achieve this functionality. I tried writing the relevant code in the InitializeComponent() method , but unfortunately , the control is unable to detect its parent at that stage(Control.Parent attribute returns null). Any help would be appreciated. ...Show All
SQL Server Stored Procedure Version Control
I am running SQL 2005 and Sourcesafe. I want to automatically add the sourcesafe version number to the individual scripts stored in sourcesafe that generate stored procs, sql agent jobs etc. Anyone got a code snippit to show how this is done What you also need to do is include the VSS keywords in a /* */ comment block. You also need to enable the keyword expansion for the .sql extension. ...Show All
SQL Server Time Dim Linking in Data - best practice?
Hi All, After some advise here on how best to tackle an issue when trying to link one my my fact tables into the time dimension at the dsv level. I'm looking to split the date down into D, M, Y, but the date comes from a string field and is stored yyyymmdd so 20060206 for today. I've tried linking in a view, however it wont allow me to do this due to the data type, as the Month_Number field in the time dim, is an int and mine is a string. If I then try and cast the view's field as an int, it then moans about a MaxLength field when you try and refresh the field changes in the DSV. I'm now looking at creating an Insert trigger t ...Show All
Windows Forms Generic Base Control Collection
Hello, I was wondering if anyone had discovered how to do a generic cast to a (Controls) collection. The challgenge is that there are Control.ControlCollection, Forms.ControlCollection, etc. and none of them seem to cast or covert back to a base type that just lists it's containing controls. Any tips, suggestions would be appreciated. Are you sure about this Form.ControlCollection derives from Control.ControlCollection so an explicit cast from Form.ControlCollection to Control.ControlCollection shouldn't actually be needed. For example: Form form = new Form(); Form.ControlCollection formControls = (Form.ControlCollection)for ...Show All
