Answer Questions
James Johnston Dropdownitems of a disabled ToolstripMenuItem can still be selected
see https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=235911 also this post is probably related: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=312139&SiteID=1 I currently use the EnabledChanged event to disable all the DropDownItems (recursive), but this doesn't prevent the items from 'popping up'. Your comment got me thinking & nosing around with Reflector again. I don't think it was intended for the timer to check if the item is disbled. It looks like the class was desinged to only enable the timer in the OnMouseEnter when it is not enabled, and to disable the timer (cancel) in the OnMouseLeave event. For some reason (which I cannot find), the timer does get enabled for disable ...Show All
Participant drag node image and text
The problem is that i want my treeview to show a transparent view of my nodes when i drag them. Actually im looking for the most abstract approach. for those who want to see the solution: http://www.codeproject.com/cs/miscctrl/TreeViewDragDrop.asp ...Show All
Muzzzy What control to use for dynamic display of tabular data??
Hi, Ive come from the HTML world where I can do a <table><tr><td>...</td></tr></table> for each table of data. This table can be anywhere from 1 to an unlimited amount of rows. I want to place a control on a form that will grow or shrink based on the amount of data rows. Should I use a tablelayoutpanel like I can do in HTML or a datagrid Basically, i want the "table" to grow based on the number of rows without ever displaying a scroll bar on the control. Any ideas Thanks Hi Basically DataGrid is a server control which rendar your data in HTML.... table. you can also user Repeater , ListView web control for displying tabular data. If you are new then y ...Show All
Wildert Passwords!
Hey guys, Another problem! I have a form designed with 2 text boxs, one for a username and one for a password. I want to be able to set a password and username for a user to log into the application. How do i go about coding this Thanks again! Tom Hi Tom, just set the property "PasswordChar" of that textbox e.g. to an asterisk. Regards, Holger. ...Show All
yanyee SelectedText but not Property!
Hello, How can I get the selected text on Windows anywhere. please dont tell me textbox.selectedtext or textboxbase stuff. I want to get the selectedtext on windows anywhere even desktop, even when I renaming a file even on browser page even inside any programs textbox etc. etc. API list does have a selectedtext or similar thing or is there any hook tech to accomplish this goal. thanks. Yep, thanks for the answer. Also there is GetActiveWindow() api in user32. Ok I will tell exactly what I m going to do. I m gonna register an keyboard shortcut windows wide (already done that) then when I press the that keyboard shortcut (for example CTRL+ALT+A) it will copy the selected text to the clipboar ...Show All
neuhawk One more TIFF question
As long as i am being bothersome to everybody with TIFF questions, I was wondering if anyone has ever seen any code or docs which show the way as regards using extended tiff editing features. (If you haven't tried it, save a bitmap as a .tif file and open it with Windows Fax and Image Viewer (not sure that's the correct name of the default picture view with Windows XP, anyway, the shell program (originally by Kodak, i think) which a fresh out of the box system opens images with). Note the really cool set of extra 'features' that show up on the tool bar -- different kinds of "annotations" and diagramatic elements tthat can be placed on the image which do not become an intrinsic part of the image when it is saved (they must be data ...Show All
lwsimpson DataGridView - BindingSource - Cell/Row Style
I am using Visual Studio .NET 2005 I have a DataGridView control in which columns are created manually for greater flexibility. Essentially the DataGridView.DataSource property is set to the BindingSource object. From there, the BindingSource object is bound to an ArrayList - which allows me to update the ArrayList with objects; and simply calling BindingSource.ResetBindings() allows the DataGridView to be updated as well. However I have recently found about the DataGridViewRow.DataBoundItem() method which allows me to identify/retrieve the underlying object corresponding to the data-row. Therefore change to my previous design model is likely inevitable. But the problem I still can't seem to solve is modifying the style of the row ...Show All
BrianMcCashin Concurrency violation help me please
hi i use vb.net 2005 and an access database i connect to one table and change many things on the table and then save it again i use the disconnected mode i disappointed i try to solve the concurrency violation like the msdn said (get a fresh copy of the table and merge it to the worked one)but it sometimes save and sometimes not !!!!! although im one user for the database help me thanks in advance. any help guys this problem some times ocuurs and some times not !!!!!! thanks. Hi, Concurrency exceptions only happen if the data in the DB doesn't correspond to data in the DataSet's "Original" version. So, either the "Original" version of the data is changed in the DataSet, or the data in the DB is chan ...Show All
JohnRobbins Thanks, but I think I tried it before!
Dear all, Me and my friend are new to visual studio 2005 express edition. We are trying to build a simple desktop database application. Now both of us have different connectionString to the database in our computers (which is quite obvious).At first, we used hardcoded connection strings in our apps. So it was a huge task to replace all those lines as we shifted our computers to share our works. For compatibality, we were trying to use the app.config file for the connectionString, which looks like : (in my computer) < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < configSections > </ configSections > < connectionStrings > < add name = & ...Show All
Ceej100 problem with signing application and deployment manifest
Hi... Using mage.exe tool, when I want to save my application manifest and sign it with my certificate, I get: Unable to save {filepath}: An internal certificate chaining error has occured. What could that be On the other hand, if I choose " Don't sign ", then I get an error (I think this is a bug), when setting the Application reference in deployment manifest: The Application Manifest is not signed - {filepath} So it would be nice to achieve both: possibility of signing the deployment with my certificate, as well as having an option of not signing it. Now I don't have either ! Is there something wrong with my certificate It's been issued by my country - Slovenia. Glad to help! ...Show All
OmidQRose My MDIchild form isnt shown......
I have set main form IsMdiContainer to true, and add a windows form to this project And some relative codes are following: //form.cs -------------------------------------------------------------------------- private void newToolStripMenuItem1_Click(object sender, EventArgs e) { MDIchild childw = new MDIchild(); childwnum++; childw.Text = "Document"+childwnum.ToString(); childw.MdiParent = this; childw.Show(); } --------------------------------------------------------------------------------- But when start debugging, the MDIchild form is not shown. Please help me find out what's going on. Hi, Well you code is fine and it should show the mdi child when you call the ...Show All
Abhishekbhadouria String Function for repeating character string
in VB6 we can use String Function for repeating character string of the length specified, what can be used in windows mobile or visual studio Many thanks, that really helps, learning yourself from a book can be tricky sometimes Try this: Dim a As New String("x"c, 3) Ok, thanks Hans, that worked as an interim measure So how would the following embedded code be converted then buffer = Trim(UCase(Form3.Text1.Text)) + String(5 - Len(Trim(Form3.Text1.Text)), " ") As a work around I used.... Dim a As New String(" "c, 5 - Len(Trim(Form3.TextBox1.Text))) buffer = Trim(UCase(Form3.TextBox1.Text)) + a Dim b As New Str ...Show All
woodsy99 Drawing Lines or Circles on a picture box
I am having difficulty getting a line to be drawn on a picture box. The situation is that I have developed a program that calculates the orbits of the planets around the solar system. Each planet is represented by a picture box. After each iteration of the solar system, I move the PictureBoxes to the new screen location and then I want to draw a filled in circle in the picture box (so that it looks like a planet). The problem is that no graphics are being displayed, but at the same time I get no compile or run time errors. The picture boxes are being moved but no graphics are being displayed. The code that I am using to move the picture boxes and draw the graphics is shown below. ...Show All
Bruce Bukovics Closing forms in Control validation events...
I am developing an application with custom security mechanism. Whenever a TextBox on one of my application's form loses focus, I need to validate it. Depending on its contents, I sometimes have to close the form. The validation occurs in the security mechanism implemented, which closes the form using the My.Application.OpenForms collection, if need be. It took me a complete day to figure out that a form cannot be closed if one of its controls Validating or Validated events are being processed (the Form.Close() instruction simply doesn't do anything as if it were not there). Can someone tell me why it is so, & how can I overcome it We have a similar issue where we may be deep in the callstack and we ...Show All
paul1857 Performance Counter Instances (InstanceName) how to deploy?
I have a neat application (service) that sports a couple of PerformanceCounters. Because these counters will be used by several other services I added an InstanceName to each of them. All works fine. Now to the setup and deployment. After much tweaking, checking and browsing I've found out how to deploy the performance counters with the ProjectInstaller. Unfortunately the installer for performance counters let me setup the counters but not the instance names. How do I tell my deployment project to create multiple instances (to be addressed with the InstanceName property) during setup VS2003 here. Btw. the instance names appear as lower case. For instance, "Gateway Server" is available in the Performance Monitor mmc as "gateway ...Show All
