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

Search:

Type: Posts; User: Alex Rest

Page 1 of 10 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    0
    Views
    631

    Strange FrmClosing Behavior

    I have a form with FrmClosing event.
    The event calles twice :confused: :
    1) When I am closing this form.
    2) When I am closing the application MainForm.
    Both sources – the closing form.
    ...
  2. Replies
    2
    Views
    775

    Re: MultiLines in Text Object question.

    Sorry. Small mistake. There was
    objTxt .Text = "One\r\nTwo\r\nThree";

    and I have not method SetText(...) in my
    vesion of CR interface

    Thanks.
  3. Replies
    2
    Views
    775

    MultiLines in Text Object question.

    Hi
    Problem:
    I hav etext object on the report
    and set to it the text from C# program

    TextObject objTxt = (TextObject)rpt.Section2.ReportObjects["txtSome"];
    objTxt = "One\r\nTwo\r\nThree";

    ...
  4. Replies
    6
    Views
    1,026

    Re: Surprise! 0.77 * 100 == 76

    Solution is not the problem.
    I used Round, for example.
    When I met the problem I was suppressed by so non-clear behavior of the code.
    I always used double before.
    Float was returned as object...
  5. Replies
    6
    Views
    1,026

    Surprise! 0.77 * 100 == 76

    Try the code:

    float a = 0.77F;
    int b = (int)(100 * a);
    Console.WriteLine(b.ToString());

    Result is 76.

    What do you think about such strange .Net calculate execution ?
  6. Replies
    4
    Views
    1,124

    Re: Problem with DataGrid Control..

    Common idea using ColumnStyle

    public class ComboBoxGridColumn : DataGridColumnStyle

    styles assigned in AddGridStyle()

    I made such example:

    using System;
    using System.Drawing;
  7. Replies
    0
    Views
    602

    Data Grid Child Table expanding

    I created two tables that have relation one-to-many.
    I included them to a DataSet, created relation and assigned to DataGrid.
    Question:
    When a user click [x] for expanding table row he sees the...
  8. Replies
    0
    Views
    697

    Data Grid Child Table expanding

    I created two tables that have relation one-to-many.
    I included them to a DataSet, created relation and assigned to DataGrid.
    Question:
    When a user click [x] for expanding table row he sees the...
  9. How to change crystal report document title dynamically?

    I have ReportClass object of .Net CrystalReport
    that uses .rpt file

    ResCalc.SalesReport rpt = new ResCalc.SalesReport();
    rpt.SetDataSource(dsSaleRep);

    How to change crystal report document...
  10. How to compress mdb file after rows removing?

    If I remove some rows mdb file size will not change;
    There is compress command in MS Access.
    How I can make this operation from my program?

    Thanks,
    Alex.
  11. How to compress mdb file after rows removing?

    If I remove some rows mdb file size will not change;
    There is compress command in MS Access.
    How I can make this operation from my program?

    Thanks,
    Alex.
  12. Replies
    1
    Views
    1,282

    Help. I cannot update mdb file.

    I try to do it in a simple example.
    File is present, opend.
    Data accessable.
    But no updates executed.
    And runtime errors are absent too ;_(

    OleDbConnection mConn = new...
  13. Replies
    0
    Views
    1,180

    I cannot update MS Access file.

    I try to do it in a simple example.
    File is present, opend.
    Data accessable.
    But no updates executed.
    And runtime errors are absent too ;_(

    OleDbConnection mConn = new...
  14. Replies
    3
    Views
    1,066

    Re: How to play sounds?

    It is really strange.
    I hoped to find something as System. … .PlaySound…
    but not
    System.Diagnostics.Process.Start("ding.wav"); :sick:
  15. Replies
    3
    Views
    1,066

    How to play sounds?

    I want to play some windows standard sound as an error alarm.
    How do it using C#?

    Thanks.
  16. How to put an image to a disabled toolbar button?

    I created tool bar using the toolbar control and assigned some images to images list.
    All OK, but when I make Enabled = false on a button the image disappears.

    Home make toolbar with different...
  17. Replies
    5
    Views
    6,189

    Re: How to play MP3 files using C#?

    Thorry, I forgot say that I wan to play mp3 a Pocket PC
    and it must not be a standard player.
    In a Desctop PC I can all and much more using C++/MFC.
    There is such instrument as DirectShow.
    I used...
  18. Replies
    5
    Views
    6,189

    Re: How to play MP3 files using C#?

    the problem is: I want to contro volume,
    background music etc.
    I want to have much more control.

    Thanks,
    Alex.
  19. Replies
    5
    Views
    6,189

    How to play MP3 files using C#?

    Hi,

    There is a question:
    How to play MP3 files using C#?

    Thanks,
    Alex.
  20. How get the system directory path as "My Documents"?

    Hi!

    There is a question:
    How get the system directory path as "My Documents", "Windows", "Applications Data", "Program Files", etc. ?

    Thanks,
    Alex.
  21. How to send a window message to the window that handle I know?

    How to send a window message to the window that handle I know?

    I.E. I need a .Net analog of SendMessage() or PostMessage() of WinAPI.

    Thanks,
    Alex.
  22. Re: How to find the running program and send some message to it?

    OK, all excellent, but I cannot remove other problem:

    1) I have hidden program (Form.Hide())
    2) I have found it
    3) I try show it by

    int hWnd = localByName[nIndex].MainWindowHandle.ToInt32();...
  23. Replies
    4
    Views
    15,403

    Re: How to disable resizing of a form?

    thanks,
    it works.
  24. How to find the running program and send some message to it?

    Hi!
    I need such:

    When my program starting it must find ether other copy of the program presents in the system or no.
    If it presents the program must maximize it and exit.

    How can I do so?
    ...
  25. Replies
    4
    Views
    15,403

    How to disable resizing of a form?

    Hi!
    I have a question:

    How to disable resizing of a form?
    (ie a user cannot pulls body by the mouse)

    Thanks for help,
    Alex.
Results 1 to 25 of 234
Page 1 of 10 1 2 3 4





Click Here to Expand Forum to Full Width

Featured