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

Software Development Network >> Windows Forms

Windows Forms

New Question

Basics: How do I 'Setup & Deploy' in VS 2005?
How to use Google Map in .Net Windows application?
C# program on Windows XP Pro
how to manipulate Listbox
How to create a Custom Form that appears in the Toolbox and is droppable on the Design Surface?
Month calender control
Make Thread-Safe Calls to Windows Forms Controls
DataGridView - Replace column with my DateTimePickerColumn
Datagridview change the background color of some rows.
Visual Studio 2005 > Setup Project > Upgrade Questions

Top Answerers

Daikoku
gregaug
sparkymark75
Rick1138
Leon Tayson
Malcolm McCaffery
Racing Snake
sameh23
Tom De Cort
barkest
C++ Wrappers for the Expat
Only Title

Answer Questions

  • mikkelbm How to load more than 1 million items in ListView without killing the memory?

    Hi all, I have a situation here. I need to read a large log file, in general will be more than 100MB, and with more than 1 million lines of text. I need to load them into a ListView to display. The problem I have is: usually after I load everything, my application will take about 300MB in memory. I'm wondering how to free my memory and make it lighter. Part of my code is below: using ( StreamReader sr = File .OpenText(ilf.fileName)) { string oneLine = String .Empty; string lineNo = String .Empty; string msg = String .Empty; while (!sr.EndOfStream) { oneLine = sr.ReadLine(); lineNo = oneLine.Substring(0, oneLine.IndexOf( ' ' )); msg = oneLine.Substring(oneLine.IndexOf( ' ' ) + 1); ...Show All

  • Douglas McClean Delay Processing ListView based on a Timer.

    Hi all, I am after a best method approach to solve this, but my problem is that I have a ListView that contains Items based on a location. I have a Location object that is basically a Tree Hierarchy. On the Form I have nudge buttons (left and right) so that the user can move from location to location on the same level. But, when the user selects a nudge button several times very fast, then the ListView Control will get populated for each press of the nudge button. So if the user pressed the nudge button 10 times within 2 seconds, the ListView Control would populate itself 10 times. What I want is a slight delay on each key press so that it determines another key press straight after a keypress then wont process the first keypress, but only ...Show All

  • omniscientist displaying custom control in datagridview column

    Hi , I have a datagridview in which I want to display a user control. I know how to create a custom editing control that will be activated when the user is editing a cell. But I want the control to be displayed even when the user is not editing. Please help me in achieving this. Thanks, Vara Whether both IDataGridViewEditingControl Interface and IDataGridViewEditingCell Interface are to be implemented and if yes plz explain how is it possible You might think of the alternative of overriding the OnCellPaint method or handling the CellPaint event of your Custom Datagridviewcell class if that is possible (painting the value in view mode, then in edit mode, your user control wil ...Show All

  • Liam404 Best way to handle shortcuts ?

    Hi, I was wondering if there is a good OO-way to handle keyboard shortcuts. Atm my shortcut handling code consists of a big list of if else if else statements containing switch statements (if/else to detect the modifiers, the switch statement to handle the keys) As you might have guessed, this is ugly and not very clean. I tried using a Dictionary of Keys to Action (a simple void delegate) mapping. but the problem here is that the keys pressed never match those in the dictionary because extra modifiers and flags are present. I was wondering if anyone has any suggestions how to make a decent key to action mapping. Thanks, Ben. There are still several key pieces of information missi ...Show All

  • Tryin2Bgood ComboBox Binding Problem

    Hi, I'm having problems binding a combobox to a .mdb database. I have a series of textboxes bound to the database so I know the database is connected. The combobox displays nothing or System.Data.DataRowView depending on what SelectedItem and SelectedValue to after reading back from the database. I have the properties ValueMember and DisplayMember pointing to the field I want to display. Can anyone help I am setting the properties in the form editor so I can pick the fields from a list and don't misspell anything. Also the code is in the designer.vb file. What is the difference between SelectedItem and SelectedValue also DisplayMember and ValueMember They all sound about the same. ...Show All

  • Johnny_Jones91 ending the application

    Hi, What is the proper way to end the application Me.Close will close the form you are on, but the previous one is still underneath. Do you have them perform me.Close form each form until you get back to the logon form Probably not. I could not see a me.Quit. Will me.close completely end it even on the main form I see from the login form, if I do a me.close, the code on past that still runs. Thanks Steve Hi, If you can't/won't let user close the application for herself, you can try calling Application .Exit(); Andrej closing the main form usually dos the trick. You can also use Application.Exit ...Show All

  • gregg100 MultiThread Visual Application

    I have TreeView on my Form. This application has 2 threads and I want to make changes with my treeView in 2nd thread, but here is such exception: name: InvalidOperationException and Message: "Action being performed on this control is being called from the wrong thread." what can I do with it thanks for your help Yes, thanks , this example work, but let me understand something: This thing "Invoking" again call my method, but in another thread, and this do again all operations witch was made in that thread,right It's a one file, one class project heavily based on some example code I found on codeguru for a client server TCP communications and the f ...Show All

  • Serge_OD locking of combo box

    Dear All, I just added a combo box in my form. I wrote the code in public frmForm1() //================== { //This call is required by the Windows Form Designer. InitializeComponent(); comoboBox1.Items.Clear(); comoboBox1.Items.Add( "USA" ); comoboBox1.Items.Add( "INDIA" ); comoboBox1.Items.Add( "UK" ); comoboBox1.SelectedIndex = 0; } than i called the load event. I would like to lock the combo box so that the user can see all the three values in combo box but will not be able to select the other items. In VB6 we generally locked the item and it solved the problem. But here I am facing a lots of problem for this in Visual Studio 2005. Can you tell me p ...Show All

  • Bodylojohn Maximum number of controls on a form

    Is there a maximum as to the number of controls that can be on a form I have a tab control on a form with seven tabs and at least 50 textboxes on each tab and the IDE seems to have trouble handling it. Thanks, cj well yes, after adding such a number of controls you will find problems....but the SP1 should hopefully fix this problem (currently in beta). Remember, the more you add, the more work needs to be done, performance will degrade. AFAIK there is no limitation but rather on the resources (memory for example). I've heard people say they can add 25000 controls but of course struggles to load. Some are less but I think its mainly on the resources available Thank you, this is helpful ...Show All

  • Rob Wheeler Reentrant error in a DataGrdiView

    I am using a DataGridView to organize information that a user provides. It is not bound to any data base. All I want to do is collect the data for further processing. The data, which is formatted using FormatCurrency, consists of amounts entered into rows corresponding to preloaded categories identified in a second column,. As the user moves around the DGV with the arrow buttons everything is fine. If a new amount is entered into a cell and the mouse is used to move away, this error surfaces: Operation not Valid because it results in an reentrant call to the SetCurrentAddressCore function Using the arrow keys to move doesn’t produce the error To work around the problem I have tried ideas fr ...Show All

  • Trevor2006 Getting the xp styles to work on windows 2000

    Hi Is it posibble to somehow getting the windows xp control styles (buttons tabcontrol etc.) implemented in windows 2000 I dont know if you can do something in the compilation so that the controls are compiled also. My program is made in vb2005 with a ot of the xp styles, and it looks really crappy in windows 2000. It's not easy to sell if every buyer has to upgrade to windows xp when they still have to pay full price even if they have a full windows 2000 license.. I myself is not a fan of windows 2000, but some of my potential buyers only have windows 2000, because it is expencive to change OS. Ok then But how would it be possible to make your own visual styles ...Show All

  • robinjam Diagram component

    Hello all, I am looking for diagram component (workflow chart) for .NET (C# 2.0). somnething like this: http://www.nwoods.com/GO/pages/objectbrowser_gif.htm I have found lot's of commercial solutions. However I need free can anybody suggest me something thank you. Peter Hi Check the link below which provides some free to try charts. http://www.zdnetasia.com/downloads/pc/swlist/0,39043053,39001415r-1+8,00.htm Hope this Helps. ...Show All

  • Tony Hughes Changing size property

    How do I enable the changing of size of a control like combobox Thanks. regards Alu MadaboutC#: No I did not do that. I did this, however: Private void button1_click(all that other ***) button1.Location.X = 50 button1.Location.Y = 50 -and this- Public int increment = 50 Private void button1_click(other ***) button1.Location.X += increment button1.Location.Y += increment -and this- Private void button1_click(other ***) Point xy = new point(50, 50) Button1.Location(xy) Nothing worked. The sample does actually work fine (at least at my computers both at home and work!) I don't think it is the private thing because by default methods take internal if not given an access modifier. I can not be sure why your method does ...Show All

  • su45937 Generation of primary key value within the insert stored procedure

    I am using VS 2005 (VB). I many of my previous applications I have insisted on using unbound forms, but I am now trying to make use of bound controls and the "bindingsource". However, my insertCommand causes an exception. I want to insert the new record without supplying the primary-key-value from the vb-application, but want to leave it to the insert-Storedprocedure to assign the value to this column. The insert-command works fine if I put a dummy value in the primarykey-textbox, but throws an exception if I leave it blank. Since the insert stored procedure does not require any value for this column, I find it strange that the bindingsource-object do so. Is it possible to use this kind of insert-procedure with the bindingsource- ...Show All

  • Greg Knierim Form responding slow

    Hi, I got 2 forms. From1 has buttons and some checkboxes to start a test after a button is pressed. If a button is pressed, it opens Form2. When i'm done with Form2 i close it. Then i get back to Form1 and then it starts responding slow. This only happens when i start a test that has filestreams and filereaders and some more stuff with files involved. How can i see whats making it slow I disposed everything in Form2 when it gets closed. Even when i close the Form1 its still running, I have to press the 'stop' button in order to continue. Any suggestions anyone Thanks in advance! Time to break-out the debugger. Set a breakpoint on the DoEvents() call. From there, figure out why the loop isn't exiting... ...Show All

282930313233343536373839404142434445

©2008 Software Development Network

powered by phorum