SufferTheFools's Q&A profile
Visual Studio Express Editions Change all Textboxes on Form to Labels with button click
I have 24 textboxes on my form, what I would like to do is have the figures that have been entered into these boxes change to labels when I click the "Update Target" button. I know how to do this for one button per text box, but is there a way to change all of the text boxes with the click of the one button I was initially thinking like Spotty, (make the textboxes read-only), but did not like the fact that the cursor and caret would still look wrong for a 'label'. Anyway, here is some new code that toggles 4 textboxes from acting like textboxes to acting and looking like labels. Imports System.Runtime.InteropServices Public Class Form1 Private showCaret As Boolean ...Show All
SharePoint Products and Technologies what does the basic 30mb download provide
when you install the 30mb download from the microsoft website for sharepoint services 3.0, what do you get on the interface Which download for WSS is only 30MB The one I found is around 78MB: http://www.microsoft.com/downloads/details.aspx familyid=D51730B5-48FC-4CA2-B454-8DC2CAF93951&displaylang=en ...Show All
Windows Forms Trying to tell which item set off an event
(Sorry if this is easy or impossible. I'm still reasonably new to C# and can't find this anywhere.) I have created a program containing something similiar to: PictureBox[] Images = new PictureBox[Total]; Images[0] = new PictureBox(); Images[0].Click += new EventHandler(Clicked_Click); The thing is that all Images created this way use the same EventHandler, as I can't give them all seperate ones because the value of the variable Total might change at some point. I want all Images to use the same EventHandler, but I only want the Image clicked upon to be affected when the click happens. So my question is: Is there a way to tell WHICH image was clicked on, or is there a better way to do this The value of sender is &q ...Show All
Visual Studio Team System make Task Link tab as a required field
I have this requirement to make the Work Item Task Type to be always linked to bug,risk,etc. Trying to prevent orphan tasks there. Is it possible to make the links tab for task type as required field. I tried to put the the <required /> there but it doesn't errors out while importing. Two things: 1. Rules (REQUIRED, etc) must be defined on a field; you cannot define it on a form control. Therefore you cannot make tab required - but you can definitely make required a field on that tab. 2. We do not support rules on links or link counts, therefore what you want cannot be implemented directly. As a workaround I can suggest adding two fields to your task type for storing id and type of the ...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
SQL Server Use an ActiveX module from a view/stored procedure?
I was wondering if it is possible to use an ActiveX module from a stored procedure or view I have a table that contains some biochemistry, in particular, glucose and insulin as floating-point values. I have an ActiveX module (as a DLL) that takes these two values and returns some measures of insulin resistance. (I didn't write the module - it is available (without source code) from a university). The university provided a spreadsheet that does what I want to do. I am wondering if I can use the ActiveX module and the function in the spreadsheet in a view in my database instead. Here's how you'd convert glucose and insulin in the spreadsheet: =HOMA2_Insulin(A1,B1) And here's the source code of the function th ...Show All
Internet Explorer Development urgent - IE 6 display problem
Hi, I'm developing an ASP.NET website and am having a big problem for the last couple of days... Please take a look at the following website: http://www.spletna-galerija.net/Gallery.aspx It seems that whatever I try there's always an overflow in the center top div (named "DSSeparatorTop"). An overflow of about 5-10 pixels... It looks fine in FireFox and IE7 but there's an error in IE6 and I just can't get rid of it... Could anyone please give me some advice on an IE6 workaround I only have about 3 days left to fix it... Thanks... Thank you for your reply Lance, I was just about to try your method when I got another suggestion: Set 'font-size: 0px' in the problematic div and IT ...Show All
Windows Forms Maximum width of a panel
I find that the maximum value I can assign to the width property of a panel is 32,767 which implies that the parameter is a type short and not int . I have tried in both the designer and at runtime. Does anyone know how to make a larger panel Obviously, for the wrong reason! My application includes the drawing of a "timeline" which shows some simple graphical objects that represent events. I wanted the user to be able to scroll the timeline and zoom in and out the time scale. The technique that I used to do this was to put a large (in width) panel (double buffered) inside a fixed size panel which was scrollable. I would draw the entire timeline on the first panel and use the containing ...Show All
SQL Server Locking Issue
Hello everyone, We have an unexplainable problem concernaing locking in SQL Server 2000 sp3a. Here is what we can see using Enterprise Manager: Process ID Lock Type Mode Satus Owner Index Resource ---------- ---------- ----- ------ ------ ------ ---------- 112 KEY U GRANT Xact idx1 (fd0066dd24ee) 112 PAG IU GRANT Xact idx1 1:215772 112 ...Show All
Visual Basic SendKeys.Send("{ptrsc}")
this command is taking a lot of time to execute can u help me why Maybe becuase the printscreen {ptrsc} is still not implimented: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformssendkeysclasstopic.asp PRINT SCREEN {PRTSC} (reserved for future use) See this thread for more info: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=644666&SiteID=1 ...Show All
Commerce Server How can I configuring a Property Definition as Read Only in Catalog Manager.
I have created a new “Product Definition” in “Commerce Server Catalog and Inventory Schema Manager”, and would like this single “Product Definition” to be Read Only in “Catalog Manager”. In the Authorization Manager (azman.msc) I can assign Roles to the entire “CatalogandInventorySystem”, and add “Role Assignments” to my newly created “Product Definition”. However; I can’t figure out how to exclude everyone from modifying my new Product Definition while allowing permission to all other Product Definitions. I’m sure it’s a simple task, but would appreciate any assistance. To hide a Custom Property from the Catalog Manager UI: Remove the respective PropertyName from the GetDefinitionResponse in the CatalogWebService. Althoug ...Show All
Windows Forms Help me values
I have a listbox that is keeping the values of my variables... my worry is that i'm not obtaining put the value in this order e4 e5 is staying a under of other i want that only it falls for the line of low when the two value the will be already registered. my code is it: { this .lb.Items.AddRange( new object [] {lstr}); lstr=lstr + "" + lstr2 + (j+1).ToString(); MessageBox.Show(str + " is mated"); } else { lstr=lstr + lstr2 + (j+1).ToString(); this .lb.Items.AddRange( new object [] {lstr}); MessageBox.Show(str2 + " checked"); } } else { lstr = lstr + "" + lstr2 + (7-j+1).ToString(); this .lb.Items.AddRange( new object [] {lstr}) ...Show All
Smart Device Development can pda program to function like 3G phone with video conference throught WiFi or BT
can the PDAs communicate with others by the program like 3G phone, with video and voice Yes, it could. There are applications like that on the market already, e.g. from Skype. Of course, it takes a lot of time, effort, experience and expertise to write such an application. I would say team of 10 developers (5+years C++ experience) could do it in a year or so. ...Show All
SQL Server just downloaded advanced services
hey all, i just downloaded sqlexpress and advanced services but i don't see how to get to management studio thanks, rodchar Management Studio Express is available from the Start menu after you install SQL Express Advanced. If it is not there, you likely did not select it from the feature tree (it's not installed by default) so you'll need to go back into Maintenance mode and select it. That should get you going. Mike ...Show All
Visual Studio Team System How do I cancel a check out in Team System
Another user has checked out a file and I require to cancel that check out from the Team System server, I have heard this has to be done from the command line, but how Cheers Ollie Riches Thanks for the answer, after more searching I found the answer 'undo command' but this failed, not sure why as I was doing from a local admin account of the TF server with the correct workspace and user account. I managed in the end by finding the original machine where the files were checked out and cancel check out. Cheers anyway Ollie Riches ...Show All
