Skip to content

Windows Forms

Desktop and Windows Forms development

This category can be followed from the open social web via the handle windows-forms@forum.codeproject.com

2.1k Topics 7.1k Posts
  • Hiding a Button in a DataGridView

    help tutorial
    3
    0 Votes
    3 Posts
    0 Views
    F
    hi man, this could be a possible solution but never tested.. In the CellValueChanged event you have to check your specified cell against your condition and than try: dataGridView1.Rows[rowIndex].Cells[buttonCell].ReadOnly = true; or dataGridView1.Rows[rowIndex].Cells[buttonCell].Frozen = true; hope i could help :)
  • Setting the size of the Windows Media Player DRM license window

    question
    2
    0 Votes
    2 Posts
    0 Views
    L
    tjeffries wrote: We have a DRM encripted WMV file, and we need to control the size of the activation window that comes up while the license is being verified. I've seen files that do this, but we haven't been able to find a way. Apparently this is set by Windows Media Player. How do we tell WMP what size window we want? You could try using the WinAPI, using FindWindow and SendMessage to set the appropriate size. I are Troll :suss:
  • Window resizing

    question
    7
    0 Votes
    7 Posts
    0 Views
    L
    You should have said so right away. I have no experience with kiosk mode, but the topic pops up regularly around here; the best reply seems to be this one[^]. For more, use CodeProject's message search facility, or Google. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum Please use < PRE > tags for code snippets, it preserves indentation, and improves readability.
  • How to create xmpp client using C#?

    csharp sysadmin tutorial question lounge
    3
    0 Votes
    3 Posts
    0 Views
    L
    Personally I think using smiley's randomly is just damn annoying. Anyway this may be of use, http://tinyurl.com/28nfze4[^] Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science. WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You’re Really Really Lucky And All Goes Well.
  • Custom control help!

    graphics css help
    4
    0 Votes
    4 Posts
    0 Views
    L
    you're welcome. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum Please use < PRE > tags for code snippets, it preserves indentation, and improves readability.
  • pull method of crystal report..promptin for password.

    database
    2
    0 Votes
    2 Posts
    0 Views
    A
    I had an issue similar to this awhile ago, i cant remember the exact code but you need to loop (Recursivly) through all the subreports and set the credentials for them aswell. If at first you don't succeed ... post it on The Code Project and Pray.
  • Automatically add a new row when the user presses "Tab"

    css
    2
    0 Votes
    2 Posts
    0 Views
    S
    I think this should be simple. You need to capture the KeyPreview on dgv, check if there is a cell selected, then if it is the last cell,last row and then add a new column. Then set the selection to the first cell of the new row.
  • USB drive reader

    help
    2
    0 Votes
    2 Posts
    0 Views
    L
    you should pick one forum to ask your question. :| Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
  • Custom controll flickers!

    graphics css winforms design help
    16
    0 Votes
    16 Posts
    0 Views
    L
    You're welcome. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] I only read formatted code with indentation, so please use PRE tags for code snippets. I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
  • Transparent control in Visual Basic 2008!!!

    question
    4
    0 Votes
    4 Posts
    0 Views
    A
    Set the label's BackColor property to Transparent and you get a transparent label!
  • how to connect reportviewer to dataset

    help csharp database linq design
    2
    0 Votes
    2 Posts
    0 Views
    I
    You might want to try clearing the existing data sources first with Me.ReportViewer1.LocalReport.DataSources.Clear() and possibly in the form.designer.vb comment out the lines which would have been added if/when you selected the report using the ReportViewer Tasks box 'Dim ReportDataSource1 As Microsoft.Reporting.WinForms.ReportDataSource = New Microsoft.Reporting.WinForms.ReportDataSource and 'ReportDataSource1.Value = 'Me.ReportViewer1.LocalReport.DataSources.Add(ReportDataSource1) I have found that almost every problem I've had with report viewer not displaying the report was to do with data in some way or another. Have you confirmed that your adap.fill line is actually putting some records into the dataset? Hope this is of some help.
  • 0 Votes
    3 Posts
    0 Views
    M
    Follow these instructions get you data from the database formatted for loading into a treeview populate the treeview placing either the ID or the datarow into the tag property add a context menu to the treeview handle the crud events when Add then pop a dialog to get the information from the user save the dialog information back to the database reload the treeview from the database Never underestimate the power of human stupidity RAH
  • how set password in code

    question tutorial
    2
    0 Votes
    2 Posts
    0 Views
    L
    Keep it in the configuration file but encrypt it...by letting the framework do it for you.1 The .Net process can be used to encrypt sections in the app.config in place. Let me quote from the section Encrypting Configuration File Sections Using Protected Configuration. ".NET 2.0 provides a new feature, called protected configuration, that enables you to encrypt sensitive information in a configuration file. Although primarily designed for .NET, protected configuration can also be used to encrypt configuration file sections in Windows applications."2 Also look into SecureString when handling it in Memory. http://msdn2.microsoft.com/en-us/library/dtkwfdky.aspx[^] http://msdn2.microsoft.com/en-us/library/89211k9b.aspx[^] http://msdn2.microsoft.com/en-us/library/system.security.securestring.aspx[^] HTH Jinal Desai - LIVE Experience is mother of sage....
  • Help with label printing SDK from Seagull bartender

    help json tutorial
    3
    0 Votes
    3 Posts
    0 Views
    Z
    thanks for response much appreciated
  • Disabling cell selection in DataGrid

    2
    0 Votes
    2 Posts
    0 Views
    L
    You should try SelectionMode property of datagridview. HTH Jinal Desai - LIVE Experience is mother of sage....
  • 3 buttons in a datagridview cell

    question
    2
    0 Votes
    2 Posts
    0 Views
    S
    have a look at this Datagridview Button Columns
  • Datagrid view checkboxx

    help question
    4
    0 Votes
    4 Posts
    0 Views
    J
    I think this is a windows forms. The article corresponds only to ASP.Net.
  • 0 Votes
    4 Posts
    0 Views
    L
    When you delete rows using DataRow.Delete() method, they're immediately deleted from the DataTable. What DataTable.AcceptChanges() does is to propagate back the changes to the original data source of the DataTable (e.g., an SQL Server database)
  • Incapable of listening for Mouse Events on UserControl

    help question
    4
    0 Votes
    4 Posts
    0 Views
    L
    So my ListBox and ComboBox were a hint for you then. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] I only read formatted code with indentation, so please use PRE tags for code snippets. I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
  • DataGridView "not always"/sometimes adjusting row height for wordwrap

    4
    0 Votes
    4 Posts
    0 Views
    H
    My pleasure. :) Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” Why do programmers often confuse Halloween and Christmas? Because 31 Oct = 25 Dec.