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.24 seconds.

  1. Replies
    4
    Views
    1,990

    Re: DrawString function

    Thank you very much!!!
  2. Replies
    4
    Views
    1,990

    Re: DrawString function

    Arjay,

    Sorry, below is my code:

    public Bitmap BitmapForLabel(string Text, Font mFont, Point p, int w, int h)
    {
    Bitmap MyLabel = new Bitmap(w, h,...
  3. Replies
    4
    Views
    1,990

    DrawString function

    Dear code gurus,

    I am using a "DrawString" function to display text in bitmap. For whatever reason, the text displayed have some "shading" as on the picture below. In this picture I have used...
  4. 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...
  5. 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...
  6. 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....
  7. Replies
    0
    Views
    718

    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...
  8. Replies
    0
    Views
    1,792

    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...
  9. Replies
    3
    Views
    1,534

    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...
  10. Replies
    3
    Views
    19,249

    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...
  11. Replies
    2
    Views
    685

    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...
  12. Replies
    3
    Views
    19,249

    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...
  13. Thread: KeyDown event

    by balexei
    Replies
    3
    Views
    932

    Re: KeyDown event

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

    by balexei
    Replies
    3
    Views
    932

    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,...
  15. Replies
    1
    Views
    4,673

    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);
  16. Replies
    1
    Views
    4,673

    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

    ...
  17. Replies
    9
    Views
    1,474

    Re: Unwanted image copy of the main dialog

    BigEd781,

    Thank you for your discussion and help!!! :thumb::thumb::thumb:
  18. Replies
    9
    Views
    1,474

    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...
  19. Replies
    9
    Views
    1,474

    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...
  20. Replies
    9
    Views
    1,474

    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...
  21. Replies
    5
    Views
    1,282

    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)...
  22. Replies
    9
    Views
    1,474

    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...
  23. 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...
  24. Replies
    1
    Views
    669

    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...
  25. Thread: OpenFileDialog

    by balexei
    Replies
    7
    Views
    1,662

    Re: OpenFileDialog

    Thank you for your help!!!
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured