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

Software Development Network >> Windows Forms

Windows Forms

New Question

Coloring TabControl.
How to make windows wait for the cancel command when catching the windows shutdown event
License code / register code / key code
is there a limit on Controls contained in VS 2005 .NET Form ? handle creation exception
printing rotated text
Show modal status dialog ?
ending the application
SelectionRules and grab handle problem in design mode
exception occuring while closing the form
Proper way to invalidate using a Region

Top Answerers

Marc Jones
mikeroberts23
jqq
Julia Semenova
Aneesh P
kawano1h
Oscarfh
adorer
Young K
Finch82
sitemap
Only Title

Answer Questions

  • kevin D. white Microsoft Forms Application 2003 .NET how to 'read only' view a text file?

    I am new to this development environment, though not new to C++ or the Windows IDE. My task is to develop an ASCII file viewer. I am having difficulty finding an object that allows me to display the contents of an ascii file in 'read only' format in a Window. These files can be very large. I need to be able to scroll through the lines, and have a Mouse Click event tell me which line a user wants to see more information about. Thanks for your assistance. Steve Excellent, I will investigate all of them to see which fits best. Thank you for the guidance. Steve thnx man u simply rock :) The richtextbox allows you to load a text file or an rtf file directly... ...Show All

  • Adrigo Gallus it is possible to uncheck all items in a checkedlistbox whit one statment??

    I've tried to do this but it doesn''t work " CheckedListBox1.ClearSelected()" This is off topic for the Visual Basic General forum, moving to the Windows Forms General forum. thanks, that will help. Hi, Select and Check are two different concepts in the checkedlistbox. ClearSelected will not uncheck the items. To uncheck all items that are checked, use this code foreach ( int i in checkedListBox1.CheckedIndices) { checkedListBox1.SetItemCheckState(i, CheckState.Unchecked); } gqlu wrote: Hi, Select and Check are two different concepts in the checkedlistbox. ClearSelected will not uncheck the items. ...Show All

  • SweptSquash Deployment/Installation

    Hi There, I have create a windows application. This is my first windows application using C#. I am almost done with it. Now I want to install this application on user's machine. Can anyone tell me how many ways I can deploy/install this application on user's machine. For now I just copied 'Release' folder (after building project in Release mode) into user's machine with .New framework. User is using application by clicking .exe file. Let me know how can I make package (or some file) to install the application. Thanks NBaig In addition to the other comments you can find some info on click once here . If you're using Express version of Microsoft Visual Studio 2005, look at ClickOnce ...Show All

  • JBondITW Problems with PrintPreviewDialog

    I have the following code: try { printPreviewDialog.ShowDialog(); } catch (InvalidPrinterException e) { MessageBox.Show(e.Message); } When it runs on computer where no printers installed, I get error message as expected. But when user selects the same function second time, the following exception is shown: System.InvalidOperationException: Form that is already displayed modally cannot be displayed as a modal dialog box. Close the form before calling showDialog. printPreviewDialog is the same instance as in first call. I can solve this problem by disabling menu item, using another dialog instance or handling InvalidOperationException. But I want to know right way to do this - how to cancel running dialog, which is still active, ...Show All

  • SQLScott Stop MDI Child menu from merging with MDI Parent menu

    Is there a way to stop the MDI child main menu items from merging with the menu items in the MDI parent Thank you for the reply Chris. I should have been more clear in my question. Using the Remove MergeType setting does indeed stop the child menu from merging with the parent menu. However it also hides the menu from the child form. Is there a way to keep the menu on the child form and the menu on the parent form and still display the child as an MDI child Unless you implement your own menu system you can not display a MDIchild with a menu. You can try setting the Parent window to IsMdiContainer = false, then use the Controls.Add(child form) to add the forms. T ...Show All

  • Kevin Ring How to Stop Hiding Menu Items?

    Hi, I have a scenario wherein i need to add couple of menu items to the menu when a existing menu item is clicked.I could able to add the menu items,but the problem is the menu closes or hides because of the click event.But i dont want this to happen and i want the menu items to be visbile. Is there anything i could do to stop menu items being closed or hidden on menu item click Thanks, Suresh. Thanks Andrej. Suresh. OK, here's my setup: I have three menu items: A B and C. A and B are visible, C is not. Menu A has three subitems. The code: private void aToolStripMenuItem_Click( object sender, EventArgs e) { bToolStripMenuItem.Visible = !bT ...Show All

  • hypo Loading Image (Visual C# 2005)

    Hey, I after these lines of code what should I put to make it load the image into a PictureBox openFileDialog1.DefaultExt = "*.gif" ; openFileDialog1.Filter = "Gif Images (*.gif)|*.gif|JPG Images (*.jpg)|*.jpg|TIF Images (*.tif), (*.tiff)|*.tif|PNG Images (*.png)|*.png|BMP Images (*.bmp)|*.bmp" ; openFileDialog1.InitialDirectory = "MyDocuments" ; openFileDialog1.CheckFileExists = true ; openFileDialog1.CheckPathExists = true ; Thanks :) oh, thats why, it is Visual basic code... hmmm...I will try to convert it in my head...lol..hmmm   oh, C# right there..ok     thanks guys I will try it   EDIT: error: 'System.Windows.Forms.PictureBox' does not contain a defini ...Show All

  • Rashar System.Security

    Whenever i import System.Security class then what type of security is provided by .net framework,where did it need specially.. if you are referring to what security classes exist in the .NET Framework, take a look at this and use/import the System.Security.Cryptography namespace: http://msdn2.microsoft.com/en-us/library/system.security.cryptography.aspx Mostly each class in terms of security generation includes examples as well as documentation ...Show All

  • Mystagogue Accsessing usercontrol elements

    Hi all I have a user control in which i have many sub web controls placed How can i access, say a dropdownlist control or a linkbutton click event in the usercontrol from an aspx page code behind Is this possible Can anyone please give some idea Thanks The general rule of thumb is to either expose the control(s) as public members of the user control to provide unrestricted access or to create a few properties and/or methods that give a user of the user control only the access you want them to have to the sub controls. Also for note, this forum is generally dedicated to Windows programming and for future ASP.NET/web related ones the ASP.NET forums would be the better place to inq ...Show All

  • ink innovations About virtual memory

    I think this place good for add this question if that is wrong place add comments with forum path. I have small problem with virtual memory. I want to know how to confiner virtual memory settings (recommend way) System properties > performance options > virtual memory Default settings – (384-768) but my pc display error not “virtual memory low “ I change virtual memory settings in system recommended (I have windows xp –pro) Is that proper way or any thing else please post recommend method and information about virtual memory. Thank you Hi, These forums are related to programming issues so please post any questions if you have regarding .Net Winforms. Thank you, Bhanu. ...Show All

  • Jon Watte Redirect to another page by clicking the textbox

    Hi, I've place textboxes in DataGrid. When i click the textbox a new page should be opened. Is there click event for TextBox Help me to solve this problem Thanks DataGridViewLink Column helps doing this. It seems you're using ASP.NET,for redirecting, try using HyperLink Column instead of TextBox. Moreover,for ASP.NET questions, I recommend you to post them on ASP.NET Forum . ...Show All

  • RavindraPatil How to close a messagebox

    hi all I am developing windows application, where i have login, other options pages, In the main page i checking for the user idle time(in a timer), if the user idle for certain period i should display logout page and close the modal dialogs which is being displayed by the other pages. For modal forms i am storing the current openned form in mainpage's object during time out i will close the opened forms using this object's Close method, But how can i close the messagebox which is displayed in other pages during logout. Is there any way that the mainpage can close or control the messagebox which has been displayed by other pages note: Here pages are various user controls which willl be loaded on the Mainform's panel ...Show All

  • YunXu Form Maximize

    Hi, I have two forms, Parent MDI form and a child form In VS 2005, if I use the following code right after InitializeComponent method in the constructor, I am getting two sets of control box buttons. Form2 _frm = new Form2(); _frm.MdiParent = this; _frm.WindowState = FormWindowState.Maximized; _frm.Show(); Thanks, Looks like a bug, and a spectacular one at that. The good thing is that there is a simple workaround: just move your code to the Form_Load of the parent and the problem is gone. HTH --mc ...Show All

  • Rob Ski Time issues

    I need to take a look at the content of some DataTable(s) I download from SQL Server in a purely debug situation. I decided to use DataView object for it. I improvised the following code: DataViewManager mng = new DataViewManager ( sqlDatSet ); DataView dtview = mng.CreateDataView ( sqlDatSet.Tables[jj] ); dtview.BeginInit ( ); The jj integer is the index of a particular DataTable in a DataSet and is found in a for loop. I expected a primitive form with a Table View displayng my records to show up. Is it not a reasonable expectation Nothing like this happened. The DataView remained an internal object. If I cannot get a good look at what is present in the tables I download I will be facing a cumbersome task of printing the stuff ou ...Show All

  • Sara_H Stupid question about changing controls

    what im having trouble is when i create a new void in a form class, im having trouble changing controls (ex. labels, listboxes) from that void. I can access them but when i go to change something about them it doesnt work. (no error) for some reason it works if i call that void in Form_Load any one know why ahhh tyvm oops nvm i said that wrong.... what im doing is having another form pop up that u enter information in then it calls the void in the origional form to add it to a listbox. ok in form1 public void addItem( string a) { listBox1.Items.Add(a); }   and in form2 private void button1_Click( object sender, EventArgs e) ...Show All

313233343536373839404142434445464748

©2008 Software Development Network

powered by phorum