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
  • Radio Button

    c++ winforms tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    L
    Expose a property on the first form that gives you the index of the selected radiobutton. From the second form, read the property on the given particular instance. I are Troll :suss:
  • Where can I get a Form Generator?

    csharp c++ question
    4
    0 Votes
    4 Posts
    0 Views
    L
    Ger Hayden wrote: Thats exactly what I want to do - but there are 100 elements. How do I make it autogenerate? Using CodeSmith or Text-to-Text transformations. As an alternative, have you seen the property-grid? It takes an object, and builds a nice grid which lists all it properties. I are Troll :suss:
  • Placing Code - InitializeComponent Function()

    question c++ winforms help
    3
    0 Votes
    3 Posts
    0 Views
    L
    pix_programmer wrote: Where should I place my own code? Anywhere you like except places marked "do not modify". pix_programmer wrote: Excuse me,if it is a silly Question. So you are excused. This once. :) Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
  • Problem in resizing controls.

    help tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    M
    Great if you got it to work. I've used the same for a control that needed very specialized resizing requirements.
  • Setting Mouse Over Image to Button

    c++ winforms tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    L
    Try posting in the Managed C++ forum, and you may get a better chance of an answer. I must get a clever new signature for 2011.
  • 0 Votes
    2 Posts
    0 Views
    R
    Please refer this[^]. Hope it helps. :)
  • encryption/decryption on the fly

    security help
    2
    0 Votes
    2 Posts
    0 Views
    D
    First, what does this have to do with Windows Forms? Second, you do realize that NTFS already has the encryption engine built into it, right? As for your problem, it sounds as though you're putting your encryption driver above NTFS instead of below it (close to the disk). You should be encrypting/decrypting disk sectors as written/read instead of trying to encrypt file streams of various types. A guide to posting questions on CodeProject[^] Dave Kreskowiak
  • Change the connectionstring

    help question
    4
    0 Votes
    4 Posts
    0 Views
    G
    Your config class will have a 'save' event that you can use. See Chapter 9 of Pro Visual C++/CLI and the .NET 3.5 Platform by Stephen Harper from Apress. I find it an excellent resource Ger
  • Question about webbrowser.navigate

    csharp question visual-studio
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    R
    I'm not quite sure what you want but I think you may have it the wrong way around. Try creating a NodeSelected event in the TestTreeControl control and then fire the event where you need to call the OnDataBind method. Then in the main form subscribe to that event (see pseudo code below) MyTestTree.NodeSelected += new NodeSelectedDelegateHandler(MyTestTree_NodeSelected); void MyTestTree_NodeSelected(object source, LogGridEventArgs e) { MyLogGridViewUserControl.OnDataBind(source, e); } Also your LogGridEventArgs class should inherit from EventArgs Cheers Architecture is extensible, code is minimal.
  • Play mp3 file in winforms

    csharp winforms design hardware tutorial
    3
    0 Votes
    3 Posts
    0 Views
    P
    Hi, Thanks for the link. it helped.
  • Toolstripbutton not validating textbox.

    help question
    5
    0 Votes
    5 Posts
    0 Views
    P
    So, if you want to validate your TextBox, you have to call the method from within your ToolStripItem_Click event handler. i.e. : private myToolStripItem_Click(object sender, ClickEventArgs e) { myTextBox_LostFocus(myTextBox, EventArgs.Empty); ... }
  • A quick Excel Question

    question
    5
    0 Votes
    5 Posts
    0 Views
    A
    Thanks In this case I was just making sure this was uniform across the major spreadsheet apps for loading delimited text into another program. Merry Christmas! Everybody SHUT UP until I finish my coffee...
  • Problem in button (.Net 2008, Framework 3.5).

    help csharp question
    7
    0 Votes
    7 Posts
    0 Views
    R
    yup! that's one of the perfect way to set DisplayFocus at design time :)
  • is it possible to show an excel in the window form?

    csharp visual-studio question
    3
    0 Votes
    3 Posts
    0 Views
    R
    yes its possible to show an excel in the window form but this all happen only when you will know about Excel Libraries basically Microsoft.Office.Interop.Excel and Microsoft.Office.Tools.Excel and how to use it with C# a lots of website is active for help this purpose. you can navigate This Link[^]
  • How to show excel inside a window form?

    csharp visual-studio com help tutorial
    4
    0 Votes
    4 Posts
    0 Views
    R
    prerakpatel wrote: How to Integrate Excel in a Windows Form Application using the WebBrowser[^] :confused: He already define this link and searching how to recover from problem which occur in WebBrowser.
  • Connect controls to thread

    help question algorithms discussion
    6
    0 Votes
    6 Posts
    0 Views
    D
    BackgroundWorker.RunWorkerCompleted[^] should work for you. The RunWorkerCompleted event will fire on the same thread the BackgroundWorker was started from (typically the main GUI thread). You'll need to get your search results from the DoWork event into the RunWorkerCompleted event, and you should have access to your TextBox. Dybs The shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen
  • Programming of interactive desktop background

    help java com json
    2
    0 Votes
    2 Posts
    0 Views
    L
    hansdam wrote: or some API names that I should look at? SetWindowPos with HWND_BOTTOM :) I are Troll :suss:
  • 0 Votes
    4 Posts
    1 Views
    L
    Ger Hayden wrote: wasn't aware of them See point 7 in the Forum Guidelines[^]. Just say 'NO' to evaluated arguments for diadic functions! Ash
  • 0 Votes
    3 Posts
    1 Views
    G
    Thanks Robert. I found an example that is very similar to your second suggestion. See my next post for details on how I applied it. Ger Ger