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

Search:

Type: Posts; User: balexei

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: The color corresponding to "pink monitor" in cursor editor

    BioPhysEng, below is perhaps a better description of my problem.
    I am trying to programmatically create different cursors in my program while it is running. In these cursors I want to have both...
  2. Re: The color corresponding to "pink monitor" in cursor editor

    Arjay and BioPhysEngr, thank you for your reply, but this is not what I need!!! I can figure the RGB values of that "pink" using the method suggested but not the "alpha". If one uses this "color" in...
  3. The color corresponding to "pink monitor" in cursor editor

    Dear code gurus,

    Have a question about "cursor editing" tool available in Microsoft Visual Studio. That tool has 2 monitors - teal and pink. Teal seems to specify a transparent color (i.e....
  4. Replies
    0
    Views
    206

    Problems with PlotLine

    Dear code gurus,

    I am trying to use the function "PlotLine" but it seems to be enable to correctly connect 2 points with the distance of 1 between them when those points have the same Y...
  5. Replies
    0
    Views
    930

    ToolStripMenuItem Collection

    Dear Code Gurus,

    I am trying to figure out a way to change a "collection" that is displayed in a ToolStripMenuItem. The only way that I found out is to redefine the item each time this collection...
  6. Replies
    3
    Views
    1,031

    Most recent compilation date and time

    Dear code gurus,

    I remember that in C++ there were __DATE__ and __TIME__ macros using which I could write the most recent compilation date and time and output it in "About" box.

    Is there...
  7. Replies
    3
    Views
    3,440

    Re: GetKeyState function in C#

    BigEd781,

    I was using the functions that you mention adding them as "KeyEventHandler" to my form and correspondingly setting some bool variables depending on what the user pressed, however the...
  8. Replies
    2
    Views
    300

    Re: What's wrong with this code?

    If the "switch" statement goes through "default" the "answer" variable does not get assigned, i.e. MessageBox at the end of the program does not know what to use if your program "switch" goes in...
  9. Replies
    3
    Views
    3,440

    GetKeyState function in C#

    Dear Code Gurus,

    I have been just recently converted to C# from C++ and I am still trying to learn new concepts. In C++ there was a function that provided me with an answer about the state of a...
  10. Thread: KeyDown event

    by balexei
    Replies
    3
    Views
    556

    Re: KeyDown event

    Thank you!!! It works!
  11. Thread: KeyDown event

    by balexei
    Replies
    3
    Views
    556

    KeyDown event

    Dear CodeGurus,

    I am trying to assign some actions to the KeyDown event on my form (to any key, say 'a'), so I try the following:



    private void Form1_KeyDown(object sender,...
  12. Replies
    1
    Views
    1,999

    Re: Changing button text font to bold

    Found the answer myself, all you need to do is the following:



    MyButton.Font = new Font(MyButton.Font, FontStyle.Bold);
  13. Replies
    1
    Views
    1,999

    Changing button text font to bold

    Dear code gurus,

    I am trying to change the font of the button displayed in the dialog to bold and back (depending on certain events in the program). However, when I try something like

    ...
  14. Replies
    9
    Views
    688

    Re: Unwanted image copy of the main dialog

    BigEd781,

    Thank you for your discussion and help!!! :thumb::thumb::thumb:
  15. Replies
    9
    Views
    688

    Re: Unwanted image copy of the main dialog

    BigEd781,

    As I said, it is a little bit involved - putting the whole code that compiles would require a removal of a lot of confidential information. Again, in the nutshell, the code basically...
  16. Replies
    9
    Views
    688

    Re: Unwanted image copy of the main dialog

    BigEd781,

    My code is a little bit clamsy, but in the nutshell, here is what I do:



    namespace Calculations
    {
    public delegate void LabelUpdate(int i);
    public LabelUpdate...
  17. Replies
    9
    Views
    688

    Re: Unwanted image copy of the main dialog

    BigEd781,

    Thank you for your reply. Unfortunately, I can not completely understand what you are talking about (excuse my layman ignorance). In my application the calculation program actually calls...
  18. Replies
    5
    Views
    760

    Re: unreachable code

    I am not sure if this will resolve your problem but since "&" operator works on "integral types" try casting your variables into one of those, i.e. try:


    if (((int) type & (int) AffixType.Append)...
  19. Replies
    9
    Views
    688

    Unwanted image copy of the main dialog

    Dear CodeGurus,

    In my program I let the user to specify the processing parameters in the main dialog and after the user pushes the "Run" button all the controls on the dialog are disabled (and...
  20. Deleting "scratch" directories upon exiting

    Dear Code Gurus,

    I have an application that may create some scratch directories that should be deleted upone exiting. So, in my code for Form1 the following is done:



    private void...
  21. Replies
    1
    Views
    381

    How to use DirectoryExists?

    Dear code gurus,

    I am trying to use DirectoryExists function that seems to be defined in VisualBasic. What directive do I need to use when using this function in C#? It does not seem to work right...
  22. Thread: OpenFileDialog

    by balexei
    Replies
    7
    Views
    1,022

    Re: OpenFileDialog

    Thank you for your help!!!
  23. Thread: OpenFileDialog

    by balexei
    Replies
    7
    Views
    1,022

    Re: OpenFileDialog

    Thank you for the replies!!! But it is not exactly what I am looking for, perhaps I have not explained the issue very well. The InitialDirectory of my OpenFileDialog should not be connected to the...
  24. Thread: OpenFileDialog

    by balexei
    Replies
    7
    Views
    1,022

    OpenFileDialog

    Dear Code Gurus,

    I am using the OpenFileDialog and was wondering if there is any easy way to save the InitialDirectory, so that when the program is closed and then restarted again it could read...
  25. Replies
    1
    Views
    282

    Converting to double

    Dear Code Gurus,

    I have a text file containing a rectangular block of double data and would like to read those data into double array (in C# project).
    It seems that I could start with...
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width