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
  • 0 Votes
    6 Posts
    0 Views
    R
    That makes sense. I don't know where I heard or read about UserControl being special, but this reinforces it. I'd say that they did decouple cross thread calls in userControl. We have an app that every window has a thread that actually creates and opens the form. It also makes tabs by taking the contents of an existing form and sticking it into a new TabControl. Don't ask why, it's a long story :) While we were initially working on it, we would get cross thread exceptions. We changed some of the windows to be single threaded apartment, and the problem went away. We were having problems with the clipboard that also went away when we did STA. This should also may help me. We are doing much to deal with this problem is other areas. UserControl as the top level container looks like it could let us get rid of some code. Thanks Richard Opacity, the new Transparency.
  • 0 Votes
    4 Posts
    0 Views
    N
    thanks dave. I shall get back to you. regards, NetQuestions
  • ComboBox trouble.

    question database
    2
    0 Votes
    2 Posts
    0 Views
    L
    Please do not post the same question in multiple forums. txtspeak is the realm of 9 year old children, not developers. Christian Graus
  • Connecting to Active Directory

    windows-admin help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Reset Control Attributes

    question graphics performance
    2
    0 Votes
    2 Posts
    0 Views
    Richard Andrew x64R
    I can't answer your first question but I can explain the ^ operator: That operator is a reference to a managed object. So, if you have void btnExit_MouseLeave(System::Object^ sender, System::EventArgs^ e) That means that the function takes a reference to a System:Object and a reference to a System::EventArgs object. If you have Object* obj, it means that obj points to the object on the heap. In the same way, the ^ means that the variable points to the object on the managed heap. The ^ is used with the gcnew operator to assign a new object instance to a variable, as in: Object^ var = gcnew Object()
  • Advanced ComboBox in WinForms

    csharp winforms question
    4
    0 Votes
    4 Posts
    0 Views
    A
    You might want to subclass the combobox and add your own functionality as shown here[^]. Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
  • Custom Controls Desgin-Time question

    csharp question visual-studio design
    2
    0 Votes
    2 Posts
    0 Views
    S
    If you really need to, delete them by right click and delete. I would prefer adding a tab and have all my controls in that.
  • Problem with maximized child window in MDI parent

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Format Input for SharePoint DateTime field

    sharepoint com json announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • create IM

    csharp sql-server database sysadmin help
    4
    0 Votes
    4 Posts
    0 Views
    M
    Luc Pattyn wrote: and when you later need to show some code Code, code you think he wants to create some code, don't be silly, he wants YOU to create the codz. Never underestimate the power of human stupidity RAH
  • toolStripSplitButton Doesn;t comes in Pressed state.

    4
    0 Votes
    4 Posts
    0 Views
    L
    My bad, I mixed up the ToolStripSplitButton with a ToolStripButton. The property is indeed readonly, I didn't find any "nice" solution to display the button in a checked state. It has been reported on Microsoft Connect[^] in 2005, but it doesn't mention what version of the Framework that this applies to. There's no Checked property in the ToolStripSplitButton, nor in the ToolStripDropDownButton. That leaves only the option of extending the controls and building the desired functionality yourself, using owner-drawing. I found a thread of someone who did that here[^]. I are Troll :suss:
  • Connecting with webserver?

    question sysadmin security help
    5
    0 Votes
    5 Posts
    0 Views
    A
    thank u Aman
  • 0 Votes
    9 Posts
    0 Views
    R
    try this idea //load your picture //create a timer then set ur time //create a mp3 player //play your sounds thats it
  • Export datagridview to MS Excell

    help question
    3
    0 Votes
    3 Posts
    0 Views
    D
    CheckOut This article. You use the *.dll and all you have to do is: MyGenericDataGridView gexp = new MyGenericDataGricView("XLS",datagridview1, MyExcelExport.Theme.BlueSky,null,null);
  • This might not be possible...

    csharp com
    6
    0 Votes
    6 Posts
    0 Views
    G
    Have you seen this Window Tabifier[^]? Giorgi Dalakishvili #region signature My Articles Browsing xkcd in a windows 7 way[^] #endregion
  • Problem binding arraylist to combobox

    wpf wcf help question
    2
    0 Votes
    2 Posts
    0 Views
    L
    AFAIK your data provider must have properties, not fields, of the specified name(s) for data binding to work. :) Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
  • display continuous data

    help tutorial
    4
    0 Votes
    4 Posts
    1 Views
    L
    zaftblitz wrote: i want to display data that will keep changing the value by itself. Wouldn't that be nice? Unfortunately, computers need a little help from we humans. If you need the data in a box to keep changing then you wll need to write some code to do it. The actual mechanism may depend on where the data is coming from, how long it is etc. Without much more detail it is difficult to know what would be the best method to achieve this. I would suggest you try searching among some of the articles here for a few ideas. MVP 2010 - are they mad?
  • Error when trying to write to .exe.config file

    help question
    4
    0 Votes
    4 Posts
    0 Views
    D
    You can do that or you can have your code create this file on first launch if it doesn't exist. It's up to you. imak wrote: Can this folder be referred in installed package? Sure. How you do that depends on which .MSI packaging software you're using. Myself, I use InnoSetup and Wise Package Studio. It don't use the Setup and Deployment stuff in Visual Studio. 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 change tip location on Quick Launch bar

    tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    C
    d@nish wrote: How is this related to Windows forms? Sorry about that. I saw windows and quit reading I guess.