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
  • How can I start an app with window hidden?

    csharp help question c++ css
    4
    0 Votes
    4 Posts
    7 Views
    P
    If you don't call Application.Run then the application will stop as soon as it leaves the Main() method. Try it - call new MainForm() without calling the Application.Run. This will end your application before you would normally want to do this. Deja View - the feeling that you've seen this post before.
  • gisplay messeges

    database
    3
    0 Votes
    3 Posts
    11 Views
    M
    :laugh: CleaKO "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
  • Question about C++ and C# ...

    question c++ csharp help
    2
    0 Votes
    2 Posts
    7 Views
    C
    Yanshof wrote: How can i mix between those two language ? You can turn on a flag that makes your C++ code able to use managed classes, and write a managed wrapper for the C++ classes you want to reuse in .NET. C++/CLI is what you're looking to do. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
  • Help me

    database help
    2
    0 Votes
    2 Posts
    6 Views
    P
    wrote: How ew get SQL qurry result to a text box Do you two guys sit next to each other, or is it the same homework? Deja View - the feeling that you've seen this post before.
  • 0 Votes
    2 Posts
    5 Views
    S
    Thats something i really want to use too. I though this controls were already available out of the box. Arent they imported somewhere? Nuno
  • Menu coding [modified]

    2
    0 Votes
    2 Posts
    4 Views
    G
    Maybe this could help you: http://www.c-sharpcorner.com/UploadFile/ggaganesh/WorkingwithMenusinCSharp11282005004421AM/WorkingwithMenusinCSharp.aspx
  • Resource error

    c++ help tutorial question learning
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Text box validation

    csharp help question
    3
    0 Votes
    3 Posts
    9 Views
    R
    Thanks a lot..:). It worked..
  • help on DOS commands needed

    debugging help tutorial announcement
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • How to enumerate a ToolStripMenuItems's events

    tutorial
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Help with a HelpButton

    csharp help question
    2
    0 Votes
    2 Posts
    8 Views
    M
    It's not an easy workaround: you'll need to paint it on the title bar yourself. For that you need to handle the WM_NCPAINT and WM_NCHITTEST messages. See DrawFrameControl for how to draw a Windows 2000-style help button (DFC_CAPTION and DFCS_CAPTIONHELP) and DrawThemeBackground/DrawThemeIcon (part WP_HELPBUTTON and the appropriate state) for Windows XP-style themed buttons. For Windows Vista it probably won't work very well since Aero draws the title bars normally, if in 3D mode; if you handle WM_NCPAINT it will turn off the standard frame painting for that window, I believe. You'd probably have to start playing with the Glass API to make it still look like a Windows Vista window. The limitation is from Windows itself: the documentation for CreateWindowEx says "WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles." In other words, Microsoft did not intend it to be used like this. Edit: yes, I realise this is the Windows Forms forum. You need to override the WndProc method to handle messages that Windows Forms doesn't already translate to method calls/events. Stability. What an interesting concept. -- Chris Maunder
  • Help me

    csharp asp-net help tutorial
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Password Form

    question csharp help
    2
    0 Votes
    2 Posts
    7 Views
    S
    if u are using vs2005 then u dont need to write so much just go to the code and in auth. write ur code. But u r using vs2003 then u find the code on this portal on the left hand side of the Home Page.... Regards, Smart Boy Mumbai, (INDIA)
  • Get data items from a dataGrid

    2
    0 Votes
    2 Posts
    7 Views
    S
    Create an object as datarow and the take all the data of ur datagrid column to that object and then refer it.. Regards, Smart Boy Mumbai, (INDIA)
  • application is not starting up at windows startup

    question csharp windows-admin
    3
    0 Votes
    3 Posts
    10 Views
    D
    This app won't run at Windows startup. You told the registry to launch it when a user logs on. Also, if it's not starting up AT ALL when a user logs on, you have to check to see if the path to your .EXE you specified is accurate. Dave Kreskowiak Microsoft MVP - Visual Basic
  • 0 Votes
    3 Posts
    11 Views
    K
    Thanks very much Pete. Unfortunately upgrading to .NET 3.0 isn't really an option (I'm writing plugins for a .NET 2.0 app) but I'll give StylesSheetManager a go. Cheers! Keiron
  • 0 Votes
    4 Posts
    13 Views
    M
    Ummm... I think I might have found the answer to my problem: http://www.codeproject.com/cs/database/chatter.asp
  • UserInterface - Help me

    graphics help
    5
    0 Votes
    5 Posts
    8 Views
    S
    I would suggest searching on this site and on google for "Extending ToolBar in C#" etc. you will find many useful things. "All of us who served in one war or another know very well that all wars are the glory and the agony of the young." Gerald Ford
  • 0 Votes
    3 Posts
    11 Views
    D
    Spamming different 10 forums with the same question is very rude and totally unnecessary. But, the Windows Forms forum is probably the most appropriate place for the question. The answer still doesn't change. If not properly architected, you're looking at a total rewrite, from the ground up. Dave Kreskowiak Microsoft MVP - Visual Basic
  • 0 Votes
    3 Posts
    12 Views
    N
    Thanks Pete - I really appreciate the reply... it gives me somewhere to start at least. Cheers, Mike