golfkeelo's Q&A profile
Visual C# Threading and events . with forms and other threads.
I have been using multiple threads a bit of late. I am using VS C#2003 at present - but may upgrade to 2005, especially if it helps solve this problem! Here goes: Class1 has a slow process going on in a thread. It Has a public event which fires to say how many percent are complete. It also has one to fire with included data when it finishes. Class2 is another slow process with its own thread. It subscribes to Class1_Finished. It also has its own Finished_Event. Form1 Subscribes to all the above events. To my way of thinking, to reduce the overhead of coding we should be able to make it so that the FireXXXXEvent() checks to see ...Show All
Visual Studio 2008 (Pre-release) Project into an interface?
This would be interesting to see in C#3: from name in db.Names, city in Cities select new ICustomer { LastName = name.LastName, FirstName = name.FirstName, PostalCode = city.Zip, CountryCode = city.CountryCode } For an interface that consisted entirely of properties, have an anonymous type implement the trivial interface. At the moment, the only way I can think of is to specifically create a class to implement the interface. I've been interested in decoupling the projection stage from the selection stage, such that I could have a DAL consisting of, essentially, from/where clauses, and have in the presentation layer ...Show All
SQL Server How To: Automatically run a script post-install as part of setup
I need to provide a media kit to other DBAs in my organization so that when they run the setup.exe it will automatically apply some "hardening" scripts that my team has written. We want it to be a seemless part of the installation process so that the scripts can be applied consistently across the organization. Is there anyway to do this There is no way to provide a script to setup.exe as you suggest. We are looking at providing this functionality in the next release. Peter ...Show All
SQL Server Serious limitation in SQL server installation
I am trying to install the server in a non-system drive. I have to install the server in a diffferent folder like (E:) instead of the default C: due to existing partition that I have to continue to have (due to reasons that include security). Even though I selected this drive and every thing else (Program Files etc) the same, the install program still asks for over 2 GB on C drive. I checked each of the install options and found that most of this space is required by Books and client services which themselves need 1GB. So I can do without them for now. But then how do I get them installed I can accomo ...Show All
Visual C++ overriding virtual member function of a generic class using wizard
in VS6 C++, "add member function wizard" was simple. but in VS2005 C++, it is no longer possible to copy and paste a function declaration into the "add member function wizard". (must add each parameters one by one....) for MFC classes, the property window provides a simple way to override a virtual member function, but that interface seems not working for generic classes. is there an easy way to override a virtual member function of a generic class (like somehow enable the MFC class' virtual function override interface for generic class) or I have to edit .h and .cpp manually thanks. kkang ...Show All
Smart Device Development Format a date column in a datagrid
Hi I have a column in my datagrid which is a date field. It is represented in the grid as 'mm/dd/yy' - but in Australia we prefer 'dd/mm/yy' The grids datasource is set to a dataset at runtime. I format the grid at runtime using tableStyles. e.g. Dim activityDate As New DataGridTextBoxColumn activityDate.MappingName = "activityDate" activityDate.HeaderText = "Date" activityDate.Width = 40 ts.GridColumnStyles.Add(activityDate) Dim description As New DataGridTextBoxColumn description.MappingName = "descript ...Show All
Smart Device Development Displaying the form on the whole screen
Hi ppl, I want to display the form on the whole screen of the PDA. I mean i want the form to use the space on the top where the clock is and where the Start button is. I don't want the clock and the start button. Is it possbile Awaiting Nabeel Sure. Daniel Moth, one of our MVPs, described what you can do in item #11 here: http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html ...Show All
Visual Basic reading text from a document and displaying it
I have TextBox1 (to enter what you want to search), TextBox2 (to display the results), and Button1 (when you press it, it does the whole process thing). I was given this to go by: ================================================================== Theres a couple of steps in a possible approach here. One is to be able to read the contents of a file. If your using VB Express / 2005 this is possible using dim sContents as string = My.Computer.Filesystem.ReadAllText("c:\foo.txt") the next is to be able to find a match on your textbox entry you can use the instr meth ...Show All
Windows Forms Pass dataset to Child Form
Ok, I want to read in an XML document into a dataset when my parent form opens, which I can do. I want to then pass the dataset to a child form. How do I do this Add a dataset parameter to the childform constructor public frmChild(ref DataSet myDataSet) { InitializeComponent(); //Do stuff } And then instantiate the form like: frmChild ChildForm&n ...Show All
SQL Server SQL Server Alert Notification Systems
Greetings, SOURCE: http://www.desktopalert.net This is our web-based alert notification service that we are interested in integrating seamlessly with Microsoft’s Notification Server as well as 3rd Party content management systems and ad servers. The differentiating feature in the offering is in its secure Jabber-based instant messaging client/server products and the upwards of 2048 bit security model and optional biometric / identity federated features available for small, medium and large scale system integration capability. This insures industry, financial, medical and government the world’s most secure end-to-en ...Show All
Visual Studio Express Editions pull value from specific index from listbox collection
I am using a listbox to sort data. In a previous form, I used ".add" to insert the items into listbox and then used "textbox.text = listbox.items.item(index)" to remove the value and insert into a textbox. Now, on another form, I have a listbox that I added a collection from an access database. On the form, when I run the program I can see the values from the database are actually inserted into the listbox and are selectable. The problem is I can't programmatically remove any of the values to insert them into a textbox. Can someone point me at the correct syntax The closest I can find in help files and such is... ...Show All
Visual Studio Express Editions Resource Editing
When I try to edit resource file (*.rc) I get this error: "Resource Editing in not supported on the Visual C++ Express SKU". Does that mean there is no way to get the resource editor to work in VC++ Express I've tried both links to resource editor in this post. The first one crashes as soon as I add a dialog and try to change the width property. The second wont even open, windows says it's an invalid zip file. Anyone else have any suggestions ...Show All
Visual J# Creating zip files without Path info
I using java.util. zip to zip files. Can anyone tell me if it's possible to zip these files without including the Path info of the source file in the zip I want to unzip the files into a directory of my choice. Any help would be greatly appreciated! :) Regards, Psydney Hi Ristesh, Thanks again for the example, I think I see what's happening now. If the ZipEntry gets the full path of the file, the zip includes the path; if the ZipEntry gets the the filename only, the path is not included. This has really helped me out. Regards, Brian ...Show All
SQL Server Limit Report Server Access
All, I'm looking at the possibility of allowing only certian tasks and reports to be available to users. I want the user to only have so much control...but would like them to be able to run reports, subscribe to reports and be able to use the query builder. We don't want the user to see all of the reports in the organization, just the reports for there specific department. So I don't know that I want them to see the report server itself...but maybe be able to run certian features. Can this be done Local administrators on the report server machine will get read properties and read/set ...Show All
Windows Forms Question about GridView
I add a GridView to a web page, then edit columns ... select a field and then convert field to TemplateField after that, I customize the field. In the EditItemTemplate I got a TextBox1 by default. I add some code to GridView1_RowCreated method TextBox textBox = (TextBox)e.Row.FindControl("TextBox1"); string clientID = textBox.ClientID; here clientID is "TextBox1" but it is not the id from the IE's view source ... I try to add some javascript to control the textbox's content, but can't get the correct clientid. Anyone can help Thanks Dear papadi, I know what you mean. the following code TextBox textBox = (Tex ...Show All
