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

Search:

Type: Posts; User: jhammer

Page 1 of 60 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    5
    Views
    1,135

    Re: Menu of another application

    Thanks Hannes and Shuja

    What's better: the SendMessage Approach or the mouse events approach? Do you have links to code samples for that (I mean it should be easy enough, but why waste time on...
  2. Replies
    5
    Views
    1,135

    Menu of another application

    Hi everybody, long time. :wave:
    I have a question regarding WinAPI and perhaps someone can help me (should be simple but not trivial).

    I want to call a menu item of another application (maybe...
  3. Replies
    3
    Views
    644

    Re: Error When Deleting A Form

    I would suggest not to bother yourself with such things.
    Simply create a new project, add all the existing files from the old project, and reference to the same assemblies. If you changed project...
  4. Replies
    8
    Views
    766

    Re: abstract properties

    No, because then the compiler tells you that you must override the abstract property Name.
  5. Replies
    5
    Views
    624

    Re: DateTime object question

    long tick1 = new DateTime(1,1,1,6,0,0).Ticks / 10000000;
    long tick2 = new DateTime(1,1,1,10,0,0).Ticks / 10000000;
    Random r = new Random(DateTime.Now.Millisecond);
    long tick3 =...
  6. Replies
    8
    Views
    766

    Re: abstract properties

    torrud, I tried it too on 2005 and n 2003, and the setter is NOT ALLOWED. It gives a compilation error!

    verifier, you have 2 options.
    1. Put both a get and a set in the abstract class (and all...
  7. Replies
    6
    Views
    536

    Re: switch between two properties

    Allan, in your way you compile the same code twice - once for each project.

    You might want to consider creating a third assembly - a Class Library - and put all the common code there. The...
  8. Replies
    6
    Views
    1,044

    Re: How to control Mouse moves in C# ?

    When a control is placed inside another control the MouseMove event is fired on the topmost control only. you will need to catch the MouseMove event on each of the contained controls, and raise the...
  9. Replies
    2
    Views
    649

    Re: releasing memory in user control

    If you try to show the UserControl again after you disposed it, you will have to create it again.
  10. Replies
    8
    Views
    766

    Re: abstract properties

    NetCommand must be abstract.

    Declare the property as a Read/Write property instead of a ReadOnly property in the abstract class:



    public abstract class NetCommand : INetCommand
    {
    ...
  11. Re: Urgent! Please help!! Concurrency violation...

    You are trying to update a DataSet that has a conflict with the database.
    For example: You have a DataRow with RowState of typed Modified, but in the database this row does not exist.

    Do you have...
  12. Replies
    1
    Views
    518

    Re: system mouse events

    You can use hooks.
    http://www.codeproject.com/csharp/globalhook.asp

    Search google. There are many resources about this.
  13. Thread: Newbie

    by jhammer
    Replies
    1
    Views
    593

    Re: Newbie

    http://www.differentpla.net/content/2005/02/wizard-csharp1
  14. Replies
    6
    Views
    898

    Re: Debugging a dataset

    The "Magnifying Glass" is actually a feature named "Visualizer" and is only available in VS 2005.
    Try to install the DataSet QuickWatch (I only tried it on 2003 though).
  15. Replies
    13
    Views
    1,038

    Re: C++ programmer doing C# - question

    You are right.
    This is exactly equivalent as passing a reference of an object in C++.
    The object itself is not copied to the stack, only the pointer (reference) to it. Therefore when changing...
  16. Replies
    11
    Views
    840

    Re: Controls array?

    You can access the control through one of these ways:
    1. its name: this.myLabel;
    2. Through the Panel.Control collection:


    foreach Control ctrl in panel.Controls
    if (ctrl.Name ==...
  17. Replies
    3
    Views
    593

    Re: Can this be done with C# Forms?

    On 2005, you might want to check the Splitter control.
  18. Replies
    11
    Views
    840

    Re: Controls array?

    Hey Tal.
    I told you - it is not possible in .NET. They changed it a bit.
    You need to drag the labels one by one into a panel, then you can iterate through them in a comfortable way (like an array).
  19. Replies
    2
    Views
    536

    Re: Project Variable

    And of course you need to add a reference to the other dll that you are trying to access (it doesn't even have to be in the solution).
  20. Replies
    11
    Views
    840

    Re: Controls array?

    Welcome :wave:

    You don't have control arrays the same way as VB6.

    You can do couple of things:
    1. Create a Panel, and drag all your controls into that panel. You can iterate through the...
  21. Replies
    6
    Views
    948

    Re: DataSet.Merge - another question

    It did not work.
    I am shocked at how easy it is to crash the application using Merge.
    Now I am really stuck.
  22. Replies
    6
    Views
    898

    Re: Debugging a dataset

    In VS2003: use DataSet QuickWatch (It's free and it's excellent)
    http://www.codeproject.com/csharp/DSWatch.asp
  23. Replies
    13
    Views
    1,038

    Re: C++ programmer doing C# - question

    Parameter Passing in C#
  24. Replies
    4
    Views
    1,414

    Re: Hide User Control Property

    Use the DefaultValue attribute.



    private bool myVal=false;

    [DefaultValue(false)]
    public bool MyProperty {
    get {
    return myVal;
  25. Thread: Open Folder

    by jhammer
    Replies
    1
    Views
    497

    Re: Open Folder

    Check the OpenFileDialog class.
Results 1 to 25 of 1495
Page 1 of 60 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center