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
  • Passing textbox value into instance

    help
    3
    0 Votes
    3 Posts
    0 Views
    L
    Member 4470223 wrote: Form frm1 = new Form(); Form frm1 = ...; that does not compile without errors, does it? :) 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).
  • Could use some guidance on Word Checkboxes

    database wpf com design business
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 'Deck of cards' tab-like functionality

    data-structures design json question
    4
    0 Votes
    4 Posts
    0 Views
    S
    In my searching I also found a PanelManager created by Mick Doherty: http://dotnetrix.co.uk/custom.htm[^] It works similarly, but provides easer navigation between panels.
  • long sms sending using c#

    csharp help
    10
    0 Votes
    10 Posts
    0 Views
    D
    Maybe, but maybe not: In the cellular phone industry, mobile phones and their networks sometimes support concatenated short message service (or concatenated SMS) :laugh: A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007, 2008 But no longer in 2009...
  • Regex Question

    regex question tutorial
    2
    0 Votes
    2 Posts
    0 Views
    A
    Okay, never mind. NOW I know what the ExplicitCapture option does. :-)
  • 0 Votes
    13 Posts
    0 Views
    H
    I have just tested the MothCalendar control after seeing your question. I am able to change most of the properties (haven't checked them all) except for the Size, by normal means anyway, although BackColor and most others are OK. To overcome this size limitation I have found a work around: 1) Change the Font size. Not exactly precise but it works. MonthCalendars' size is controlled because it would look really silly with an enormous control and all the data squashed up in one corner. 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.”
  • IE show up on Top of parentForm

    4
    0 Votes
    4 Posts
    0 Views
    L
    sri_0099 wrote: Yes, i set the parent form as property. And before closing childform i called prentform.activate() method. The parent isn't always the owner. There's an overloaded version of the .Show and .ShowDialog method that takes an Owner-handle. The OS will reset the focus to this "owner" if the window gets closed. Something like this; new MyForm.Show(this); If all is well, then you should be able to remove the ParentForm.Activate(), just closing the child should be enough. I are Troll :suss:
  • How to get User Name of a machine present in LAN

    csharp visual-studio help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    L
    ajaykulkarnir wrote: on selecting Comp-2 i want who is logged on to Comp-2 machine present in LAN One option would be using the PowerShell[^]. You could also query WMI[^] for Win32_LoggedOnUser. You could also opt to write a small daemon that sends a small message containing the Environment.UserName to the server. I are Troll :suss:
  • How to get source code of a popup window via webbrowser?

    help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Get Access 2007 window dimensions

    windows-admin question
    3
    0 Votes
    3 Posts
    0 Views
    L
    Hi, on CodeProject users are not expected to remove anything. The forums can and will be searched by many others, who will be happy to find what they need. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Prolific encyclopedia fixture proof-reader browser patron addict? We all depend on the beast below.
  • Add item to a listbox that is bind to a DataSource

    wpf wcf question
    6
    0 Votes
    6 Posts
    0 Views
    D
    np
  • First .Net project suggestions

    csharp dotnet tutorial question learning
    10
    0 Votes
    10 Posts
    2 Views
    R
    My suggestion would be to try and solve a problem you currently face by building an application that addresses the issue. This will force you to "eat your own dog food" and consequently be critical of your own work (a great learning experience). Further, chances are that if you're having this problem, others may well be in the same boat and would welcome trying out the utility you're building. This is a hugely humbling and rewarding experience, because it puts your efforts out in the real world and allows you to build a better application. I've followed this very approach in all my "hobby" (non-work efforts). The results have been very rewarding. /ravi My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
  • For Opecity of datagrid in windows

    graphics help
    2
    0 Votes
    2 Posts
    0 Views
    D
    I hate to tell you this, but you cannot do what you want to do with the standard controls in the ToolBox. Transparent is not really transparent. When you set the BackColor of a control to Transparent, you're really telling the control to take on the background properties of the controls parent container. You will NOT be able to see any controls sitting behind the DGV. You cannot achieve what you want without custom drawing the DGV. That's not something that I want to think about, let alone do. I think your best shot at success with this would be to implement this in a WPF app, not Windows Forms. A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007, 2008 But no longer in 2009...
  • How to get details of users in active directories using LDAP

    com help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Help with RTFTextBox: looking for nobr-equivalent

    html game-dev help lounge
    3
    0 Votes
    3 Posts
    0 Views
    L
    I've never seen that either. While I'm a big fan of ListBox, I'd go for a WebBrowser here; just create your own HTML document and show it in a WebBrowser; you can disable all user interactions through a number of boolean properties. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.
  • 0 Votes
    5 Posts
    0 Views
    T
    The date conversion is tied to the control because it has to know what calendar you are using in order to display the correct calendar for any date before 1753... Having said that, I don't see why the control's designers didn't just allow us to set a simple isJulian bool that would tell the control that the calendar is (or is not) using the Julian/Gregorian system. Then it could handle any date and it would leave it to the user to know when and when not to use the Julian calendar. If you ask me the designers at Microsoft just chose to take the easy (lazy) way out.
  • Interface

    csharp question career
    12
    0 Votes
    12 Posts
    0 Views
    A
    Thank you
  • Which tools is better to design the UI (user interface)?

    design tools question
    3
    0 Votes
    3 Posts
    0 Views
    D
    Why not just use the Visual Studio designer? If you're using Windows Forms (I assume this is the case since you posted in this forum), then you'll show exactly what the interface will look like. If you need to send an image to someone or use it in a presentation, just take a screenshot of the interface. Dybs The shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen
  • Child window stuck behind parent window

    help
    5
    0 Votes
    5 Posts
    0 Views
    A
    it's a common occurrence for all the developers where I work I think it's TFS (and before that, VSS) integration that does it I've tried installing various hotfixes from ms, and they don't help
  • ListView multi-select checkbox bug [modified]

    help csharp question
    2
    0 Votes
    2 Posts
    0 Views
    H
    I recently answered this in another thread: http://www.codeproject.com/Messages/3417741/Re-how-to-disable-multi-select-of-checkbox-in-list.aspx HTH - hground