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

Software Development Network >> Windows Forms

Windows Forms

New Question

ListView Items Clear Problem
Related File type in Setup project
setting a forms and datagridview at run time based on screen resoultion
installState exception
Dialog result without closing / event handling
accessing the registry and the %windir%system32
enabling/disabling controls
Checked Items in DataGridViewCheckBoxColumn
Is there any way to multi selection when I browse to files
Control.Dispose() also disposes the contained controls?

Top Answerers

XNA Rockstar
Ayhan Yerli (TR-NL)
SP534
voidstar
yousaid
Cridal
DaftP
INeedADip
niallhannon
MyLady
Programmershelp
Only Title

Answer Questions

  • Fulankazu Changing the Webpage the Application is Run From

    I publish my Windows Application and it creates a "publish.htm" page where my users can Run the program from. Is there a way I can customize that page Idealy, I'd like to be able to use MasterPage and my Menu system in that page so the user experience is consistent. Can this be done Why of course... the page is really only meant as a sample. Feel free to go ahead and edit it any way you like. To keep it from getting overwritten the next time the app is published, you can go to the Publish tab of Project Properties, open the Updates dialog, and turn off the automatic web page generation. ...Show All

  • Adam Lofts how to add a drop down control to DataGrid

    Hi This is Keshav.I have to add a drop down control in the Data grid.Can any one give me a sample code.Give me the complete code Regards Keshav We have some samples on the VB-Tips website . Moving from .NET Framework Data Access and Storage to Windows Forms Data Controls and Databinding . ...Show All

  • kcchesnut Timer problem with windows service

    Dear All, I have set a timer for my windows service. The problem is that when I start my windows service it writes to a file and I find that it just wrote once that is when the service starts. I set the interval to 10000 that is 10s. So what is the possible problem here any help please Yes, that timer won't work, using Threading.Timer would be better. See my second post in this thread for a sample on how to use it. Hope it helps, Andrej Dear Andrej, Your example of timerDelegate = new TimerCallback (OnTick); stateTimer = new Timer (timerDelegate, null , 0, 5000); // 5000 = 5 secs . I am a bit lost when now comes to threadig and things like that Can you ...Show All

  • WV John very new and confussed sorry if wrong place to post??

    i have been trying to open a very inmportant document with msword n we are trialing vista i keep getting install the disc i dont have a disk and need to read this document please help sorry again if wrong forum wendy.x Hi there, Well, this is actually a programming forum but you sound so worried No worries - check out this link: http://www.microsoft.com/downloads/details.aspx FamilyId=95E24C87-8732-48D5-8689-AB826E7B8FDF&displaylang=en it is a free Word document viewer that should work on Vista as well. I don't seem to be able to find the free viewer for Office 2007, I don't know if it's out yet... Let me know if you need the Office 2007 viewer and I will continue looking. If you need viewers for ...Show All

  • clint 2 How to retrieve data from formView?

    I've a formview which including 2 textbox ,I want to retrieve data from these textbox in run time. is it possible I tried these ...         FormView1.FindControl(f_nameTextBox);       FormView1.Row.FindControl(f_nameTextBox);        FormView1.Page.FindControl(f_nameTextBox); all of above all shows error message like this "  'f_nameTextBox' Not exist in this conatain... why " thanks I failed to mention that you need to make sure of the control.currentmode and that the findcontrol statements must reference the name of the control for the mode. if (fvEditSoftware.CurrentMode == FormViewMode .Edi ...Show All

  • Matthijs Koopman Using forms to add data to a data table

    This is probably pretty elementary, but what is the best way to add rows to a table from a form. Basically, once a button is clicked on the form, I want the a row created with the data that the user entered and the form to be closed. There are about five values that will be saved to fields. I'm using VB VS2005 and sql server 2005 express. Thanks! ...Show All

  • Deldy COM registration fails in VS2005

    In my setup project for a COM wrapper project the COM registration is not occurring. During the build and installation process no errors are listed or occur, everything appears to go successfully. When I run Excel, which creates an instance of the wrapper object, I get the "can't create object" error at the point where the code creates a new instance of the object - Set x = New MyComWrapperObject. I've tried all of the tricks/tips that I could find - removing the project output and manually adding the files, making sure that both the .tlb and .dll have the proper COM registration settings (vsdrfCOM and vsdraCOM respectively), making sure that "Register for COM Interop" is checked, the COM wrapper class has a valid As ...Show All

  • Turfnsurf4me Graphic artifacts while horizontally scrolling DataGridView

    Hi, I have a C# forms app I'm using to learn this .NET stuff. It has a main form and a custom form I made. The custom form has one data grid view control in it and I bind it to a DataSet object that I stuff full of test data. The data set is not bound to a table or database or anything its just some local memory I am manually stuffing with info. Everything works fine except I have noticed when there are many columns of data and I scroll the data grid view horizontally, the column headers are picking up some artifacts and sometimes the text is not rendering perfectly due to the scrolling. For example, I saw the letter 'n' in one of my headers was drawn about 1-1/2 times wider than normal such that the left 3/4 of the letter was drawn ...Show All

  • IrishWolf Bouncing Progress Bar

    I want to create a progress bar that does that bouncing stuff. You know how the green thing, instead of showing how much it done, it just indicates that the program is busy by bouncing from one end to the other and back.. Do I have to manually make one of those Do something like progressbar.value =1 then sleep the thread for a little while then progressbarvalue=1.1 etc. etc. Or is there a progres bar attribute or control that can do that I believe you want to set the ProgressBar.Style property to ProgressBarStyle.Marquee. This is off topic for the Visual C# General forum, moving to the Windows Forms General forum. ...Show All

  • AGPX Locating a program's installation folder

    I have an application that will be used by other applications installed on the client machine if the other applications see that my application is installed. Currently, during installation, my application places a value in the registry that points to the location of my application's executable. When another application wishes to run my application, it can look for this value to locate the executable. This method is all fine and good for now, but we're trying to minimize how much our applications write to the registry. I'm hoping to find a method by which another application could discover the installation folder of my application, perhaps through entries created by Windows Installer during the install process. Unfortunately, I have been un ...Show All

  • fruce Make DataGridViewComboBoxCell drop down as soon as cell is clicked.

    I have to click on the cell, I guess giving it focus first, then click again to get the DataGridViewComboBoxCell to drop down. Any way of just making it drop down when the cell is initially clicked on Thanks. You'll have to set the EditMode of the DGV to EditOnEnter... The disadvantage is that it becomes impossible to do 'fullrowselects' by clicking on the rowheaders (and thus the user can't delete rows...) Here's a workaround that worked for me: private void dataGridView1_MouseClick ( object sender, MouseEventArgs e ) { DataGridView. HitTestInfo hitInfo = this . dataGridView1 . HitTest ( e. X , e. Y ) ; if ( hitInfo. Type == DataGridViewHitTestType. RowHeader ) { this . dataGridView1 . Ed ...Show All

  • WhitebearJPN disabled text color

    I have a Panel that contains Labels, TextBoxes, and DateTimePickers. I would like to "Enabled = false" this Panel without changing the text color of its components to a lighter color. What is the best way to do this Thanks. No, this is not posible. This i've seen this alot in the newsgroups and the best suggestions I've seen is to replace your controls with Labels when you want to disable them. It sounds a little bit dirty, but you don't want to implement you own painting by overriding the OnPaint method and paint the control yourself when it is disabled and you can't change the disabled collor. Creating your own control with GDI+ will be to much work for this problem, so that is the reason I think the best suggestion ...Show All

  • Surrendra How do I package a Hotfix in my installer?

    I have a hotfix from Microsoft that is required for my application to work properly. How do I add it to the installer package I am using VS 2005. The hotfix in question is: http://support.microsoft.com/default.aspx/kb/913177/ Jonathan Allen Can you give me more details on how to do this See if this helps: http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ You should be able to add it to your setup and run it as a custom action (assuming it's not an MSI-based patch). Another approach would be to create a bootstrapper package and install it using the bootstrapper. You can use Bootstrapper Manifes ...Show All

  • herenvardo External component has thrown an exception

    Hi, I'm getting this error really sporadically in my Winforms app. Seems to happen when trying to display a form with a call to .ShowDialog(). It doesn't seem to happen on any particular form, just pops up now & again. I can close the application and restart it, then I can view the form without the error The application is running in a Citrix terminal server environment, the assemblies themselves are running from a network share. Can anyone think of what would be causing this error - why is it only happening every now & then (the worst sort of errors!). One post mentions a faulty network connection to blame, but our network is pretty solid & we run a number of other applications from shares. I've seen a few other p ...Show All

  • smargroth Dock property bug?

    Hello All. I'm wondering if anyone else has run into this rather bizarre behavior. I've got this form that every time I open it in the editor it shows up with the asterisk in the caption, like the dirty bit is set and there are unsaved changes. When I close it, I'm prompted to save the changes. Every time. It doesn't matter if I open it in graphic design mode or code editor. Well, my WTF bug went crazy and I traced it to a Text Label control. If I set the Dock property on this control, the dirty bit presents every single time the form is opened. If I reset the property to "None", all is well. I can duplicate this behavior on any new form with a "Docked" Text Label control. The Anchor property has no effect o ...Show All

777879808182838485868788899091929394

©2008 Software Development Network

powered by phorum