Software Development Network Logo
  • .NET Development
  • Windows Forms
  • IE Development
  • Windows Vista
  • Microsoft ISV
  • Visual FoxPro
  • VS Team System
  • Visual C++
  • Game Technologies
  • Visual C#
  • SharePoint Products
  • Visual Basic
  • Visual Studio
  • Smart Devicet
  • SQL Server

Software Development Network >> Windows Forms

Windows Forms

New Question

foreach(Form f in AllformsOfApplication)
Control Draw Boundaries
Creating new forms using threads, and keeping then open after thread exit
reg- datagrid keydown event..
Error: System.ArgumentException: Culture ID 2155 (0x086B) is not a supported culture.
about DataGridView
Toggle ToolStripSplitButton
VS.net 2005 Installer: Not enough storage is available to complete this operation
how can i bind List<Sale> to DataGridView and bind Sale.Item object to DataGridViewComboBoxColumn
ComboBox autoComplete with Large Table

Top Answerers

LeeC22
SGI101
icemart525
giddy
brottmayer
Horst Klein
Evan Haklar
Leo Fi
Cameron D
Ashish Chawla
Topix: Financial Markets
Only Title

Answer Questions

  • Jamie Thomson Disabling TextBox fires Leave event

    Hi, i have a winform designed using Visual Studio 2005 Express Edition. There is one textBox with Leave event for validation purpose. When i programmatically disable the textBox, the textBox's Leave event is fired which is very surprising and not desirable. However, when the textBox is enabled programmatically, the textBox's Leave event isn't fired. Why does textBox's Leave is fired on disabling this control and is there a way to make these two independant Thanks, -srinivas yelamanchili Hi Nidheesh, consider Form1.vb with two textBoxes and one Button1 On running the application, the TextBox1 will have focus, when you focus on TextBox2, the TextBox1 Leave event is fired which is okay. Now, please keep th ...Show All

  • James_Steven Populating Serial No Problem

    hi i have a datagrid, and i have binded it to a dataset, i have a column called srno and its autogenerated, it works fine, the problem is when i enter the data for the first time in a row the srno is 1, after entering the data i navigate to the second row, at that time srno is 2, before entering the data in the 2nd row do some alterations in the first row, after finishing alterations in the 1st row i return back to the 2nd row, and suprisingly the srno is now 3, need help thanks Prasenna opinion: yep the seed is autoincremented by 1 and suppose a variable called number is holding the count,. it will not go and redecrement when ...(your case) ... a newnumber() is called when n ...Show All

  • cherriesh datagriview cell

    hi, is there a way to get rid of dotted rect of the selected cell in a datagridview ( small number of rows, unbound )... i can't find a solution ( in vb6 was a propertypage option) ... sugestion thanks (Moderator: Post moved to this forum for better responses.) hi, bhanu with your direction i was able to find what i wanted and more ... in the help provided by vb 2005 express, a very usefull turn. thanks, you helped. adrian for those who are interested ( no fans for focus rectangle in selected cells ) the very simple solution ( i hope ) : Private Sub datagridview1_RowPrePaint( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewRowPrePaintEventArgs) Handl ...Show All

  • Pantomime Network Deployment

    Not sure how to go about this maybe someone can point me in the direction of some good documentation. I have a windows app developed with vb express. Uses sql express. Need to deploy application to 2 different pc's that will share the database. Not sure where to start. ...Show All

  • spydude777 "the path is not of a legal form" error

    Hi, I made a control, and when I try to add it to a form, it shows me the error "the path is not of a legal form". How can I solve it Thanks. I'd put the test before the code that uses filepaths... can you give us more detail than that any code Where does the error come from how did you make the control I struggled with this error for a long time and I found that, even though I didnt think this was the problem, one of my .dll references was bad. When I removed it, everything worked fine. You should check all of your references in your projects... Beware that the code in your control may run while the form designer is using it. For example, the Paint even ...Show All

  • TABLO Closing a Modal Form that is Showing a MessageBox Form.Hide() works Form.Close() does not.

    I have a form that is shown using ShowDialog. The form is the UI for a long running process. The user may choose to cancel the application by pressing the form close button (red X) and at that time a Yes/No messagebox will appear. If the long running process completes while the messagebox is shown I wanted to close the messagebox and then the form. If the messagebox is not shown then the form Close method works. If the messagebox is shown then only the form Hide method will close the form. I am concerned that I am doing something wrong so I am looking for suggestions as to the correct method to employ . C# .Net 2.0 sample code that will demonstrate the issue is below, to get it to work change the this.Close to this.Hide. Start by creating ...Show All

  • ivanFSR ClickOnce Fails with "Value does not fall within the expected range."

    I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All

  • Miha Stajdohar DGV in a UserControl

    I have a class (I'll call it, myDGV) that has DGV as its base, the DGV columns are defined in the myDGV constructor. When I drag a myDGV from the Toolbox onto a UserControl (I'll call it, myUserControl), the column definitions are recreated in the code module "myUserControl.designer.cs"; which means that instead the original 5 columns as defined in myDGV, I now have 10 columns (ie I see everything twice) . How can I stop this; at the moment what I do is to hack the myUserControl.designer module, but if for any reason I have to load the myUserControl into the designer I have to redo the hack. Thanks PhilD did u set autoGenerateColumns to false No, but I will when I'm next near that co ...Show All

  • Santor Night Vision

    I am working on a military application that needs to support a "night vision" mode - that is, make the application appear in a green scale color pallet to make it easier on the eyes in reduced lighting. Now, I know I can take an approach that will "skin" or "theme" my application to make it appear green (our GUI COTS product Infragistics NetAdvantage makes this possible), but it still isn't a 100% solution because we would need to re-do all of our images/icons that we use in the app to a green scale version, and then code the functionality to change the images at runtime when needed. Further, because we display maps and map information, there isn't an easy way to change all of the maps into a green scale. Havi ...Show All

  • Tryin2Bgood lookup data in a row of database

    I am very familiar with excel and am expirmenting in Visual Basic so I apogiligze if I use the wrong terminology. What I am trying to do is have a TextBox where the user enters a stock symbol, hits enter, and receives data in the from of a visual basic label. For example user would typs msft, enter, and below would display two numbers. "MSFT" is column one of the access database and the data I would like to look up is column 4 and 5 in the same row. databse is already atteched and called, currentstock.mdb -Thanks ...Show All

  • ved_30 Text box + mouse Event

    Hi I have three Text Boxes and a Button. When a user enters the data in the first two text boxes and press the button. The data is assigned to textbox3.text= textbox1.text + textox2.text. Now i wanted to write a mouse event for text box 3 such that if a user places the mouse in the textbox3\clicks in textbox3 after filling in textbox1 and 2. The data should appear instead of clicking on button. Iam not able to find the event for this mouse in my IDE.Can some body help Thanks! Hi I tried the same way as you mentioned. But it doesnt worked. There is no event with name Mouseclick, i can see the event "click" which i used to collect the information from T1 and T2 as you mentioned, but no event is getti ...Show All

  • bes7252 ConfigurationManager

    I'm trying to teach myself about ConfigurationManager. I am using VS2005 Standard Edition & C# & .NET v 2.0.50727 I have added to the op of my unit: using System.Configuration; using System.Configuration.Assemblies; My Problem " ConfigurationManager " is not listed in intellisense. When I try to use it as a Type, I get the error "The name 'ConfigurationManager' does not exist in the current context" I am totally puzzeled! Anyne know why I can't use Configuration Manager. Is it supported by the StandardEdition Thanks Andrej, I should have known.. Sometimes I don't think that I have my head screwed on tight (I am embarrased). Thanks a bunch. Thanks, that helps.... ...Show All

  • Reza Bemanian Using system context menu

    Hi there, I have a control for which it would be convenient to display the system's default context menu (for examle, the one used in Explorer). This is because my control is displaying files and I would like the user to be able to interact with them as they normally would. I can't seem to find any way of going about utilizing the system's context menu, though. Any thoughts or pointers on how I'd go about doing that Thanks! Thanks Peter, I'll give that a try. I'd have to check; but I think you can to do it by sending the window a WM_SYSCOMMAND message with wParam set to SC_MOUSEMENU and lParam set the screen coordinates where you want the menu to appear. ...Show All

  • Azaz Where can I access the commandTimeout property in a DataAdapter

    It boggles me that I found this same question in the forums twice and noone from MS has commented on this BUG. I went into the Generated code and found this procedure and added the commandtimeout line. But this is not the way to do it because it gets written over anytime the dataset designer is updated. Private Sub InitCommandCollection() Me ._commandCollection = New System.Data.SqlClient.SqlCommand(0) {} Me ._commandCollection(0) = New System.Data.SqlClient.SqlCommand Me ._commandCollection(0).Connection = Me .Connection Me ._commandCollection(0).CommandText = "dbo.spRaChecks" Me ._commandCollection(0).CommandTimeout = 0 Me ._commandCollection(0).CommandType = System.Data.CommandType.StoredProcedure Me ._comm ...Show All

  • Niksta Properties.Settings.Default.Save() folder

    How can I determine or change the location that Properties.Settings.Default.Save() will save my user.config file.  Everything I have seen says it will be stored in a folder based on my application name but in my instance it's including my companies name as well and I cant figure out where it is getting that info from.  I would like to store all my local data in the same place so I want to know where the data will be stored so I can save other stuff there as well.  For example; I have a winform project named XYZApp which generates XYZApp.exe. AssemblyInfo.cs contains the following: [assembly: AssemblyTitle("XYZApp")] [assembly: AssemblyCompany("Software Company International, Inc.")] [assembly: AssemblyProduct("XYZApp") ...Show All

333435363738394041424344454647484950

©2008 Software Development Network

powered by phorum