CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Daniel1324

Page 1 of 3 1 2 3

Search: Search took 0.11 seconds.

  1. Thread: Generics

    by Daniel1324
    Replies
    1
    Views
    587

    Generics

    Can you serialize generics to a disk.
  2. Replies
    2
    Views
    906

    Re: Event handling for a 144 buttons!

    You dont need to create them at runtime.

    In your Form_Load function...


    foreach (Control c in Controls)
    {
    if (typeof(c) == typeof(Button))
    c.Click += new...
  3. Replies
    2
    Views
    763

    Re: The @ symbol in front of some strings

    This is the third forum I found this question in. Why dont you post in only one, then wait to see if you get an answer, if not, then post it in another one.
  4. Replies
    3
    Views
    808

    Re: Running an EXE

    Post all of the code, including the loop.
  5. Replies
    7
    Views
    1,721

    Re: Send email in C# 2005 (.net 2.0)

    Actually it was... The System.Web namespace was deprecated in .net 2.0

    I was using that in .net 1.1. But cant use it anymore. In .net 2.0, its the new System.Net.Mail namespace.



    [edit...
  6. Replies
    7
    Views
    1,721

    Re: Send email in C# 2005 (.net 2.0)

    Is that for .net 2.0? Cause I cant find it anywhere.

    I'm using SmtpClient in .net 2.0. No static functions, no close or dispose, or flush, ect...

    [Another Edit]

    All of the different ways to...
  7. Replies
    7
    Views
    1,721

    Re: Send email in C# 2005 (.net 2.0)

    You sure that you want me to use code tags? :) jk...

    Here it is... if I send mail with it... nothing happens until I exit the program.
    Someone said that maybe the garbage collector has something...
  8. Replies
    7
    Views
    1,721

    Send email in C# 2005 (.net 2.0)

    The System.Web namespace has been deprecated in .net 2.0... So the email code I've been using no longer works.

    After some tinkering, I got the System.Net classes to send the email, however... It...
  9. Replies
    3
    Views
    1,144

    Re: Minimize to Systray? [VC#]

    Is there an advantage to creating the notifyicon by code as opposed to adding one from the components list?
  10. Replies
    2,690
    Views
    1,012,612

    Re: What Song Are You Listening To Now¿

    Iron Maiden - Journeyman

    Saw them last night in Columbus Ohio... Awesome!!!
  11. Replies
    2
    Views
    1,011

    Re: setting text in CEditView problem

    if (nChar == VK_RETURN)
    {
    GetEditCtrl().SetWindowText("This is ALWAYS displayed at 2nd line!");
    return;
    }


    Add that return in... dont process the VK_RETURN.

    When you do...
  12. Replies
    1
    Views
    629

    Help! Where's this assertion?

    Here's the code...


    void CProgramView::OnGotoButton(CString Param)
    {
    int ndex;
    CString Str, Url;

    if (Param.IsEmpty())
    {
  13. Replies
    1
    Views
    472

    Arrays without constants

    I need to define an array of CMenu's. But I really dont now how many I need, I only know this at runtime.

    I cant do this... CMenu menu[myvariable];
    Because it needs a constant.

    When I use...
  14. Thread: Static Text

    by Daniel1324
    Replies
    4
    Views
    652

    Give your static text a unique ID...

    Give your static text a unique ID (IDC_STATIC_MYTEXT)

    SetDlgItemText(IDC_STATIC_MYTEXT, "You clicked button A");
  15. Replies
    2
    Views
    643

    Thanks for the reply! I was reading through...

    Thanks for the reply!

    I was reading through MSDN and found out that AFX_CMDHANDLERINFO is NULL in OnCmdMSg is theres not an entry in the message map for whatever commandID its passing.

    I just...
  16. Replies
    2
    Views
    643

    Message Maps

    Can you modify the message map to add new 'ON_COMMAND()''s
    at runtime?
  17. Replies
    5
    Views
    600

    Ok, that worked, but another problem has popped...

    Ok, that worked, but another problem has popped up.

    I have this, which is great...
    http://www.vasr.net/Menu3.jpg

    And this...


    submenu.AppendMenu(MF_STRING, ID_GOTOADDRESS, "Goto Address");...
  18. Replies
    5
    Views
    600

    Thanks for the reply. The code I pasted works...

    Thanks for the reply.

    The code I pasted works fine. It shows the menu, I click on an item and it does what I want.

    Heres the best way to explain it...

    I have this now, it works fine......
  19. Replies
    5
    Views
    600

    Adding sub menus to a menu

    Heres what I have...


    {
    CMenu menu;

    menu.CreatePopupMenu();

    for (int x = 0; x < ndex; x++)
    {
  20. Replies
    1
    Views
    548

    Dont use "\n\r", use "\r\n". With the \r first.

    Dont use "\n\r", use "\r\n". With the \r first.
  21. Replies
    1
    Views
    633

    Suspend Program Execution

    I have an SDI app that uses an ini file to store settings. The user has the option to manually edit the ini file from my program, which is done through notepad. What I want to do is suspend execution...
  22. Replies
    2
    Views
    1,717

    Popup menu pops up in wrong place

    I derived a class from CListBox. In that class I added a handler for the right mouse button. When I click the right button, the menu pops up on my desktop. I know why its doing this, because the...
  23. Replies
    2
    Views
    597

    To build an app of that scope, I'd recommend a...

    To build an app of that scope, I'd recommend a programming class. Or at least some good books.
  24. Replies
    0
    Views
    508

    Download a web page

    Whats the easiest way to download a web page. I dont want to view it. I just want to download to my desktop for example, then I will process it.

    Like, for instance, I want to download...
  25. Replies
    6
    Views
    837

    Are you sure that you set it to link statically...

    Are you sure that you set it to link statically in release mode also?
Results 1 to 25 of 68
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured