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

Search:

Type: Posts; User: owdcoder83

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    987

    Re: Visual Studio C# - loss of Form

    Erandar - Many thanks this seems to work OK and was just what I needed.
  2. Replies
    2
    Views
    987

    Visual Studio C# - loss of Form

    I am using Visual Studio Express to develop C# programs. Occasionally I have found that if I have a Form in the Designer and the code contains the skeleton of a method that is no longer required...
  3. Replies
    5
    Views
    2,404

    Re: help with picturebox in winform

    Yes 'photofile is a string variable which is declared as a global variable at the start just inside the Class declaration eg:-

    string photofile;
  4. Replies
    5
    Views
    2,404

    Re: help with picturebox in winform

    Hi Shay640 - I have just been playing around with a PictureBox on a Form so perhaps this may help you :-

    I used a ComboBox to hold the names of the pictures which I may wish to display but this...
  5. Replies
    1
    Views
    591

    Panel resizing wgen its form resizes

    I have a Form with a Panel which just fits on which I use to draw graphics. How can this panel be made to resize when one resizes the Form.?
  6. Replies
    6
    Views
    5,520

    Re: Using 'sender' in switch statement

    Hi Talkag & PeterB - I have managed to solve the casting of sender to MenuItem and the switch now works. I did it as shown here :-

    String nam = ((ToolStripMenuItem)sender).Text;
    ...
  7. Replies
    6
    Views
    5,520

    Re: Using 'sender' in switch statement

    Talkag - What you have suggested will not work , as soon as I type in 'switch ( sender)' the word sender is underlined in red signalling an error.

    PeterB - What you say in your last two lines is...
  8. Replies
    6
    Views
    5,520

    Re: Using 'sender' in switch statement

    Pentagon and Hexagon are the names of the menu items clicked on.
  9. Replies
    6
    Views
    5,520

    Using 'sender' in switch statement

    Is there any way in which an attribute of 'sender' in an event can be used in a 'switch' header'.
    I find that I can use 'sender' like this :- if (sender == Pentagon) OK but if I try to use...
  10. Re: Extracting date from EventArgs

    Many Thanks 'Foamy'I have just made the change you suggest and that works fine now.
  11. Re: Extracting date from EventArgs

    Thanks for reply foamy. Here is the piece of code where I want to obtain the X and Y values of the point clicked but the compile will no allow e.X and e.Y. :-

    private void panel1_Click(object...
  12. [RESOLVED] Extracting date from EventArgs

    I am trying to write a graphics program in which I use a Panel on a Windows form as the graphics surface. I have a click event routine which is triggered whn the user clicks on the Panel. I want to...
  13. Replies
    2
    Views
    1,050

    How to check a PicrureBox if it is empty

    In Visual Basic 2010 I have a PictureBox control which i need to check in code to see if it does not contain an image. Can anyone suggest how i can accomplish this. ?
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured